diff -r 3f76cdbceb6e -r 88020b2c3246 patches/binutils/2.20/170-warn-textrel.patch --- a/patches/binutils/2.20/170-warn-textrel.patch Tue Oct 27 20:06:46 2009 +0100 +++ b/patches/binutils/2.20/170-warn-textrel.patch Tue Jan 12 19:24:03 2010 +0100 @@ -10,8 +10,8 @@ * ld/testsuite/lib/ld-lib.exp (default_ld_simple_link): Scrub TEXTREL warnings from ld output. ---- bfd/elflink.c -+++ bfd/elflink.c +--- binutils/bfd/elflink.c ++++ binutils/bfd/elflink.c @@ -8652,14 +8652,12 @@ goto error_return; @@ -38,14 +38,14 @@ break; } } ---- ld/ldmain.c -+++ ld/ldmain.c +--- binutils/ld/ldmain.c ++++ binutils/ld/ldmain.c @@ -282,2 +282,3 @@ main (int argc, char **argv) link_info.spare_dynamic_tags = 5; + link_info.warn_shared_textrel = TRUE; link_info.sharable_sections = FALSE; ---- ld/testsuite/lib/ld-lib.exp -+++ ld/testsuite/lib/ld-lib.exp +--- binutils/ld/testsuite/lib/ld-lib.exp ++++ binutils/ld/testsuite/lib/ld-lib.exp @@ -181,6 +181,10 @@ proc default_ld_simple_link { ld target # symbol, since the default linker script might use ENTRY. regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output