This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC64 LE bootstrap hack 2/2 - Make static linker rewrite GLIBC_2.18 deps as GLIBC_2.17.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]