Displaying 1 result from an estimated 1 matches for "r_386_got32".
2016 Apr 04
2
[LLD][ELF] Dynamic relocations list depends on the input files order
....text
.global _start
_start:
movl foo at GOT, %eax
% cat r-32.s
.text
ref:
movl $foo, (%esp)
% as --32 r-got.s -o r-got.o
% as --32 r-32.s -o r-32.o
% as --32 data.s -o data.o
% lld -flavor gnu data.o -shared -o libdata.so
% lld -flavor gnu r-32.o r-got.o libdata.so -o a.out
relocation R_386_GOT32 out of range
% lld -flavor gnu r-got.o r-32.o libdata.so -o a.out
% readelf -Sr a.out
...
[ 7] .got PROGBITS 00012058 002058 000004 00 WA 0 0 4
...
Relocation section '.rel.dyn' at offset 0x15c contains 2 entries:
Offset Info Type Sym.Value Sym. Name
00012058...