From 2adb092c95241e0a4b56c31047b7027921b40e60 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 15 Mar 1997 02:31:01 +0000 Subject: * scripttempl/elfmips.sc: Change handling of data area when generating a shared library to not skip a large block of memory. From Per Fogelstrom . --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elfmips.sc | 5 +++-- 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 + + * scripttempl/elfmips.sc: Change handling of data area when + generating a shared library to not skip a large block of memory. + From Per Fogelstrom . + Wed Mar 12 21:33:09 1997 Ian Lance Taylor * 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}} -- cgit v1.1