aboutsummaryrefslogtreecommitdiff
path: root/ld/deffile.h
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-10-23 11:40:17 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-10-23 11:40:17 +0000
commit7fcab871034a5e755786062826456863ab65683b (patch)
tree6f9c5ce538e5ad88f6985fe18ca50075ee5ac59a /ld/deffile.h
parent424908eba6008ba81a554c062a185f02c15bdc79 (diff)
downloadgdb-7fcab871034a5e755786062826456863ab65683b.zip
gdb-7fcab871034a5e755786062826456863ab65683b.tar.gz
gdb-7fcab871034a5e755786062826456863ab65683b.tar.bz2
2009-10-23 Kai Tietz <kai.tietz@onevision.com>
* deffile.h (def_file_export): New member its_name. (def_file_import): Likewise. (def_file_add_export): Add argument its_name. (def_file_add_import): Likewise. * deffilep.y (def_exports): Add argument its_name. (def_import): Likewise. (EQUAL): Add new token for '=='. (opt_equalequal_name): New rule. (expline): Add rule opt_equalequal_name. (impline): Likewise. (def_file_free): Free for exports and imports the optional member its_name. (def_lex): Add scan of '==' as EQUAL. * pe-dll.c (pe_export_sort): Sort for its_name too. (process_def_file_and_drectve): Adjust calls to def_file_add_export. (generate_edata): Take its_name in account. (make_one): Likewise. (pe_process_import_defs): Likewise. (pe_dll_generate_def_file): Add print of new '==' option. * ld.texinfo: Extend documentation about .def file syntax. * NEWS: Mention new feature.
Diffstat (limited to 'ld/deffile.h')
-rw-r--r--ld/deffile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/deffile.h b/ld/deffile.h
index d3354b1..8ddd070 100644
--- a/ld/deffile.h
+++ b/ld/deffile.h
@@ -35,6 +35,7 @@ typedef struct def_file_section {
typedef struct def_file_export {
char *name; /* always set */
char *internal_name; /* always set, may == name */
+ char *its_name; /* optional export table name refered to. */
int ordinal; /* -1 if not specified */
int hint;
char flag_private, flag_constant, flag_noname, flag_data, flag_forward;
@@ -50,6 +51,7 @@ typedef struct def_file_import {
char *internal_name; /* always set */
def_file_module *module; /* always set */
char *name; /* may be NULL; either this or ordinal will be set */
+ char *its_name; /* optional import table name refered to. */
int ordinal; /* may be -1 */
int data; /* = 1 if data */
} def_file_import;
@@ -102,9 +104,11 @@ extern def_file *def_file_empty (void);
extern def_file *def_file_parse (const char *, def_file *);
extern void def_file_free (def_file *);
extern def_file_export *def_file_add_export (def_file *, const char *,
- const char *, int);
+ const char *, int,
+ const char *);
extern def_file_import *def_file_add_import (def_file *, const char *,
- const char *, int, const char *);
+ const char *, int, const char *,
+ const char *);
extern void def_file_add_directive (def_file *, const char *, int);
extern def_file_module *def_get_module (def_file *, const char *);
#ifdef DEF_FILE_PRINT