From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21948 invoked by alias); 7 Jul 2003 21:44:27 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 21931 invoked from network); 7 Jul 2003 21:44:27 -0000 Received: from unknown (HELO localhost.localdomain) (195.113.19.66) by sources.redhat.com with SMTP; 7 Jul 2003 21:44:27 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h67LiOqO028851; Mon, 7 Jul 2003 23:44:24 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id h67LiNv5028849; Mon, 7 Jul 2003 23:44:23 +0200 Date: Mon, 07 Jul 2003 21:44:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix Scrt1.o on ppc64 Message-ID: <20030707214423.GX20507@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-07/txt/msg00002.txt.bz2 Hi! 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 .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