X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=ld%2Fdeffile.h;h=dd7d9935cae768e927930897df648dab544bbf1d;hb=43327b208ec6452c1a6accd40be965cdfa5c86a3;hp=26e04314cc220035a126ef96200008f4340f3d3b;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/deffile.h b/ld/deffile.h index 26e04314cc..dd7d9935ca 100644 --- a/ld/deffile.h +++ b/ld/deffile.h @@ -1,5 +1,5 @@ /* deffile.h - header for .DEF file parser - Copyright (C) 1998-2016 Free Software Foundation, Inc. + Copyright (C) 1998-2020 Free Software Foundation, Inc. Written by DJ Delorie dj@cygnus.com This file is part of the GNU Binutils. @@ -34,7 +34,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. */ + char *its_name; /* optional export table name referred to. */ int ordinal; /* -1 if not specified */ int hint; char flag_private, flag_constant, flag_noname, flag_data, flag_forward; @@ -50,7 +50,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. */ + char *its_name; /* optional import table name referred to. */ int ordinal; /* may be -1 */ int data; /* = 1 if data */ } def_file_import; @@ -108,6 +108,16 @@ extern def_file_export *def_file_add_export (def_file *, const char *, extern def_file_import *def_file_add_import (def_file *, const char *, const char *, int, const char *, const char *, int *); +extern int def_file_add_import_from (def_file *fdef, + int num_imports, + const char *name, + const char *module, + int ordinal, + const char *internal_name, + const char *its_name); +extern def_file_import *def_file_add_import_at (def_file *, 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