ELF relocations on i386

Rui Paulo rpaulo at FreeBSD.org
Sat Aug 9 20:49:14 UTC 2014


Hi,

I'm having difficulty understanding why I can't create a relocatable i386 object file with ld:

% ld -o test.o -b elf32-i386-freebsd --oformat=elf32-i386-freebsd -r /usr/lib32/dtrace/drti.o 
ld: Relocatable linking with relocations from format elf32-i386-freebsd (/usr/lib32/dtrace/drti.o) to format elf32-i386-freebsd (test.o) is not supported

% objdump -x /usr/lib32/dtrace/drti.o

/usr/lib32/dtrace/drti.o:     file format elf32-i386-freebsd
/usr/lib32/dtrace/drti.o
architecture: i386, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
[...]

Any ideas why this isn't supported?  The error message is odd.

--
Rui Paulo





More information about the freebsd-hackers mailing list