* [PATCH] Fix Scrt1.o on ppc64
@ 2003-07-07 21:44 Jakub Jelinek
2003-07-08 3:44 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2003-07-07 21:44 UTC (permalink / raw)
To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers
Hi!
This patch prevents DT_TEXTREL PIEs just because Scrt1.o was linked in.
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.
--- libc/sysdeps/powerpc/powerpc64/elf/start.S.jj 2002-12-09 15:37:21.000000000 -0500
+++ libc/sysdeps/powerpc/powerpc64/elf/start.S 2003-07-07 17:41:46.000000000 -0400
@@ -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*/
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix Scrt1.o on ppc64
2003-07-07 21:44 [PATCH] Fix Scrt1.o on ppc64 Jakub Jelinek
@ 2003-07-08 3:44 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-07-08 3:44 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: Roland McGrath, Glibc hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> 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.
Applied.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/Cj3u2ijCOnn/RHQRAjsjAKCh1dUzTArFwQw9/jt7SQe02ULMMACdE62j
o7mOWg1RcsTnIzZcHrZXWJk=
=uPBB
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-08 3:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-07 21:44 [PATCH] Fix Scrt1.o on ppc64 Jakub Jelinek
2003-07-08 3:44 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).