[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unexelf.c failure on IRIX
From: |
David Kaelbling |
Subject: |
Re: unexelf.c failure on IRIX |
Date: |
Mon, 26 Nov 2001 11:28:23 -0500 |
Dave Love wrote:
>
> What version of the developments tools is this with?
I tried both 7.3.1.3m and 7.2.1.3m on IRIX 6.5.14f.
> The list of ELF sections it's producing might be worth knowing (via
> `elfdump' if I remember correctly).
[fw] 77> elfdump -brief emacs-21.1.diffbuild/src/temacs
emacs-21.1.diffbuild/src/temacs:
**** SECTION HEADER TABLE ****
[No] Type Addr Offset Size Name
Link Info Adralgn Entsize Flags
[1] SHT_PROGBITS 0x10000114 0x114 0x15 .interp
0 0 0x4 0 0x00000002 ALLOC
[2] SHT_MIPS_REGINFO 0x100001b0 0x1b0 0x18 .reginfo
0 0 0x4 0x18 0x00000002 ALLOC
[3] SHT_DYNAMIC 0x100001c8 0x1c8 0x1a0 .dynamic
6 0 0x4 0x8 0x00000002 ALLOC
[4] SHT_MIPS_LIBLIST 0x10000368 0x368 0x12c .liblist
6 0xf 0x4 0x14 0x00000002 ALLOC
[5] SHT_STRTAB 0x10000494 0x494 0x14602 .dynstr
0 0 0x4 0 0x00000002 ALLOC
[6] SHT_HASH 0x10014a98 0x14a98 0xcdc4 .hash
8 0 0x4 0x4 0x00000002 ALLOC
[7] SHT_DYNSYM 0x1002185c 0x2185c 0x136f0 .dynsym
6 0x14 0x4 0x10 0x00000002 ALLOC
[8] SHT_MIPS_MSYM 0x100363f4 0x363f4 0x9b78 .msym
6 0xa 0x4 0x8 0x00000002 ALLOC
[9] SHT_MIPS_CONFLICT 0x1003ff6c 0x3ff6c 0x4c .conflict
8 0 0x4 0x4 0x00000002 ALLOC
[10] SHT_PROGBITS 0x100413fc 0x413fc 0x18436c .text
0 0 0x4 0x4 0x00000006 ALLOC
EXECINSTR
[11] SHT_PROGBITS 0x101c5768 0x1c5768 0x18 .init
0 0 0x4 0x4 0x00000006 ALLOC
EXECINSTR
[12] SHT_PROGBITS 0x101d8000 0x1c8000 0x13dc3 .rodata
0 0 0x8 0 0x00000003 WRITE
ALLOC
[13] SHT_PROGBITS 0x101ebdc8 0x1dbdc8 0x78d0 .data
0 0 0x8 0 0x00000003 WRITE
ALLOC
[14] SHT_PROGBITS 0x101f3698 0x1e3698 0x432c .got
0 0 0x4 0x4 0x10000003 WRITE
ALLOC GPREL
[15] SHT_PROGBITS 0x101f79c8 0x1e79c8 0x554 .sbss
0 0 0x8 0 0x10000003 WRITE
ALLOC GPREL
[16] SHT_PROGBITS 0x101f7f20 0x1e7f20 0x100 .lit8
0 0 0x8 0x8 0x10000003 WRITE
ALLOC GPREL
[17] SHT_PROGBITS 0x101f8020 0x1e8020 0x1bd5 .srdata
0 0 0x8 0 0x10000002 ALLOC
GPREL
[18] SHT_PROGBITS 0x101f9bf8 0x1e9bf8 0x44 .sdata
0 0 0x8 0 0x10000003 WRITE
ALLOC GPREL
[19] SHT_PROGBITS 0x101f9c3c 0x1e9c3c 0xc .lit4
0 0 0x4 0x4 0x10000003 WRITE
ALLOC GPREL
[20] SHT_NOBITS 0x101f9c50 0x1e9c48 0xe5044 .bss
0 0 0x10 0 0x00000003 WRITE
ALLOC
[21] SHT_PROGBITS 0 0x42b514 0xbee .comment
0 0 0x4 0 0x00000000
[22] SHT_STRTAB 0 0x45665f 0x1c7 .shstrtab
0 0 0 0 0x00000000
The "elfdump -Dg" output is very long. Here's the start and end of it:
[fw] 78> elfdump -Dg emacs-21.1.diffbuild/src/temacs
emacs-21.1.diffbuild/src/temacs:
***GLOBAL OFFSET TABLE SECTION***
Index Content gp_reladdr Address
.got
[ 0]: 0x0fb602ac -32752(gp), 0x101f3698
Local pages for segment 0x10000000 to 0x101c6000
[ 1]: 0x10040000 -32748(gp), 0x101f369c
[ 2]: 0x10050000 -32744(gp), 0x101f36a0
[ 3]: 0x10060000 -32740(gp), 0x101f36a4
[ 4]: 0x10070000 -32736(gp), 0x101f36a8
[ 5]: 0x10080000 -32732(gp), 0x101f36ac
[ 6]: 0x10090000 -32728(gp), 0x101f36b0
[ 7]: 0x100a0000 -32724(gp), 0x101f36b4
[ 8]: 0x100b0000 -32720(gp), 0x101f36b8
[ 9]: 0x100c0000 -32716(gp), 0x101f36bc
[ 10]: 0x100d0000 -32712(gp), 0x101f36c0
[ 11]: 0x100e0000 -32708(gp), 0x101f36c4
[ 12]: 0x100f0000 -32704(gp), 0x101f36c8
[ 13]: 0x10100000 -32700(gp), 0x101f36cc
[ 14]: 0x10110000 -32696(gp), 0x101f36d0
[ 15]: 0x10120000 -32692(gp), 0x101f36d4
[ 16]: 0x10130000 -32688(gp), 0x101f36d8
[ 17]: 0x10140000 -32684(gp), 0x101f36dc
[ 18]: 0x10150000 -32680(gp), 0x101f36e0
[ 19]: 0x10160000 -32676(gp), 0x101f36e4
[ 20]: 0x10170000 -32672(gp), 0x101f36e8
...
[ 4269]: 0x102deb7c -15676(gp), 0x101f794c
[Vcomposition_function_table]
[ 4270]: 0x102deb80 -15672(gp), 0x101f7950
[Qcomposition_function_table]
[ 4271]: 0x102deb84 -15668(gp), 0x101f7954
[composition_temp]
[ 4272]: 0x102deb88 -15664(gp), 0x101f7958 [UP]
[ 4273]: 0x102deb8c -15660(gp), 0x101f795c [BC]
[ 4274]: 0x102deb90 -15656(gp), 0x101f7960 [PC]
[ 4275]: 0x102deb98 -15652(gp), 0x101f7964 [__malloc_hook]
[ 4276]: 0x102deb9c -15648(gp), 0x101f7968 [_heapbase]
[ 4277]: 0x102deba0 -15644(gp), 0x101f796c [_heapinfo]
[ 4278]: 0x102deba4 -15640(gp), 0x101f7970 [_heapindex]
[ 4279]: 0x102deba8 -15636(gp), 0x101f7974 [_heaplimit]
[ 4280]: 0x102debb0 -15632(gp), 0x101f7978 [_fraghead]
[ 4281]: 0x102dec10 -15628(gp), 0x101f797c [_chunks_used]
[ 4282]: 0x102dec14 -15624(gp), 0x101f7980 [_bytes_used]
[ 4283]: 0x102dec18 -15620(gp), 0x101f7984 [_chunks_free]
[ 4284]: 0x102dec1c -15616(gp), 0x101f7988 [_bytes_free]
[ 4285]: 0x102dec20 -15612(gp), 0x101f798c
[__malloc_initialized]
[ 4286]: 0x102dec24 -15608(gp), 0x101f7990
[__malloc_extra_blocks]
[ 4287]: 0x102dec28 -15604(gp), 0x101f7994
[__malloc_initialize_hook]
[ 4288]: 0x102dec2c -15600(gp), 0x101f7998
[__after_morecore_hook]
[ 4289]: 0x102dec30 -15596(gp), 0x101f799c [__free_hook]
[ 4290]: 0x102dec34 -15592(gp), 0x101f79a0
[_aligned_blocks]
[ 4291]: 0x102dec38 -15588(gp), 0x101f79a4 [__realloc_hook]
[ 4292]: 0x102dec3c -15584(gp), 0x101f79a8
[__memalign_hook]
[ 4293]: 0x102dec40 -15580(gp), 0x101f79ac
[update_hints_inhibit]
[ 4294]: 0x102dec70 -15576(gp), 0x101f79b0 [__Argc]
[ 4295]: 0x102dec90 -15572(gp), 0x101f79b4 [__Argv]
[ 4296]: 0x00000000 -15568(gp), 0x101f79b8 []
[ 4297]: 0x00000000 -15564(gp), 0x101f79bc []
[ 4298]: 0x00000000 -15560(gp), 0x101f79c0 []
> Is there any reason .got should be treated specially on Irix versus
> other ELF platforms?
Sorry, I don't know. All I can say is this way worked!
David
--
David KAELBLING <drk@sgi.com> Silicon Graphics Computer Systems
1 Cabot Rd, suite 250; Hudson, MA 01749 781.839.2157, fax ...2357