From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23177 invoked by alias); 5 May 2005 16:37:40 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 23075 invoked from network); 5 May 2005 16:37:31 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by sourceware.org with SMTP; 5 May 2005 16:37:31 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc11) with ESMTP id <200505051637280130050tqee>; Thu, 5 May 2005 16:37:28 +0000 Received: by lucon.org (Postfix, from userid 1000) id 513EE646BD; Thu, 5 May 2005 09:37:28 -0700 (PDT) Date: Thu, 05 May 2005 16:38:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: PATCH: Use "__bss_start" instead of "_edata" Message-ID: <20050505163728.GA29912@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-05/txt/msg00178.txt.bz2 "_edata" may not be defined due to the elf.sc change. I will check into this patch to use "__bss_start" instead and document it in elf.sc. H.J. --- bfd/ 2005-05-05 H.J. Lu * elflink.c (_bfd_elf_provide_section_bound_symbols): Use "__bss_start" instead of "_edata" as fallback. ld/ 2005-05-05 H.J. Lu * scripttempl/elf.sc: Document the usage of __bss_start. --- binutils/bfd/elflink.c.bss 2005-05-05 07:50:03.000000000 -0700 +++ binutils/bfd/elflink.c 2005-05-05 09:31:17.000000000 -0700 @@ -9911,10 +9911,10 @@ _bfd_elf_provide_section_bound_symbols ( else { /* We have to choose those values very carefully. Some targets, - like alpha, may have relocation overflow with 0. "_edata" + like alpha, may have relocation overflow with 0. "__bss_start" should be defined in all cases. */ struct elf_link_hash_entry *h - = elf_link_hash_lookup (elf_hash_table (info), "_edata", + = elf_link_hash_lookup (elf_hash_table (info), "__bss_start", FALSE, FALSE, FALSE); if (h != NULL && h->root.type == bfd_link_hash_defined) start_val = h->root.u.def.value; --- binutils/ld/scripttempl/elf.sc.bss 2005-05-05 07:45:30.000000000 -0700 +++ binutils/ld/scripttempl/elf.sc 2005-05-05 09:32:26.000000000 -0700 @@ -376,6 +376,8 @@ cat <