aboutsummaryrefslogtreecommitdiff
path: root/ld/deffile.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-07-19 22:48:06 +0300
committerMartin Storsjö <martin@martin.st>2022-08-01 23:17:56 +0300
commit37513c1efbe5e8e1863f8ddf078cd395aa663388 (patch)
tree75bb5a657dc86a8e22cc6d08e6da8962089833b8 /ld/deffile.h
parent75337cbc1476b7eb403fe0e73c52bf080b5996c8 (diff)
downloadgdb-37513c1efbe5e8e1863f8ddf078cd395aa663388.zip
gdb-37513c1efbe5e8e1863f8ddf078cd395aa663388.tar.gz
gdb-37513c1efbe5e8e1863f8ddf078cd395aa663388.tar.bz2
ld: Add support for a new option, -exclude-symbols, in COFF object file directives
This maps to the same as ld's --exclude-symbols command line option, but allowing specifying the option via directives embedded in the object files instead of passed manually on the command line.
Diffstat (limited to 'ld/deffile.h')
-rw-r--r--ld/deffile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/deffile.h b/ld/deffile.h
index d68fa8c..306ae3a 100644
--- a/ld/deffile.h
+++ b/ld/deffile.h
@@ -61,6 +61,11 @@ typedef struct def_file_aligncomm {
unsigned int alignment; /* log-2 alignment. */
} def_file_aligncomm;
+typedef struct def_file_exclude_symbol {
+ struct def_file_exclude_symbol *next; /* Chain pointer. */
+ char *symbol_name; /* Name of excluded symbol. */
+} def_file_exclude_symbol;
+
typedef struct def_file {
/* From the NAME or LIBRARY command. */
char *name;
@@ -94,6 +99,7 @@ typedef struct def_file {
/* Only expected from .drectve sections, not .DEF files. */
def_file_aligncomm *aligncomms;
+ def_file_exclude_symbol *exclude_symbols;
} def_file;