diff options
| author | ab196087 <none@none> | 2007-09-19 08:15:57 -0700 |
|---|---|---|
| committer | ab196087 <none@none> | 2007-09-19 08:15:57 -0700 |
| commit | d29b2c4438482eb00488be49a1f5d6835f455546 (patch) | |
| tree | 541f5471fe500cce2429019f17f9f87ddcf80b76 /usr/src/cmd/sgs/liblddbg/common/elf.c | |
| parent | 90685d2c52744c6540828f16cdd2db815d467e37 (diff) | |
| download | illumos-joyent-d29b2c4438482eb00488be49a1f5d6835f455546.tar.gz | |
PSARC 2007/509 elfedit
6234471 need a way to edit ELF objects
--HG--
rename : usr/src/cmd/sgs/packages/setup_pkg_ext => deleted_files/usr/src/cmd/sgs/packages/setup_pkg_ext
Diffstat (limited to 'usr/src/cmd/sgs/liblddbg/common/elf.c')
| -rw-r--r-- | usr/src/cmd/sgs/liblddbg/common/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sgs/liblddbg/common/elf.c b/usr/src/cmd/sgs/liblddbg/common/elf.c index 7ff7af9f19..083a7ea80f 100644 --- a/usr/src/cmd/sgs/liblddbg/common/elf.c +++ b/usr/src/cmd/sgs/liblddbg/common/elf.c @@ -61,7 +61,7 @@ Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) * numeric (e.g. "0x200") or text representation (e.g. * "[ EF_SPARC_SUN_US1 ]"). */ - flgs = conv_ehdr_flags(ehdr->e_machine, ehdr->e_flags, &flags_buf); + flgs = conv_ehdr_flags(ehdr->e_machine, ehdr->e_flags, 0, &flags_buf); if (flgs[0] == '[') dbg_print(lml, MSG_ORIG(MSG_ELF_FLAGS_FMT), flgs); else @@ -104,7 +104,7 @@ Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) dbg_print(lml, MSG_ORIG(MSG_STR_EMPTY)); dbg_print(lml, MSG_ORIG(MSG_SHD0_TITLE)); dbg_print(lml, MSG_ORIG(MSG_SHD0_ADDR), EC_ADDR(shdr0->sh_addr), - conv_sec_flags(shdr0->sh_flags, &sec_flags_buf)); + conv_sec_flags(shdr0->sh_flags, 0, &sec_flags_buf)); dbg_print(lml, MSG_ORIG(MSG_SHD0_SIZE), EC_XWORD(shdr0->sh_size), conv_sec_type(ehdr->e_machine, shdr0->sh_type, 0, &inv_buf1)); dbg_print(lml, MSG_ORIG(MSG_SHD0_OFFSET), EC_OFF(shdr0->sh_offset), |
