[PATCH 3/3] Add mips n64 relocation format hack
authorJames Cowgill <james410@cowgill.org.uk>
Mon, 5 Jan 2015 15:17:02 +0000 (15:17 +0000)
committerKarsten Merker <merker@debian.org>
Tue, 28 May 2019 18:53:12 +0000 (19:53 +0100)
commit45f842c314e5e45b9175d094d03326e5ae10201a
treedd19d9db3a2828722ed8a27f0df02d67c6ae6d35
parent1e70f6531e2e31b80b5bd6039c465ea102241e2e
[PATCH 3/3] Add mips n64 relocation format hack

MIPSEL N64 ELF files use a slightly different format for storing relocation
entries which is incompatible with the normal R_SYM / R_INFO macros.
To workaround this, we rearrange the bytes in the relocation's r_info field
when reading and writing the relocations.

This patch also ensures that strip.c sets the correct value of e_machine
before manipulating relocations so that these changes take effect.

Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Gbp-Pq: Name 0003-Add-mips-n64-relocation-format-hack.patch
libelf/gelf_getrel.c
libelf/gelf_getrela.c
libelf/gelf_update_rel.c
libelf/gelf_update_rela.c
src/strip.c