This is the mail archive of the mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix Scrt1.o on ppc64


This patch prevents DT_TEXTREL PIEs just because Scrt1.o was linked in.

2003-07-07  Jakub Jelinek  <>

	* sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
	into 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 ""
 	.section ".rodata"
 	.align	3
 	.quad	0 /* was _SDA_BASE_  but not in 64-bit ABI*/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]