This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: bfd.flags&DYNAMIC vs. bfd_link_info.static
> I don't see anything wrong. You have to used -shared to create DSO.
The GOT32 relocation for __dso_handle is not perfomed correctly.
The pointer in the GOT is left as 0, instead of &__dso_handle
(or something that ld-linux.so.2 tuns into &__dso_handle; but
in this case there is a NONE relocation that is the "smoking gun".)
I don't want a DSO (ET_DYN), I want an ET_EXEC with the GOT32
relocation performed correctly.
--
John Reiser, jreiser@BitWagon.com