public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix for mips PT_DYNAMIC code
@ 2003-08-14  9:37 Richard Sandiford
  0 siblings, 0 replies; only message in thread
From: Richard Sandiford @ 2003-08-14  9:37 UTC (permalink / raw)
  To: binutils

If the address of .dynamic was > 0xffffffff, we'd set PT_DYNAMIC to the
address of the lowest loadable section.  This triggers every time for me
on mips64-linux-gnu (elf64btsmip now has a TEXT_START_ADDR of 0x120000000).

Tested with gcc bootstrap & C regression test on mips64-linux-gnu,
all three multilibs.  Installed as obvious.

Richard


	* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
	code to work with 64-bit bfds.

Index: elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.72
diff -u -p -d -r1.72 elfxx-mips.c
--- elfxx-mips.c	7 Aug 2003 08:38:10 -0000	1.72
+++ elfxx-mips.c	13 Aug 2003 06:37:01 -0000
@@ -7474,7 +7474,7 @@ _bfd_mips_elf_modify_segment_map (abfd)
 	  unsigned int i, c;
 	  struct elf_segment_map *n;
 
-	  low = 0xffffffff;
+	  low = ~(bfd_vma) 0;
 	  high = 0;
 	  for (i = 0; i < sizeof sec_names / sizeof sec_names[0]; i++)
 	    {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-14  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14  9:37 Fix for mips PT_DYNAMIC code Richard Sandiford

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