diff options
author | Nick Clifton <nickc@redhat.com> | 2014-02-27 14:09:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-02-27 14:13:43 +0000 |
commit | 5063daf7357ccdc2c9e899ca0421c2e8e580c88d (patch) | |
tree | ad294aff0d6abde7e8064a16f4503d01dfe90867 /ld/testsuite | |
parent | db434ba03edb5491d48415069d6116b5037e6fa1 (diff) | |
download | gdb-5063daf7357ccdc2c9e899ca0421c2e8e580c88d.zip gdb-5063daf7357ccdc2c9e899ca0421c2e8e580c88d.tar.gz gdb-5063daf7357ccdc2c9e899ca0421c2e8e580c88d.tar.bz2 |
This patch adds a default manifest in to the final links performed by the Cygwin and MinGW targets.
The manifest is necessary in order for the linked binaries to be executed in a Windows 8 environment.
The manifest is added using a linker script so that this feature will be compiler-neutral. The resource
merging code in the linker means that if an application provides its own manifest then the default
manifest will be ignored.
* configure.in (all_emul_extra_binaries): New variable. Populated
by invoking configure.tgt.
(EMUL_EXTRA_BINARIES): New substitution.
* configure: Regenerate.
* configure.tgt (target_extra_binaries): New variable. Set to
default-manifest.o for Cygwin and MinGW targets.
* Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
by the configure script.
(ALL_EMUL_EXTRA_BINARIES): New variable.
(default-manifest.o): New rule to build the default manifest.
(ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
(install-data-local): Add EMUL_EXTRA_BINARIES.
* Makefile.in: Regenerate.
* ld.texinfo: Document default manifest support.
* emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
* emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
* emultempl/default-manifest.rc: New file.
* scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
* scripttempl/pep.sc (R_RSRC): Likewise.
* ld-pe/longsecn-1.d: Allow for extra sections.
* ld-pe/longsecn-2.d: Likewise.
* ld-pe/longsecn.d: Likewise.
* ld-pe/secrel.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/longsecn-1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/longsecn-2.d | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/longsecn.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-pe/secrel.d | 1 |
5 files changed, 11 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 5e53f4a..1af8109 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-02-27 Nick Clifton <nickc@redhat.com> + + * ld-pe/longsecn-1.d: Allow for extra sections. + * ld-pe/longsecn-2.d: Likewise. + * ld-pe/longsecn.d: Likewise. + * ld-pe/secrel.d: Likewise. + 2014-02-21 Alan Modra <amodra@gmail.com> * ld-bootstrap/bootstrap.exp: Add ppc476 workaround test. diff --git a/ld/testsuite/ld-pe/longsecn-1.d b/ld/testsuite/ld-pe/longsecn-1.d index 95b3337..81a44a7 100644 --- a/ld/testsuite/ld-pe/longsecn-1.d +++ b/ld/testsuite/ld-pe/longsecn-1.d @@ -19,4 +19,4 @@ Idx Name Size VMA +LMA +File off Algn CONTENTS, ALLOC, LOAD, DATA 5 \.idata [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ 2\*\*[0-9] CONTENTS, ALLOC, LOAD, DATA - +#... diff --git a/ld/testsuite/ld-pe/longsecn-2.d b/ld/testsuite/ld-pe/longsecn-2.d index 8170006..64d1627 100644 --- a/ld/testsuite/ld-pe/longsecn-2.d +++ b/ld/testsuite/ld-pe/longsecn-2.d @@ -19,3 +19,4 @@ Idx Name Size VMA +LMA +File off Algn CONTENTS, ALLOC, LOAD, DATA 5 \.idata [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ 2\*\*[0-9] CONTENTS, ALLOC, LOAD, DATA +#... diff --git a/ld/testsuite/ld-pe/longsecn.d b/ld/testsuite/ld-pe/longsecn.d index 2dcde35..e77f6ee 100644 --- a/ld/testsuite/ld-pe/longsecn.d +++ b/ld/testsuite/ld-pe/longsecn.d @@ -19,4 +19,4 @@ Idx Name Size VMA +LMA +File off Algn CONTENTS, ALLOC, LOAD, DATA 5 \.idata [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ [0-9a-fA-F]+ 2\*\*[0-9] CONTENTS, ALLOC, LOAD, DATA - +#... diff --git a/ld/testsuite/ld-pe/secrel.d b/ld/testsuite/ld-pe/secrel.d index b924f54..3f1bb4a 100644 --- a/ld/testsuite/ld-pe/secrel.d +++ b/ld/testsuite/ld-pe/secrel.d @@ -25,3 +25,4 @@ Contents of section \.rdata: Contents of section \.idata:
.*4000 00000000 00000000 00000000 00000000 ................
.*4010 00000000 ....
+#...
|