/* Only expected from .drectve sections, not .DEF files. */
def_file_aligncomm *aligncomms;
+
+ /* From EXCLUDE_SYMBOLS or embedded directives. */
def_file_exclude_symbol *exclude_symbols;
} def_file;
| DATAL { $$ = "data"; }
| DESCRIPTION { $$ = "DESCRIPTION"; }
| DIRECTIVE { $$ = "DIRECTIVE"; }
+ | EXCLUDE_SYMBOLS { $$ = "EXCLUDE_SYMBOLS"; }
| EXECUTE { $$ = "EXECUTE"; }
| EXPORTS { $$ = "EXPORTS"; }
| HEAPSIZE { $$ = "HEAPSIZE"; }
symbol_list:
anylang_id { def_exclude_symbols ($1); }
+ | symbol_list anylang_id { def_exclude_symbols ($2); }
| symbol_list ',' anylang_id { def_exclude_symbols ($3); }
;
{ "data", DATAL },
{ "DESCRIPTION", DESCRIPTION },
{ "DIRECTIVE", DIRECTIVE },
+ { "EXCLUDE_SYMBOLS", EXCLUDE_SYMBOLS },
{ "EXECUTE", EXECUTE },
{ "EXPORTS", EXPORTS },
{ "HEAPSIZE", HEAPSIZE },
--- /dev/null
+#source: exclude-symbols-def-i386.s
+#target: i?86-*-cygwin* i?86-*-pe i?86-*-mingw*
+#ld: -shared ${srcdir}/${subdir}/exclude-symbols-def.def
+#objdump: -p
+
+#...
+.*\[[ ]*0\] sym1
+.*\[[ ]*1\] sym3
+.*\[[ ]*2\] sym5
+#pass
--- /dev/null
+#source: exclude-symbols-def-x86_64.s
+#target: x86_64-*-cygwin* x86_64-*-pe x86_64-*-mingw*
+#ld: -shared ${srcdir}/${subdir}/exclude-symbols-def.def
+#objdump: -p
+
+#...
+.*\[[ ]*0\] sym1
+.*\[[ ]*1\] sym3
+.*\[[ ]*2\] sym5
+#pass
run_dump_test "exclude-symbols-embedded-i386"
run_dump_test "exclude-symbols-embedded-x86_64"
+run_dump_test "exclude-symbols-def-i386"
+run_dump_test "exclude-symbols-def-x86_64"