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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [ld/] [emulparams/] [elf32ppccommon.sh] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 khays
# The PLT-agnostic parts of a generic 32-bit ELF PowerPC target.  Included by:
2
# elf32ppc.sh elf32ppcvxworks.sh
3
TEMPLATE_NAME=elf32
4
GENERATE_SHLIB_SCRIPT=yes
5
GENERATE_PIE_SCRIPT=yes
6
SCRIPT_NAME=elf
7
OUTPUT_FORMAT="elf32-powerpc"
8
NO_REL_RELOCS=yes
9
TEXT_START_ADDR=0x01800000
10
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
12
ARCH=powerpc:common
13
MACHINE=
14
EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
15
if test -z "${CREATE_SHLIB}"; then
16
  SDATA_START_SYMBOLS="PROVIDE (_SDA_BASE_ = 32768);"
17
  SDATA2_START_SYMBOLS="PROVIDE (_SDA2_BASE_ = 32768);"
18
  SBSS_START_SYMBOLS="PROVIDE (__sbss_start = .); PROVIDE (___sbss_start = .);"
19
  SBSS_END_SYMBOLS="PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .);"
20
else
21
  unset SDATA_START_SYMBOLS
22
  unset SDATA2_START_SYMBOLS
23
  unset SBSS_START_SYMBOLS
24
  unset SBSS_END_SYMBOLS
25
fi
26
OTHER_END_SYMBOLS="__end = .;"
27
OTHER_RELRO_SECTIONS="
28
  .fixup        ${RELOCATING-0} : { *(.fixup) }
29
  .got1         ${RELOCATING-0} : { *(.got1) }
30
  .got2         ${RELOCATING-0} : { *(.got2) }
31
"
32
OTHER_GOT_RELOC_SECTIONS="
33
  .rela.got1         ${RELOCATING-0} : { *(.rela.got1) }
34
  .rela.got2         ${RELOCATING-0} : { *(.rela.got2) }
35
"
36
 
37
# Treat a host that matches the target with the possible exception of "64"
38
# in the name as if it were native.
39
if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
40
  case " $EMULATION_LIBPATH " in
41
    *" ${EMULATION_NAME} "*)
42
      NATIVE=yes
43
      ;;
44
  esac
45
fi
46
 
47
# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
48
case "$EMULATION_NAME" in
49
  *64*) LIBPATH_SUFFIX=64 ;;
50
esac

powered by: WebSVN 2.1.0

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