From: Ian Lance Taylor Date: Sat, 15 Mar 1997 02:31:01 +0000 (+0000) Subject: * scripttempl/elfmips.sc: Change handling of data area when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2adb092c95241e0a4b56c31047b7027921b40e60;p=binutils-gdb.git * scripttempl/elfmips.sc: Change handling of data area when generating a shared library to not skip a large block of memory. From Per Fogelstrom . --- diff --git a/ld/ChangeLog b/ld/ChangeLog index d16eecb3340..3ccd300e382 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 ec23a36027a..159c3ed6968 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}}