mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-12 12:07:12 +08:00
(elf_machine_rela): Don't handle
R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check for rtld map if RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
This commit is contained in:
parent
703aebdd7b
commit
952ec50e9e
@ -468,7 +468,7 @@ elf_machine_rela (struct link_map *map,
|
|||||||
{
|
{
|
||||||
unsigned long int const r_type = ELF64_R_TYPE (reloc->r_info);
|
unsigned long int const r_type = ELF64_R_TYPE (reloc->r_info);
|
||||||
|
|
||||||
#ifndef RTLD_BOOTSTRAP
|
#if !defined RTLD_BOOTSTRAP && !defined HAVE_Z_COMBRELOC
|
||||||
/* This is defined in rtld.c, but nowhere in the static libc.a; make the
|
/* This is defined in rtld.c, but nowhere in the static libc.a; make the
|
||||||
reference weak so static programs can still link. This declaration
|
reference weak so static programs can still link. This declaration
|
||||||
cannot be done when compiling rtld.c (i.e. #ifdef RTLD_BOOTSTRAP)
|
cannot be done when compiling rtld.c (i.e. #ifdef RTLD_BOOTSTRAP)
|
||||||
@ -480,9 +480,10 @@ elf_machine_rela (struct link_map *map,
|
|||||||
/* We cannot use a switch here because we cannot locate the switch
|
/* We cannot use a switch here because we cannot locate the switch
|
||||||
jump table until we've self-relocated. */
|
jump table until we've self-relocated. */
|
||||||
|
|
||||||
|
#if !defined RTLD_BOOTSTRAP || !defined HAVE_Z_COMBRELOC
|
||||||
if (__builtin_expect (r_type == R_ALPHA_RELATIVE, 0))
|
if (__builtin_expect (r_type == R_ALPHA_RELATIVE, 0))
|
||||||
{
|
{
|
||||||
#ifndef RTLD_BOOTSTRAP
|
# if !defined RTLD_BOOTSTRAP && !defined HAVE_Z_COMBRELOC
|
||||||
/* Already done in dynamic linker. */
|
/* Already done in dynamic linker. */
|
||||||
if (map != &_dl_rtld_map)
|
if (map != &_dl_rtld_map)
|
||||||
# endif
|
# endif
|
||||||
@ -505,6 +506,7 @@ elf_machine_rela (struct link_map *map,
|
|||||||
return;
|
return;
|
||||||
# endif
|
# endif
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Elf64_Addr loadbase, sym_value;
|
Elf64_Addr loadbase, sym_value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user