diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-09-27 18:57:22 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2011-09-27 18:57:22 +0000 |
commit | c348982892627774491a14481a27f6e6ec90fc20 (patch) | |
tree | e148f45a5d91906aa0c8be4eabaf6789a71c470e /gas/config | |
parent | 2b914c2b41098b857b931b753aabfdef525f10da (diff) | |
download | gdb-c348982892627774491a14481a27f6e6ec90fc20.zip gdb-c348982892627774491a14481a27f6e6ec90fc20.tar.gz gdb-c348982892627774491a14481a27f6e6ec90fc20.tar.bz2 |
2011-09-27 Kai Tietz <ktietz@redhat.com>
* config/obj-coff.c (obj_coff_section): Add 'e' as specifier
for marking section SEC_EXCLUDE.
2011-09-27 Kai Tietz <ktietz@redhat.com>
* gas/pe/pe.exp: Add new testcase.
* gas/pe/section-exclude.d: New file.
* gas/pe/section-exclude.s: New file.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-coff.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index d481026..a15d3a2 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1531,6 +1531,7 @@ coff_frob_file_after_relocs (void) 'o' for over 'w' for data 'd' (apparently m88k for data) + 'e' for exclude 'x' for text 'r' for read-only data 's' for shared data (PE) @@ -1598,6 +1599,11 @@ obj_coff_section (int ignore ATTRIBUTE_UNUSED) } switch (attr) { + case 'e': + /* Exclude section from linking. */ + flags |= SEC_EXCLUDE; + break; + case 'b': /* Uninitialised data section. */ flags |= SEC_ALLOC; |