aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-08 03:49:44 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-08 03:49:44 +0000
commit57a5ea0215f9b7d6198927af695843aaffcd45a2 (patch)
tree81b4af3a1d151bc062e269a537d6e54ee08f92d8 /sysdeps/powerpc
parentd810b3584c4569612e078cbdd36bbf5c9272430c (diff)
downloadglibc-57a5ea0215f9b7d6198927af695843aaffcd45a2.tar
glibc-57a5ea0215f9b7d6198927af695843aaffcd45a2.tar.gz
glibc-57a5ea0215f9b7d6198927af695843aaffcd45a2.tar.bz2
glibc-57a5ea0215f9b7d6198927af695843aaffcd45a2.zip
Update.
2003-07-04 Jakub Jelinek <jakub@redhat.com> * sysdeps/s390/s390-32/elf/start.S: Emit position independent code if PIC. * sysdeps/s390/s390-64/elf/start.S: Likewise. 2003-07-07 Jakub Jelinek <jakub@redhat.com> * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address) into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/powerpc64/elf/start.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/elf/start.S b/sysdeps/powerpc/powerpc64/elf/start.S
index 65fa52c0f5..60864a1190 100644
--- a/sysdeps/powerpc/powerpc64/elf/start.S
+++ b/sysdeps/powerpc/powerpc64/elf/start.S
@@ -1,5 +1,5 @@
/* Startup code for programs linked with GNU libc. PowerPC64 version.
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,11 @@
#include "bp-sym.h"
/* These are the various addresses we require. */
+#ifdef PIC
+ .section ".data.rel.ro.local"
+#else
.section ".rodata"
+#endif
.align 3
L(start_addresses):
.quad 0 /* was _SDA_BASE_ but not in 64-bit ABI*/