Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | SCRIPT_NAME=elf |
2 | ELFSIZE=64 | |
3 | TEMPLATE_NAME=elf32 | |
4 | OUTPUT_FORMAT="elf64-sparc" | |
252b5132 | 5 | MAXPAGESIZE=0x100000 |
2d20f7bf | 6 | COMMONPAGESIZE=0x2000 |
252b5132 RH |
7 | ARCH="sparc:v9" |
8 | MACHINE= | |
9 | DATA_PLT= | |
10 | GENERATE_SHLIB_SCRIPT=yes | |
36af4a4e | 11 | GENERATE_PIE_SCRIPT=yes |
252b5132 | 12 | NOP=0x01000000 |
48459341 | 13 | NO_SMALL_DATA=yes |
e76d716a | 14 | |
645571e1 JJ |
15 | case "$target" in |
16 | sparc*-solaris*) | |
17 | TEXT_START_ADDR=0x100000000 | |
18 | NONPAGED_TEXT_START_ADDR=0x100000000 | |
19 | ;; | |
20 | *) | |
21 | TEXT_START_ADDR=0x100000 | |
22 | NONPAGED_TEXT_START_ADDR=0x100000 | |
23 | ;; | |
24 | esac | |
25 | ||
f52d1d64 JJ |
26 | # Treat a host that matches the target with the possible exception of "64" |
27 | # and "v7", "v8", "v9" in the name as if it were native. | |
28 | if test `echo "$host" | sed -e 's/64//;s/v[789]//'` \ | |
29 | = `echo "$target" | sed -e 's/64//;s/v[789]//'`; then | |
e76d716a RH |
30 | case " $EMULATION_LIBPATH " in |
31 | *" ${EMULATION_NAME} "*) | |
9c8ebd6a DJ |
32 | NATIVE=yes |
33 | ;; | |
e76d716a RH |
34 | esac |
35 | fi | |
9c8ebd6a DJ |
36 | |
37 | # Linux and Solaris modify the default library search path | |
38 | # to first include a 64-bit specific directory. It's put | |
39 | # in slightly different places on the two systems. | |
40 | # Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first | |
41 | # on Linux and /lib/sparcv9, /usr/lib/sparcv9 etc. on Solaris. | |
42 | case "$EMULATION_NAME" in | |
43 | *64*) | |
44 | case "$target" in | |
45 | sparc*-linux*) | |
cad91d28 | 46 | LIBPATH_SUFFIX=64 ;; |
9c8ebd6a | 47 | sparc*-solaris*) |
cad91d28 | 48 | LIBPATH_SUFFIX=/sparcv9 ;; |
9c8ebd6a DJ |
49 | esac |
50 | ;; | |
51 | esac |