diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-01 22:31:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-01 22:31:27 +0000 |
commit | 4fc7ca82bfdfaa22a483108789744f4de53d3e13 (patch) | |
tree | 737a730a2e8b9a76e67e9a765788b120284a341a /ld | |
parent | 8dd53b5cc825712c98e99c0ada5f358d71860fcc (diff) | |
download | gdb-4fc7ca82bfdfaa22a483108789744f4de53d3e13.zip gdb-4fc7ca82bfdfaa22a483108789744f4de53d3e13.tar.gz gdb-4fc7ca82bfdfaa22a483108789744f4de53d3e13.tar.bz2 |
* scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
elf.sc does, so that glibc works better.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 3 | ||||
-rw-r--r-- | ld/scripttempl/elfmips.sc | 24 |
2 files changed, 15 insertions, 12 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1582f14..be8f7d2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -4,6 +4,9 @@ Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com> Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com> + * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that + elf.sc does, so that glibc works better. + * ldver.c (ld_program_version): New variable. (ldversion): Use it. * ldver.h (ld_program_version): Declare. diff --git a/ld/scripttempl/elfmips.sc b/ld/scripttempl/elfmips.sc index aed49a3..9c6eaac 100644 --- a/ld/scripttempl/elfmips.sc +++ b/ld/scripttempl/elfmips.sc @@ -92,14 +92,14 @@ SECTIONS .init ${RELOCATING-0} : { *(.init) } =${NOP-0} .text ${RELOCATING-0} : { - ${CREATE_SHLIB-${RELOCATING+${TEXT_START_SYMBOLS}}} + ${RELOCATING+${TEXT_START_SYMBOLS}} *(.text) *(.stub) /* .gnu.warning sections are handled specially by elf32.em. */ *(.gnu.warning) } =${NOP-0} - ${CREATE_SHLIB-${RELOCATING+_etext = .;}} - ${CREATE_SHLIB-${RELOCATING+PROVIDE (etext = .);}} + ${RELOCATING+_etext = .;} + ${RELOCATING+PROVIDE (etext = .);} .fini ${RELOCATING-0} : { *(.fini) } =${NOP-0} /* Adjust the address for the data segment. We want to adjust up to @@ -118,11 +118,11 @@ 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). */ - ${CREATE_SHLIB-${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};}} - ${CREATE_SHLIB+${RELOCATING+. += 0x10000;}} + ${RELOCATING+. += ${DATA_ADDR} - ${TEXT_START_ADDR};} + ${RELOCATING+. += 0x10000;} .data ${RELOCATING-0} : { - ${CREATE_SHLIB-${RELOCATING+${DATA_START_SYMBOLS}}} + ${RELOCATING+${DATA_START_SYMBOLS}} *(.data) ${CONSTRUCTING+CONSTRUCTORS} } @@ -139,10 +139,10 @@ SECTIONS we can shorten the on-disk segment size. */ .sdata ${RELOCATING-0} : { *(.sdata) } ${RELOCATING+${OTHER_READWRITE_SECTIONS}} - ${CREATE_SHLIB-${RELOCATING+_edata = .;}} - ${CREATE_SHLIB-${RELOCATING+PROVIDE (edata = .);}} - ${CREATE_SHLIB-${RELOCATING+__bss_start = .;}} - ${CREATE_SHLIB-${RELOCATING+${OTHER_BSS_SYMBOLS}}} + ${RELOCATING+_edata = .;} + ${RELOCATING+PROVIDE (edata = .);} + ${RELOCATING+__bss_start = .;} + ${RELOCATING+${OTHER_BSS_SYMBOLS}} .sbss ${RELOCATING-0} : { *(.sbss) *(.scommon) } .bss ${RELOCATING-0} : { @@ -150,8 +150,8 @@ SECTIONS *(.bss) *(COMMON) } - ${CREATE_SHLIB-${RELOCATING+_end = . ;}} - ${CREATE_SHLIB-${RELOCATING+PROVIDE (end = .);}} + ${RELOCATING+_end = . ;} + ${RELOCATING+PROVIDE (end = .);} /* These are needed for ELF backends which have not yet been converted to the new style linker. */ |