aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-15 02:31:01 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-15 02:31:01 +0000
commit2adb092c95241e0a4b56c31047b7027921b40e60 (patch)
treeb28552e529080b2908c880a62ffba2aaaa491eaf
parent4813bbed2b8418f29f37d715bbca01b91200cd74 (diff)
downloadgdb-2adb092c95241e0a4b56c31047b7027921b40e60.zip
gdb-2adb092c95241e0a4b56c31047b7027921b40e60.tar.gz
gdb-2adb092c95241e0a4b56c31047b7027921b40e60.tar.bz2
* scripttempl/elfmips.sc: Change handling of data area when
generating a shared library to not skip a large block of memory. From Per Fogelstrom <pefo@cvs.openbsd.org>.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/scripttempl/elfmips.sc5
2 files changed, 9 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d16eecb..3ccd300 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * scripttempl/elfmips.sc: Change handling of data area when
+ generating a shared library to not skip a large block of memory.
+ From Per Fogelstrom <pefo@cvs.openbsd.org>.
+
Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (multiple_definition): Only skip the warning if the
diff --git a/ld/scripttempl/elfmips.sc b/ld/scripttempl/elfmips.sc
index ec23a36..159c3ed 100644
--- a/ld/scripttempl/elfmips.sc
+++ b/ld/scripttempl/elfmips.sc
@@ -128,8 +128,9 @@ SECTIONS
important than losing a page of the virtual address space (note
that no actual memory is lost; the page which is skipped can not
be referenced). */
- ${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};}
- ${RELOCATING+. += 0x10000;}
+ ${CREATE_SHLIB-${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};}}
+ ${CREATE_SHLIB-${RELOCATING+. += 0x10000;}}
+ ${CREATE_SHLIB+${RELOCATING+. = ALIGN(${MAXPAGESIZE}) + (ALIGN(8) & (${MAXPAGESIZE} - 1));}}
.data ${RELOCATING-0} :
{
${RELOCATING+${DATA_START_SYMBOLS}}