OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [ld/] [emulparams/] [shelf.sh] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
# If you change this file, please also look at files which source this one:
2
# shlelf.sh, shelf_nbsd.sh
3
 
4
SCRIPT_NAME=elf
5
OUTPUT_FORMAT="elf32-sh"
6
NO_REL_RELOCS=yes
7
TEXT_START_ADDR=0x1000
8
MAXPAGESIZE=128
9
ARCH=sh
10
MACHINE=
11
TEMPLATE_NAME=elf32
12
GENERATE_SHLIB_SCRIPT=yes
13
EMBEDDED=yes
14
 
15
# These are for compatibility with the COFF toolchain.
16
ENTRY=start
17
CTOR_START='___ctors = .;'
18
CTOR_END='___ctors_end = .;'
19
DTOR_START='___dtors = .;'
20
DTOR_END='___dtors_end = .;'
21
# This is like setting STACK_ADDR to 0x300000, except that the setting can
22
# be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra
23
# sentinal value at the bottom.
24
# N.B. We can't use PROVIDE to set the default value in a symbol because
25
# the address is needed to place the .stack section, which in turn is needed
26
# to hold the sentinel value(s).
27
test -z "$CREATE_SHLIB" && OTHER_SECTIONS="  .stack        ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x300000)} :
28
  {
29
    ${RELOCATING+_stack = .;}
30
    *(.stack)
31
    LONG(0xdeaddead)
32
  }"
33
# We do not need .stack for shared library.
34
test -n "$CREATE_SHLIB" && OTHER_SECTIONS=""

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.