From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 988 invoked by alias); 28 Jan 2005 16:46:29 -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 951 invoked from network); 28 Jan 2005 16:46:25 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 28 Jan 2005 16:46:25 -0000 Received: from drow by nevyn.them.org with local (Exim 4.43 #1 (Debian)) id 1CuZGH-0005bY-CQ for ; Fri, 28 Jan 2005 11:46:21 -0500 Date: Fri, 28 Jan 2005 16:46:00 -0000 From: Daniel Jacobowitz To: binutils@sources.redhat.com Subject: MIPS IRIX compatibility vs. mips-elf Message-ID: <20050128164621.GA21291@nevyn.them.org> Mail-Followup-To: binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2005-01/txt/msg00487.txt.bz2 Right now, a bunch of ld tests fail on mips-elf because .dynamic is not first in the PT_DYNAMIC segment. This happens because of a mismatch: - elf32_mips_irix_compat thinks that we are trying for Irix 5 compatibility. This causes _bfd_mips_elf_modify_segment_map to include a lot of other sections in .dynamic. - elf32bmip.sh thinks that this configuration is not compatible with Irix 5, so does not set TEXT_DYNAMIC. As a result the .dynamic section is off in the writable segment, causing PT_DYNAMIC to start at .dynsym, pass through .text, and reach .dynamic (and then include an empty .data at the end, just for kicks). The linker complains; the result is useless. Of course, it's not quite clear what the value of mips-elf dynamic executables is. But it would be mildly nice if it worked, since that gives us better test coverage for the -shared tests. I'd like to turn off the IRIX compat hacks for mips-elf - seems odd to include them. Alternately, we can just dodge the problem by disabling these tests for mips*-elf. Any opinions? -- Daniel Jacobowitz