Make ld.so process only R_ALPHA_RELATIVE relocations during early GOT
authorkettenis <kettenis@openbsd.org>
Sat, 27 Dec 2014 13:13:25 +0000 (13:13 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 27 Dec 2014 13:13:25 +0000 (13:13 +0000)
commit511b1d37c2722d863cd56500df846f6048402620
tree141734222ff0218f5970bf6d3fb6266aef9a28bb
parent9d809a402c2c1e085f41c23a0aab70d6c7601529
Make ld.so process only R_ALPHA_RELATIVE relocations during early GOT
relocation in _reloc_alpha_got(), and teach RELOC_RELA() to skip R_ALPHA_NONE
relocations (which are just nops used to fill out the relocation table).
Handling R_ALPHA_NONE relocations will be necessary for static PIE support
and it is not inconceivable that ld.so will end up with such relocations
at some point.

ok kurt@
libexec/ld.so/alpha/archdep.h
libexec/ld.so/alpha/rtld_machine.c