This is the mail archive of the libc-alpha@sources.redhat.com 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: PATCH: Fix prelink for mips


"H . J . Lu" <hjl@lucon.org> writes:

> Some patch is necessary since mips doesn't have elf_machine_rela. You
> can define a dummy elf_machine_rela in sysdeps/mips/dl-machine.h. But
> ...

Then make the use of the type (or all of prelinking) depending on
this.  If a new architecture is added it'll have the same problem.
Define _DL_HAVE_NO_ELF_MACHINE_RELA or and test for it in dl-conflict.

> But I don't see we should change elf/dl-conflict.c just for mips. I
> prefer to have a dl-conflict.c specific to mips.

I understand this.  But we should delay making such changes until they
are ready to be incorporated.  The missing _rela function is an issue
unrelated to not being able to implement prelinking and therefore
should be handled.  With this change you can use the current code
until it is proven which method will work for MIPS.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


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