* dlltool.c (export_type): Add data field.
(def_exports): Add data parameter. Change all callers. (dump_def_info): Print data field. (gen_def_file): Likewise. (make_one_lib_file): Handle data field by not emitting simple label and not emitting anything in SEC_TEXT. (dtab): Print data field. (process_duplicates): Merge data field. * dlltool.h (def_exports): Update declaration. * defparse.y (expline): Accept opt_DATA. Pass it to def_exports. (opt_DATA): New non-terminal.
This commit is contained in:
parent
7799bb2c27
commit
8eb693acc4
|
@ -1,3 +1,17 @@
|
||||||
|
Thu Jun 12 12:27:51 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* dlltool.c (export_type): Add data field.
|
||||||
|
(def_exports): Add data parameter. Change all callers.
|
||||||
|
(dump_def_info): Print data field.
|
||||||
|
(gen_def_file): Likewise.
|
||||||
|
(make_one_lib_file): Handle data field by not emitting simple
|
||||||
|
label and not emitting anything in SEC_TEXT.
|
||||||
|
(dtab): Print data field.
|
||||||
|
(process_duplicates): Merge data field.
|
||||||
|
* dlltool.h (def_exports): Update declaration.
|
||||||
|
* defparse.y (expline): Accept opt_DATA. Pass it to def_exports.
|
||||||
|
(opt_DATA): New non-terminal.
|
||||||
|
|
||||||
Wed Jun 11 17:15:47 1997 Ian Lance Taylor <ian@cygnus.com>
|
Wed Jun 11 17:15:47 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* dlltool.h: New file.
|
* dlltool.h: New file.
|
||||||
|
|
|
@ -33,7 +33,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
%token READ WRITE EXECUTE SHARED NONAME
|
%token READ WRITE EXECUTE SHARED NONAME
|
||||||
%token <id> ID
|
%token <id> ID
|
||||||
%token <number> NUMBER
|
%token <number> NUMBER
|
||||||
%type <number> opt_base opt_ordinal opt_NONAME opt_CONSTANT attr attr_list opt_number
|
%type <number> opt_base opt_ordinal opt_NONAME opt_CONSTANT opt_DATA
|
||||||
|
%type <number> attr attr_list opt_number
|
||||||
%type <id> opt_name opt_equal_name
|
%type <id> opt_name opt_equal_name
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -64,8 +65,8 @@ explist:
|
||||||
;
|
;
|
||||||
|
|
||||||
expline:
|
expline:
|
||||||
ID opt_equal_name opt_ordinal opt_NONAME opt_CONSTANT
|
ID opt_equal_name opt_ordinal opt_NONAME opt_CONSTANT opt_DATA
|
||||||
{ def_exports ($1, $2, $3, $4, $5);}
|
{ def_exports ($1, $2, $3, $4, $5, $6);}
|
||||||
;
|
;
|
||||||
implist:
|
implist:
|
||||||
implist impline
|
implist impline
|
||||||
|
@ -109,11 +110,17 @@ opt_CONSTANT:
|
||||||
CONSTANT {$$=1;}
|
CONSTANT {$$=1;}
|
||||||
| {$$=0;}
|
| {$$=0;}
|
||||||
;
|
;
|
||||||
|
|
||||||
opt_NONAME:
|
opt_NONAME:
|
||||||
NONAME {$$=1;}
|
NONAME {$$=1;}
|
||||||
| {$$=0;}
|
| {$$=0;}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
opt_DATA:
|
||||||
|
DATA { $$ = 1; }
|
||||||
|
| { $$ = 0; }
|
||||||
|
;
|
||||||
|
|
||||||
opt_name: ID { $$ =$1; }
|
opt_name: ID { $$ =$1; }
|
||||||
| { $$=""; }
|
| { $$=""; }
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue