PPC64 LE bootstrap hack 2/2 - Make static linker rewrite GLIBC_2.18 deps as GLIBC_2.17.
Carlos O'Donell
carlos@redhat.com
Thu Feb 6 03:39:00 GMT 2014
On 02/05/2014 09:42 PM, Carlos O'Donell wrote:
> If you really want to be more precise with this hack, you could,
> in the code just above this, look for the 6 symbols specifically,
> and then and only then rewrite the dependency if it isn't one of
> them.
That won't work. In fact it's much more work than I thought.
You need to *add* an entry for GLIBC_2.17 into the internal vernaux
structures (you can't add it to the bfd src mapping because there
isn't space) used by bfd and then rewrite all the GLIBC_2.18 symbols
except the 6 new ones to reference GLIBC_2.17 e.g. at the time the
versyms are swapped in you must rewrite them to use your new GLIBC_2.17
vernaux entry.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list