From 78df0fcb80247ca7573a8ed07cc992b7031674c1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 31 Aug 2002 17:45:33 +0000 Subject: Update. * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare external functions with hidden attribute. (elf_machine_rela): Optimize. * sysdeps/x86_64/memset.S: New file. * sysdeps/x86_64/bzero.S: New file. * sysdeps/x86_64/stpcpy.S: New file. * sysdeps/x86_64/strcat.S: New file. * sysdeps/x86_64/strchr.S: New file. * sysdeps/x86_64/strcpy.S: New file. * sysdeps/x86_64/strcspn.S: New file. * sysdeps/x86_64/strlen.S: New file. * sysdeps/x86_64/strpbrk.S: New file. * sysdeps/x86_64/strspn.S: New file. * sysdeps/x86_64/strcmp.S: New file. * sysdeps/x86_64/strtok_r.S: New file. * sysdeps/x86_64/strtok.S: New file. * sysdeps/x86_64/memcpy.S: New file. * sysdeps/x86_64/mempcpy.S: New file. --- sysdeps/x86_64/dl-machine.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sysdeps/x86_64/dl-machine.h') diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h index adf108c17f..2800a9e958 100644 --- a/sysdeps/x86_64/dl-machine.h +++ b/sysdeps/x86_64/dl-machine.h @@ -84,8 +84,8 @@ static inline int __attribute__ ((unused)) elf_machine_runtime_setup (struct link_map *l, int lazy, int profile) { Elf64_Addr *got; - extern void _dl_runtime_resolve (Elf64_Word); - extern void _dl_runtime_profile (Elf64_Word); + extern void _dl_runtime_resolve (Elf64_Word) attribute_hidden; + extern void _dl_runtime_profile (Elf64_Word) attribute_hidden; if (l->l_info[DT_JMPREL] && lazy) { @@ -367,7 +367,10 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc, const Elf64_Sym *const refsym = sym; #endif Elf64_Addr value = RESOLVE (&sym, version, r_type); - if (sym) + +# ifndef RTLD_BOOTSTRAP + if (sym != NULL) +# endif value += sym->st_value; #ifdef RTLD_BOOTSTRAP -- cgit v1.2.3