Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2014 13:49:23 -0700
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   ELF relocations on i386
Message-ID:  <BA583F89-6341-4751-B3A0-AEE45FC6D106@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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=3Delf32-i386-freebsd -r =
/usr/lib32/dtrace/drti.o=20
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA583F89-6341-4751-B3A0-AEE45FC6D106>