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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [ld/] [emulparams/] [elf32ppccommon.sh] - Blame information for rev 853

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

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

powered by: WebSVN 2.1.0

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