23867d6732
2004-04-21 Chris Demetriou <cgd@broadcom.com> * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove. * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove. * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs) (bfd_mips_elf32_create_embedded_relocs): Remove prototypes * bfd-in2.h: Regenerate. [ ld/ChangeLog ] 2004-04-21 Chris Demetriou <cgd@broadcom.com> * ld.texinfo: Remove MIPS --embedded-relocs documentation. * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition. * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em. (EXTRA_EM_FILE): Use mipsecoff.em * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em. (EXTRA_EM_FILE): Use mipsecoff.em * emultempl/mipsecoff.em: Restructure to be included as an extra emulation file. (check_sections, gld${EMULATION_NAME}_after_open) (gld${EMULATION_NAME}_after_allocation) (gld${EMULATION_NAME}_get_script) (ld_${EMULATION_NAME}_emulation): Remove (gld${EMULATION_NAME}_before_parse): Rename to... (mipsecoff_before_parse): This. (LDEMUL_BEFORE_PARSE): Define. * emultempl/mipself.em: Remove file. * scripttempl/mips.sc (.rel.sdata): Do not include in output. (__runtime_reloc_start, __runtime_reloc_stop): Stop providing these symbols. * Makefile.am: Remove dependencies on emultempl/mipself.em. * Makefile.in: Regenerate. [ ld/testsuite/ChangeLog ] 2004-04-21 Chris Demetriou <cgd@broadcom.com> * ld-empic/run.c: Removed as part of MIPS --embedded-relocs removal. * ld-empic/empic.exp: Likewise. * ld-empic/relax.t: Likewise. * ld-empic/relax1.c: Likewise. * ld-empic/relax2.c: Likewise. * ld-empic/relax3.c: Likewise. * ld-empic/relax4.c: Likewise. * ld-empic/runtest1.c: Likewise. * ld-empic/runtest2.c: Likewise. * ld-empic/runtesti.s: Likewise. * ld-mips-elf/empic1-ln.d: Likewise. * ld-mips-elf/empic1-lp.d: Likewise. * ld-mips-elf/empic1-mn.d: Likewise. * ld-mips-elf/empic1-mp.d: Likewise. * ld-mips-elf/empic1-ref.s: Likewise. * ld-mips-elf/empic1-sn.d: Likewise. * ld-mips-elf/empic1-sp.d: Likewise. * ld-mips-elf/empic1-space.s: Likewise. * ld-mips-elf/empic1-tgt.s: Likewise. * ld-mips-elf/empic2-fwd-0.d: Likewise. * ld-mips-elf/empic2-fwd-1.d: Likewise. * ld-mips-elf/empic2-fwd-tgt.s: Likewise. * ld-mips-elf/empic2-ref.s: Likewise. * ld-mips-elf/empic2-rev-0.d: Likewise. * ld-mips-elf/empic2-rev-1.d: Likewise. * ld-mips-elf/empic2-rev-tgt.s: Likewise. * ld-mips-elf/empic2-space.s: Likewise. * ld-mips-elf/emrelocs-eb.d: Likewise. * ld-mips-elf/emrelocs-el.d: Likewise. * ld-mips-elf/emrelocs.ld: Likewise. * ld-mips-elf/emrelocs1.s: Likewise. * ld-mips-elf/emrelocs2.s: Likewise. * ld-mips-elf/mips-elf.exp: Don't run now-removed tests.
70 lines
1.4 KiB
Scala
70 lines
1.4 KiB
Scala
# Linker script for MIPS systems.
|
|
# Ian Lance Taylor <ian@cygnus.com>.
|
|
# These variables may be overridden by the emulation file. The
|
|
# defaults are appropriate for a DECstation running Ultrix.
|
|
test -z "$ENTRY" && ENTRY=__start
|
|
|
|
if [ -z "$EMBEDDED" ]; then
|
|
test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
|
|
else
|
|
test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000"
|
|
fi
|
|
if test "x$LD_FLAG" = "xn" -o "x$LD_FLAG" = "xN"; then
|
|
DATA_ADDR=.
|
|
else
|
|
test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
|
|
fi
|
|
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
|
|
"${LITTLE_OUTPUT_FORMAT}")
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
ENTRY(${ENTRY})
|
|
|
|
SECTIONS
|
|
{
|
|
${RELOCATING+. = ${TEXT_START_ADDR};}
|
|
.text : {
|
|
${RELOCATING+ _ftext = . };
|
|
*(.init)
|
|
${RELOCATING+ eprol = .};
|
|
*(.text)
|
|
*(.fini)
|
|
${RELOCATING+ etext = .};
|
|
${RELOCATING+ _etext = .};
|
|
}
|
|
${RELOCATING+. = ${DATA_ADDR};}
|
|
.rdata : {
|
|
*(.rdata)
|
|
}
|
|
${RELOCATING+ _fdata = ALIGN(16);}
|
|
.data : {
|
|
*(.data)
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
}
|
|
${RELOCATING+ _gp = ALIGN(16) + 0x8000;}
|
|
.lit8 : {
|
|
*(.lit8)
|
|
}
|
|
.lit4 : {
|
|
*(.lit4)
|
|
}
|
|
.sdata : {
|
|
*(.sdata)
|
|
}
|
|
${RELOCATING+ edata = .;}
|
|
${RELOCATING+ _edata = .;}
|
|
${RELOCATING+ _fbss = .;}
|
|
.sbss : {
|
|
*(.sbss)
|
|
*(.scommon)
|
|
}
|
|
.bss : {
|
|
*(.bss)
|
|
*(COMMON)
|
|
}
|
|
${RELOCATING+ end = .;}
|
|
${RELOCATING+ _end = .;}
|
|
}
|
|
EOF
|