diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-15 02:31:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-15 02:31:01 +0000 |
commit | 2adb092c95241e0a4b56c31047b7027921b40e60 (patch) | |
tree | b28552e529080b2908c880a62ffba2aaaa491eaf /ld/scripttempl | |
parent | 4813bbed2b8418f29f37d715bbca01b91200cd74 (diff) | |
download | gdb-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>.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elfmips.sc | 5 |
1 files changed, 3 insertions, 2 deletions
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}} |