summaryrefslogtreecommitdiffstats
path: root/gold/testsuite/version_script.map
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-18 23:35:09 +0000
committerIan Lance Taylor <iant@google.com>2008-01-18 23:35:09 +0000
commit106002249a4341c91adc0c25f63c84cd1b544737 (patch)
treec502e6cfa078ce18a78e5287b9eca3434636b15b /gold/testsuite/version_script.map
parent14144f39e4581f4f39bcd44c2f8336fee28b0220 (diff)
downloadppe42-binutils-106002249a4341c91adc0c25f63c84cd1b544737.tar.gz
ppe42-binutils-106002249a4341c91adc0c25f63c84cd1b544737.zip
From Craig Silverstein: Handle quoted strings differently in version
scripts, and handle extern "C++" in the middle of a block.
Diffstat (limited to 'gold/testsuite/version_script.map')
-rw-r--r--gold/testsuite/version_script.map7
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/testsuite/version_script.map b/gold/testsuite/version_script.map
index 2a175235b7..c7662af8d3 100644
--- a/gold/testsuite/version_script.map
+++ b/gold/testsuite/version_script.map
@@ -3,11 +3,16 @@ V1 {
extern "C++"
{
"bar()";
- myns::*;
+ "baz(int*)";
};
foo;
blaza*;
bar*;
+ # Make sure we parse "extern" when it's not first thing in the section.
+ extern "C++"
+ {
+ myns::*;
+ };
# Would be a keyword in a linker script.
SECTIONS;
sizeof_headers;
OpenPOWER on IntegriCloud