about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32/dl-machine.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-23 17:26:27 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-23 17:26:27 +0000
commit33e09162d0187eddf91bafa5e64f9d413a5a920f (patch)
treea56a58437faf749c920e6525e6b593597d482daa /sysdeps/sparc/sparc32/dl-machine.h
parentba4cf0e9ef65eb8f188a4d2432562f0aa572202c (diff)
downloadglibc-33e09162d0187eddf91bafa5e64f9d413a5a920f.tar.gz
glibc-33e09162d0187eddf91bafa5e64f9d413a5a920f.tar.xz
glibc-33e09162d0187eddf91bafa5e64f9d413a5a920f.zip
Ifdef out handling for relocs which never occur during bootstrap.
Diffstat (limited to 'sysdeps/sparc/sparc32/dl-machine.h')
-rw-r--r--sysdeps/sparc/sparc32/dl-machine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/dl-machine.h b/sysdeps/sparc/sparc32/dl-machine.h
index 84d25cd10a..feec35e46d 100644
--- a/sysdeps/sparc/sparc32/dl-machine.h
+++ b/sysdeps/sparc/sparc32/dl-machine.h
@@ -377,6 +377,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
 
       switch (ELF32_R_TYPE (reloc->r_info))
 	{
+#ifndef RTLD_BOOTSTRAP
 	case R_SPARC_COPY:
 	  if (sym == NULL)
 	    /* This can happen in trace mode if an object could not be
@@ -397,6 +398,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
 	  memcpy (reloc_addr, (void *) value, MIN (sym->st_size,
 						   refsym->st_size));
 	  break;
+#endif
 	case R_SPARC_GLOB_DAT:
 	case R_SPARC_32:
 	  *reloc_addr = value;
@@ -404,6 +406,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
 	case R_SPARC_JMP_SLOT:
 	  elf_machine_fixup_plt(map, 0, reloc, reloc_addr, value);
 	  break;
+#ifndef RTLD_BOOTSTRAP
 	case R_SPARC_8:
 	  *(char *) reloc_addr = value;
 	  break;
@@ -429,11 +432,14 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
 	case R_SPARC_HI22:
 	  *reloc_addr = (*reloc_addr & 0xffc00000) | (value >> 10);
 	  break;
+#endif
 	case R_SPARC_NONE:		/* Alright, Wilbur.  */
 	  break;
+#if !defined RTLD_BOOTSTRAP || defined _NDEBUG
 	default:
 	  _dl_reloc_bad_type (map, ELFW(R_TYPE) (reloc->r_info), 0);
 	  break;
+#endif
 	}
     }
 }