summaryrefslogtreecommitdiffstats
path: root/binutils-2.19/ld
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2010-07-22 14:35:55 -0700
committerJing Yu <jingyu@google.com>2010-07-22 14:35:55 -0700
commit5755afadf580726c7d9a34c575930d21c54a1f0a (patch)
treed0224f80576d1f48229e4999a3b059e012e4bfae /binutils-2.19/ld
parent289c95d00ec591cffa5b705641ffcbdacb7c0d5c (diff)
downloadtoolchain_binutils-5755afadf580726c7d9a34c575930d21c54a1f0a.zip
toolchain_binutils-5755afadf580726c7d9a34c575930d21c54a1f0a.tar.gz
toolchain_binutils-5755afadf580726c7d9a34c575930d21c54a1f0a.tar.bz2
A few binutils and gold patches to make gold and safe-icf work.
Change-Id: I805434f4f616c822c979081a5a71b607ecd6cf26
Diffstat (limited to 'binutils-2.19/ld')
-rw-r--r--binutils-2.19/ld/emultempl/armelf.em7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils-2.19/ld/emultempl/armelf.em b/binutils-2.19/ld/emultempl/armelf.em
index 4340a48..0fd9ab6 100644
--- a/binutils-2.19/ld/emultempl/armelf.em
+++ b/binutils-2.19/ld/emultempl/armelf.em
@@ -458,6 +458,7 @@ PARSE_AND_LIST_PROLOGUE='
#define OPTION_NO_WCHAR_SIZE_WARNING 313
#define OPTION_FIX_CORTEX_A8 314
#define OPTION_NO_FIX_CORTEX_A8 315
+#define OPTION_ICF 399
'
PARSE_AND_LIST_SHORTOPTS=p
@@ -479,6 +480,7 @@ PARSE_AND_LIST_LONGOPTS='
{ "no-wchar-size-warning", no_argument, NULL, OPTION_NO_WCHAR_SIZE_WARNING},
{ "fix-cortex-a8", no_argument, NULL, OPTION_FIX_CORTEX_A8 },
{ "no-fix-cortex-a8", no_argument, NULL, OPTION_NO_FIX_CORTEX_A8 },
+ { "icf", required_argument, NULL, OPTION_ICF },
'
PARSE_AND_LIST_OPTIONS='
@@ -506,6 +508,7 @@ PARSE_AND_LIST_OPTIONS='
the linker should choose suitable defaults.\n"
));
fprintf (file, _(" --[no-]fix-cortex-a8 Disable/enable Cortex-A8 Thumb-2 branch erratum fix\n"));
+ fprintf (file, _(" --icf=<value> Ignored for compatibility with gold.\n"));
'
PARSE_AND_LIST_ARGS_CASES='
@@ -585,6 +588,10 @@ PARSE_AND_LIST_ARGS_CASES='
case OPTION_NO_FIX_CORTEX_A8:
fix_cortex_a8 = 0;
break;
+
+ case OPTION_ICF:
+ /* For compatibility with gold. */
+ break;
'
# We have our own before_allocation etc. functions, but they call