don't assume reloc_addr passed to elf_machine_rel* is aligned
Alexandre Oliva
aoliva@redhat.com
Wed Jun 4 19:58:00 GMT 2003
On Mar 31, 2003, Roland McGrath <roland@redhat.com> wrote:
> I think we need to forego the __typeof solution and either macros
> for the argument type or change all the dl-machine.h files. The
> latter is actually cleaner, I think. The current type is not right
> for plenty of other relocs on other machines, that just haven't been
> bitten so far.
Here's a patch that implements the latter, such that, hopefully,
mips*-linux* will build again. This patch should fix all ports such
that they still compile and behave the same as they did before (except
where the compiler would optimize away alignment tests, which it
might, and now won't), but I'll leave the taking (dis)advantage of any
mis-alignment issues up to the maintainers of each port. Ok to
install?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynamic-link-dont-assume-aligned-addr.patch
Type: text/x-patch
Size: 23801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030604/5ae09064/attachment.bin>
-------------- next part --------------
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-alpha
mailing list