From: Nick Clifton Date: Tue, 8 Apr 2014 16:45:33 +0000 (+0100) Subject: This patch removes the inclusion of the default manifest in final links for X-Git-Tag: gdb-7.8-release~637 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1799adabb2391ac088828501135cd0dd11b2da;p=thirdparty%2Fbinutils-gdb.git This patch removes the inclusion of the default manifest in final links for the Cygwin and MinGW targets. The manifest is now going to be handled by gcc. * scripttempl/pe.sc (R_RSRC): Remove default manifest. * scripttempl/pep.sc (R_RSRC): Remove default manifest. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index cdba250b17e..54aa6cdd04d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2014-04-08 Nick Clifton + + * scripttempl/pe.sc (R_RSRC): Remove default manifest. + * scripttempl/pep.sc (R_RSRC): Remove default manifest. + 2014-04-08 Jon TURNEY * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id): diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index e9e5f646b6d..579c0c8f596 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -44,23 +44,9 @@ if test "${RELOCATING}"; then *(.tls$) *(SORT(.tls$*)) *(.tls$ZZZ)' - if test -z "$DEFAULT_MANIFEST"; then - R_RSRC=' - *(.rsrc) - *(.rsrc$*)' - else - R_RSRC=" - /* The default manifest contains information necessary for - binaries to run under Windows 8 (or later). It is included as - the last resource file so that if the application has provided - its own manifest then that one will take precedence. - - Note - the .rsrc section merging code relies upon the fact - that the input .rsrc sections are *not* sorted. */ - *(EXCLUDE_FILE (*$DEFAULT_MANIFEST) .rsrc) - *(.rsrc*) - KEEP ($DEFAULT_MANIFEST(.rsrc))" - fi + R_RSRC=' + *(.rsrc) + *(.rsrc$*)' else R_TEXT= R_DATA= diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index 5f97d31b301..a71dd21b32c 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -44,23 +44,9 @@ if test "${RELOCATING}"; then *(.tls$) *(SORT(.tls$*)) *(.tls$ZZZ)' - if test -z "$DEFAULT_MANIFEST"; then - R_RSRC=' - *(.rsrc) - *(.rsrc$*)' - else - R_RSRC=" - /* The default manifest contains information necessary for - binaries to run under Windows 8 (or later). It is included as - the last resource file so that if the application has provided - its own manifest then that one will take precedence. - - Note - the .rsrc section merging code relies upon the fact - that the input .rsrc sections are *not* sorted. */ - *(EXCLUDE_FILE (*$DEFAULT_MANIFEST) .rsrc) - *(.rsrc*) - KEEP ($DEFAULT_MANIFEST(.rsrc))" - fi + R_RSRC=' + *(.rsrc) + *(.rsrc$*)' else R_TEXT= R_DATA=