mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-23 09:13:28 +08:00
8ddef5528d
It wasn't documented (or likely used) and wastes time. (try_open): If EXTEN is empty, don't try it. * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c, ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c, ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls with normal function declarations. * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh. Move *.sc-sh to scripttempl/*.sc. * {emultempl,emulparams,scripttempl}/README: New files. * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files removed, replaced with generic.em. * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from h8[35]00hms.s[ch]. Change their contents to omit the "hms". * *.em (*_get_script): Return script name instead of script contents. * ldlang.c (lang_process): Change caller. * ldlex.l, ldgram.y: Recognize -m option. Check for input files after *all* options in grammar. * ldmain.c (main): Check for -m options. Add default directory for -m. * mkscript.c: File removed. * genscripts.sh: Take two more parameters, tooldirlib and libdir, to add to the default LIB_PATH. Look for input files in the new subdirectories. Create the scripts in emulations subdirectory and don't filter them through mkscript. * configure.in: Make the emulations subdirectory. * Makefile.in: Account for all of the above changes. Remove unused .SUFFIXES. Get libgcc.a path with gcc -print-libgcc-file-name instead of $(libdir)/libgcc.a. Put CFLAGS last in the compilation rules. Add -I../bfd to INCLUDES so sysdep.h is found. * ldfile.c (try_open): If opening without the extension fails, try with the extension even if -v or -V was given. had_script is imported (from ldgram.y), not exported.
57 lines
1.2 KiB
Scala
57 lines
1.2 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
|
|
test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
|
|
test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
|
|
test -z "$BSS_VAR" && BSS_VAR=
|
|
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
ENTRY(${ENTRY})
|
|
|
|
SECTIONS
|
|
{
|
|
.text ${RELOCATING+ ${TEXT_START_ADDR}} : {
|
|
*(.init)
|
|
${RELOCATING+ eprol = .};
|
|
*(.text)
|
|
*(.fini)
|
|
${RELOCATING+ etext = .};
|
|
${RELOCATING+ _etext = .};
|
|
}
|
|
.rdata ${RELOCATING+ ${DATA_ADDR}} : {
|
|
*(.rdata)
|
|
}
|
|
.data ${RELOCATING+ .} : {
|
|
*(.data)
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
}
|
|
${RELOCATING+ _gp = . + 0x8000;}
|
|
.lit8 ${RELOCATING+ .} : {
|
|
*(.lit8)
|
|
}
|
|
.lit4 ${RELOCATING+ .} : {
|
|
*(.lit4)
|
|
}
|
|
.sdata ${RELOCATING+ .} : {
|
|
*(.sdata)
|
|
}
|
|
${RELOCATING+ edata = .;}
|
|
${RELOCATING+ _edata = .;}
|
|
${RELOCATING+ ${BSS_VAR}}
|
|
.sbss ${RELOCATING+ .} : {
|
|
*(.sbss)
|
|
*(.scommon)
|
|
}
|
|
.bss ${RELOCATING+ .} : {
|
|
*(.bss)
|
|
*(COMMON)
|
|
}
|
|
${RELOCATING+ end = .;}
|
|
${RELOCATING+ _end = .;}
|
|
}
|
|
EOF
|