projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
ld
/
scripttempl
/
sh.sc
diff --git
a/ld/scripttempl/sh.sc
b/ld/scripttempl/sh.sc
index 036dd216db2f3cb837c39b880d17c22a4c5d04c2..107cc89357474687a5aeccff1d4ed621f0af28b3 100644
(file)
--- a/
ld/scripttempl/sh.sc
+++ b/
ld/scripttempl/sh.sc
@@
-1,3
+1,9
@@
+# Copyright (C) 2014-2020 Free Software Foundation, Inc.
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+
TORS=".tors :
{
___ctors = . ;
TORS=".tors :
{
___ctors = . ;
@@
-6,17
+12,29
@@
TORS=".tors :
___dtors = . ;
*(.dtors)
___dtors_end = . ;
___dtors = . ;
*(.dtors)
___dtors_end = . ;
- }
> ram
"
+ }
${RELOCATING+ > ram}
"
cat <<EOF
cat <<EOF
+/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
+
+ Copying and distribution of this script, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved. */
+
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
+EOF
+
+test -n "${RELOCATING}" && cat <<EOF
MEMORY
{
ram : o = 0x1000, l = 512k
}
MEMORY
{
ram : o = 0x1000, l = 512k
}
+EOF
+
+cat <<EOF
SECTIONS
{
.text :
SECTIONS
{
.text :
@@
-29,6
+47,11
@@
SECTIONS
.data :
{
*(.data)
.data :
{
*(.data)
+ ${RELOCATING+*(.gcc_exc*)}
+ ${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
+ ${RELOCATING+*(.eh_fram*)}
+ ${RELOCATING+___EH_FRAME_END__ = . ;}
+ ${RELOCATING+LONG(0);}
${RELOCATING+ _edata = . ; }
} ${RELOCATING+ > ram}
.bss :
${RELOCATING+ _edata = . ; }
} ${RELOCATING+ > ram}
.bss :
This page took
0.02332 seconds
and
4
git commands to generate.