On 01/23/2018 09:28 AM, Tom Hughes wrote:
On 23/01/18 07:44, Florian Weimer wrote:
On 01/23/2018 08:16 AM, Tom Hughes wrote:
This seems to be breaking things. I have so's failing to link due to
this even though the man page says -zdefs doesn't affect shared
libraries.
Examples?
It will cause link failures because binutils now reports that it does
not have enough information to produce correct binaries.
This one from koschei:
https://koji.fedoraproject.org/koji/taskinfo?taskID=24388670
I think it may be correct because libdwarf reference symbols in libelf
so should presumably link against it in order to get a NEEDED entry for
it in the ELF program headers.
Right. glibc currently needs these NEEDED entries for performing
relocation in the correct order, so please add them if possible.
None the less the man page for ld (at least on F27) says:
defs
Disallows undefined symbols in object files. Undefined symbols
in shared libraries are still allowed.
which says that undefined symbols are allowed when linking a shared
library even with -zdefs.
Yes, Nick fixed that when he implemented -z undefs. There is another
mention of the option further down, which is correct, but perhaps
confusing (but then, link editors are very complicated).
Thanks,
Florian
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx