Subject: change shared-library text start address to 0?
To: None <port-mips@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: port-mips
Date: 10/06/2000 16:49:27
Hi folks,

During a cvs update I noticed something that I'd forgotten about.

For some reason our shared libraries on mips have a text start address
of something around 0x5ffe0000.  The only reference I found to that
number seems to be IRIX related, but it's been a long time since
I did the research.  Mips was the only arch in GNU ld to even use
SHLIB_TEXT_START_ADDR.  I've been running with this since January this
year with no known side effects - all the shared libraries load above
0x20000000 anyway.

Anyone see anything bad in committing this?

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Sales, Support and Service:  http://www.wasabisystems.com/


Index: elf32bmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32bmip.sh,v
retrieving revision 1.1.1.2
diff -d -p -u -r1.1.1.2 elf32bmip.sh
--- elf32bmip.sh	1999/02/02 19:53:52	1.1.1.2
+++ elf32bmip.sh	2000/10/06 05:41:37
@@ -6,7 +6,6 @@ TEXT_START_ADDR=0x0400000
 DATA_ADDR=0x10000000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 TEXT_DYNAMIC=
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
Index: elf32bsmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32bsmip.sh,v
retrieving revision 1.1.1.1
diff -d -p -u -r1.1.1.1 elf32bsmip.sh
--- elf32bsmip.sh	1999/02/02 19:53:52	1.1.1.1
+++ elf32bsmip.sh	2000/10/06 05:41:37
@@ -6,7 +6,6 @@ TEXT_START_ADDR=0x0400000
 DATA_ADDR=0x10000000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 TEXT_DYNAMIC=
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
Index: elf32ebmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32ebmip.sh,v
retrieving revision 1.1.1.2
diff -d -p -u -r1.1.1.2 elf32ebmip.sh
--- elf32ebmip.sh	1999/02/02 19:53:52	1.1.1.2
+++ elf32ebmip.sh	2000/10/06 05:41:37
@@ -5,7 +5,6 @@ LITTLE_OUTPUT_FORMAT="elf32-littlemips"
 TEXT_START_ADDR=0x0400000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
Index: elf32elmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32elmip.sh,v
retrieving revision 1.1.1.2
diff -d -p -u -r1.1.1.2 elf32elmip.sh
--- elf32elmip.sh	1999/02/02 19:53:52	1.1.1.2
+++ elf32elmip.sh	2000/10/06 05:41:37
@@ -5,7 +5,6 @@ LITTLE_OUTPUT_FORMAT="elf32-littlemips"
 TEXT_START_ADDR=0x0400000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
Index: elf32lmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32lmip.sh,v
retrieving revision 1.1.1.2
diff -d -p -u -r1.1.1.2 elf32lmip.sh
--- elf32lmip.sh	1999/02/02 19:53:53	1.1.1.2
+++ elf32lmip.sh	2000/10/06 05:41:37
@@ -6,7 +6,6 @@ TEXT_START_ADDR=0x0400000
 DATA_ADDR=0x10000000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 TEXT_DYNAMIC=
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
Index: elf32lsmip.sh
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/ld/emulparams/elf32lsmip.sh,v
retrieving revision 1.1.1.1
diff -d -p -u -r1.1.1.1 elf32lsmip.sh
--- elf32lsmip.sh	1999/02/02 19:53:53	1.1.1.1
+++ elf32lsmip.sh	2000/10/06 05:41:37
@@ -6,7 +6,6 @@ TEXT_START_ADDR=0x0400000
 DATA_ADDR=0x10000000
 MAXPAGESIZE=0x40000
 NONPAGED_TEXT_START_ADDR=0x0400000
-SHLIB_TEXT_START_ADDR=0x5ffe0000
 TEXT_DYNAMIC=
 INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'