diff options
Diffstat (limited to 'sys-devel/binutils-apple/files/ld64-123.2-darwin8-no-mlong-branch-warning.patch')
-rw-r--r-- | sys-devel/binutils-apple/files/ld64-123.2-darwin8-no-mlong-branch-warning.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-devel/binutils-apple/files/ld64-123.2-darwin8-no-mlong-branch-warning.patch b/sys-devel/binutils-apple/files/ld64-123.2-darwin8-no-mlong-branch-warning.patch new file mode 100644 index 000000000000..c8a303e1c9d6 --- /dev/null +++ b/sys-devel/binutils-apple/files/ld64-123.2-darwin8-no-mlong-branch-warning.patch @@ -0,0 +1,17 @@ +On Tiger (Darwin 8) the whole system (/usr/bin/crt0.o for example) is +long-branch compiled, so *any* linkage operation causes this warning to +be raised. Don't do it. + + +--- ld/parsers/macho_relocatable_file.cpp ++++ ld/parsers/macho_relocatable_file.cpp +@@ -5532,9 +5532,6 @@ + // this is from -mlong-branch codegen. We ignore the jump island and make reference to the real target + if ( nextReloc->r_type() != PPC_RELOC_PAIR ) + throw "PPC_RELOC_JBSR missing following pair"; +- if ( !parser._hasLongBranchStubs ) +- warning("object file compiled with -mlong-branch which is no longer needed. " +- "To remove this warning, recompile without -mlong-branch: %s", parser._path); + parser._hasLongBranchStubs = true; + result = true; + if ( reloc->r_extern() ) { |