public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* MIPS IRIX compatibility vs. mips-elf
@ 2005-01-28 16:46 Daniel Jacobowitz
  2005-01-28 16:49 ` Ian Lance Taylor
  2005-01-28 17:37 ` Richard Sandiford
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-01-28 16:46 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-28 19:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28 16:46 MIPS IRIX compatibility vs. mips-elf Daniel Jacobowitz
2005-01-28 16:49 ` Ian Lance Taylor
2005-01-28 17:01   ` sjhill
2005-01-28 17:37 ` Richard Sandiford
2005-01-28 17:47   ` Daniel Jacobowitz
2005-01-28 19:01     ` Eric Christopher

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).