ld -r is broken on ELF/ia64
H. J. Lu
hjl@lucon.org
Wed Jul 9 17:05:00 GMT 2003
ld -r generates bogus debug info on ELF/ia64:
# make
ld -z defs -shared -o a.so add_n.o adjtime.o
adjtime.o(.text+0x142): In function `adjtime':
../sysdeps/unix/sysv/linux/adjtime.c:57: undefined reference to
`__adjtimex_internal'
adjtime.o(.text+0x382):../sysdeps/unix/sysv/linux/adjtime.c:57: undefined
reference to `__GI___errno_location'
make: [a.so] Error 1 (ignored)
ld -r -o b.os add_n.o adjtime.o
ld -z defs -shared -o b.so b.os
b.os(.text+0x1e2)ld: Dwarf Error: DW_FORM_strp offset (7630441) greater than or
equal to .debug_str size (17063).
: In function `adjtime':
: undefined reference to `__adjtimex_internal'
b.os(.text+0x422): In function `adjtime':
: undefined reference to `__GI___errno_location'
make: [b.so] Error 1 (ignored)
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.gz
Type: application/x-gzip
Size: 25392 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030709/cc6559e6/attachment.bin>
More information about the Binutils
mailing list