mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
c55b17b809
In looking at the csky-elf vs. csky-linux differences, the first thing I compared was csky_elf.sh and cskyelf_linux.sh. Those files are mostly the same but besides the real differences, annoyingly have some lines ordered differently. It's better in such cases to have one file source the other, making differences plain. This patch does that for csky and microblaze, removes an unused variable defined in a few places, and fixes ld makefile dependencies. * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em. (ecskyelf_linux.c): Depend on cskyelf.sh. (eelf32microblazeel.c): Depend on elf32microblaze.sh. * Makefile.in: Regenerate. * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh. (PAGE_SIZE): Don't define. * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just the differing variable defs/undefs. * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define. * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh. (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT. (PAGE_SIZE): Don't define. * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh, leaving just the differing OUTPUT_FORMAT.
27 lines
719 B
Bash
27 lines
719 B
Bash
# If you change this file, please also look at files which source this one:
|
|
# elf32microblazeel.sh
|
|
SCRIPT_NAME=elfmicroblaze
|
|
BIG_OUTPUT_FORMAT="elf32-microblaze"
|
|
LITTLE_OUTPUT_FORMAT="elf32-microblazeel"
|
|
OUTPUT_FORMAT=$BIG_OUTPUT_FORMAT
|
|
#TEXT_START_ADDR=0
|
|
NONPAGED_TEXT_START_ADDR=0x28
|
|
ALIGNMENT=4
|
|
MAXPAGESIZE=4
|
|
ARCH=microblaze
|
|
EMBEDDED=yes
|
|
|
|
NOP=0x80000000
|
|
|
|
# Hmmm, there's got to be a better way. This sets the stack to the
|
|
# top of the simulator memory (2^19 bytes).
|
|
#DATA_ADDR=0x10000
|
|
#OTHER_RELOCATING_SECTIONS='.stack 0x7000 : { _stack = .; *(.stack) }'
|
|
#$@{RELOCATING+ PROVIDE (__stack = 0x7000);@}
|
|
#OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
|
|
|
|
TEMPLATE_NAME=elf32
|
|
#GENERATE_SHLIB_SCRIPT=yes
|
|
|
|
|