summaryrefslogtreecommitdiff
path: root/ld/deffilep.y
Commit message (Collapse)AuthorAgeFilesLines
* PR ld/15957Nick Clifton2013-09-171-6/+13
| | | | | * deffilep.y (def_file_add_directive): Avoid readin past end of buffer.
* * deffilep.y (def_image_name): Adjust type of base-addressKai Tietz2013-01-251-6/+14
| | | | | | | | argument. (%union): Add new type bfd_vma as vma. (VMA): New rule. (opt_base): Use VMA instead of NUMBER rule to evaluate value. (def_file_print): Use bfd's fprintf_vma to output base-address.
* Remove trailing white spaces in ldH.J. Lu2013-01-101-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * deffilep.y: Remove trailing white spaces. * elf-hints-local.h: Likewise. * ldexp.c: Likewise. * ldlang.h: Likewise. * ldmisc.c: Likewise. * ldwrite.c: Likewise. * pe-dll.c: Likewise. * emulparams/criself.sh: Likewise. * emulparams/crislinux.sh: Likewise. * emulparams/elf32_tic6x_le.sh: Likewise. * emulparams/elf32bmipn32-defs.sh: Likewise. * emulparams/elf32mb_linux.sh: Likewise. * emulparams/elf32mep.sh: Likewise. * emulparams/elf32microblaze.sh: Likewise. * emulparams/elf32ppc.sh: Likewise. * emulparams/elf64_s390.sh: Likewise. * emulparams/elf64alpha.sh: Likewise. * emulparams/elf_s390.sh: Likewise. * emulparams/elf_x86_64.sh: Likewise. * emulparams/tic80coff.sh: Likewise. * emultempl/aix.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/cr16elf.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/tic6xdsbt.em: Likewise.
* PR binutils/13710Kai Tietz2012-02-241-1/+6
| | | | | | | | | | * defparse.y (keyword_as_name): Disable LIBRARY keyword. * doc/binutils.texi: Document LIBRARY exception. PR binutils/13710 * deffilep.y (keyword_as_name): Disable LIBRARY keyword.
* * deffilep.y (cmp_import_elem): Sort first by module name.Kai Tietz2012-02-191-1/+3
| | | | | | | | | * pe-dll.c (process_def_file_and_drectve): Free strings from removed export-element. (add_bfd_to_link): Optimize loop on import-elements and lower allocated memory. (pe_implied_import_dll): Pass NULL instead of 0 for pointer argument.
* * deffilep.y (find_export_in_list): Set is_indent forKai Tietz2012-02-131-4/+20
| | | | | first or last element, if identical. (find_import_in_list): Likewise.
* ChangeLog binutilsKai Tietz2012-02-111-21/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-02-11 Kai Tietz <ktietz@redhat.com> PR binutils/13657 * defparse.y (%union): New type id_const. (opt_name2): New rule. (keyword_as_name): New rule. (opt_name): Adjust rule. (opt_import_name): Likewise. (opt_equal_name): Likewise. ChangeLog binutils/testsuite 2012-02-11 Kai Tietz <ktietz@redhat.com> * binutils-all/version.def: New file. * binutils-all/dlltool.exp: Add version-dll test. ChangeLog ld 2012-02-11 Kai Tietz <ktietz@redhat.com> * deffilep.y (%union): New type id_const. (opt_name2): New rule. (keyword_as_name): New rule. (dot_name): Replaced by opt_name2 rule. (opt_name): Adjust rule. (opt_equal_name): Likewise.
* 2011-04-18 Kai Tietz <ktietz@redhat.com>Kai Tietz2011-04-181-4/+30
| | | | * deffilep.y (def_aligncomm): Avoid duplets.
* 2011-04-18 Kai Tietz <ktietz@redhat.com>Kai Tietz2011-04-181-10/+62
| | | | | | | | | | | | | | | | * deffilep.y (def_pool_str): New type. (pool_strs): Local static. (def_pool_alloc): Local function. (def_pool_strdup): Likewise. (def_pool_free): Likewise. (opt_name): Replace xmalloc/xstrdup by def_pool_alloc/def_pool_strdup. (dot_name): Likewise. (anylang_id): Likewise. (def_lex): Likewise. (def_file_parse): Call def_pool_free on exit and cleanup directives elements. (def_file_add_directive): Call def_pool_free.
* 2011-04-13 Kai Tietz <ktietz@redhat.com>Kai Tietz2011-04-131-13/+182
| | | | | | | | | | | | | | | | | PR binutils/12658 * deffile.h (def_file_add_export): Add is_dup argument. (def_file_add_import): Likewise. * deffilep.y (are_names_equal): New helper. (cmp_export_elem): New helper. (find_export_in_list): Add search routine for exports. (def_file_add_export): Check for duplicates. (cmp_import_elem): New helper. (find_import_in_list): Add search routine for imports. (def_file_add_import): Check for duplicates. (def_exports): Handle duplicates. (def_imports): Likewise. * pe-dll.c (process_def_file_and_drectve): Likewise. (pe_implied_import_dll): Likewise.
* 2010-05-25 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2010-05-251-0/+18
| | | | | | * deffilep.y (opt_name): Allow leading dot. (dot_name): Likewise. (anylang_id): Likewise.
* * deffilep.y (def_file_free): Add missing shadow parameter renaming.Dave Korn2009-12-171-4/+4
| | | | | | (def_file_print): Likewise. (def_stash_module): Likewise. (def_file_add_import): Likewise.
* Add -Wshadow to the gcc command line options used when compiling the binutils.Nick Clifton2009-12-111-105/+108
| | | | Fix up all warnings generated by the addition of this switch.
* 2009-10-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2009-10-231-18/+56
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2009-10-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2009-10-231-1/+1
| | | | | * deffilep.y (def_lex): Allow '<' and '>' characters in identifier strings.
* update copyright datesAlan Modra2009-09-021-2/+2
|
* ld/ChangeLogDave Korn2009-05-271-7/+28
| | | | | | | | | | | | | | | | | | | * deffilep.y (%union): Add new string-type semantic value 'digits'. (%token): Remove NUMBER as token, add DIGITS. (%type): Add NUMBER as type. Add new id types anylang_id, opt_id. (ALIGNCOMM): Parse an anylang_id instead of a plain ID. (anylang_id): New production. (opt_digits): Likewise. (opt_id): Likewise. (NUMBER): Likewise. (def_lex): Return strings of digits in raw string form as DIGITS token, instead of converting to numeric integer type. ld/testsuite/ChangeLog * ld-pe/non-c-lang-syms.c: New dump test source file. * ld-pe/non-c-lang-syms.d: New dump test pattern file. * ld-pe/pe.exp: Run new "foreign symbol" test.
* ==> bfd/ChangeLog <==Dave Korn2009-05-191-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> * cofflink.c (process_embedded_commands): Ignore "-aligncomm". ==> gas/ChangeLog <== 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> * NEWS: Mention new feature. * config/obj-coff.c (obj_coff_common_parse): New function. (obj_coff_comm): Likewise. (coff_pseudo_table): Override default ".comm" definition on PE. * doc/as.texinfo: Document new feature. ==> gas/testsuite/ChangeLog <== 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> * gas/pe/: New directory for PE format-specific tests. * gas/pe/aligncomm-a.d: New test pattern file. * gas/pe/aligncomm-a.s: New test source file. * gas/pe/aligncomm-b.d: New test pattern file. * gas/pe/aligncomm-b.s: New test source file. * gas/pe/aligncomm-c.d: New test pattern file. * gas/pe/aligncomm-c.s: New test source file. * gas/pe/aligncomm-d.d: New test pattern file. * gas/pe/aligncomm-d.s: New test source file. * gas/pe/pe.exp: New test control script. * lib/gas-defs.exp (is_pecoff_format): New function. ==> ld/ChangeLog <== 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> * NEWS: Mention new feature. * deffile.h (def_file_aligncomm): Add new struct definition. (def_file): Add new def_file_aligncomm member. * deffilep.y (%token): Add new ALIGNCOMM token. (command): Add production rule for ALIGNCOMM. (def_file_free): Free any chained def_file_aligncomm structs. (diropts[]): Add entry for '-aligncomm' .drectve command. (def_aligncomm): New grammar function. * ld.texinfo: Document new feature. * pe-dll.c (process_def_file): Rename from this ... (process_def_file_and_drectve): ... to this, updating all callers, and process any aligncomms chained to the def file after scanning all .drectve sections. (generate_edata): Updated to match. (pe_dll_build_sections): Likewise. ==> ld/testsuite/ChangeLog <== 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> * ld-pe/aligncomm-1.c: New test source file. * ld-pe/aligncomm-2.c: Likewise. * ld-pe/aligncomm-3.c: Likewise. * ld-pe/aligncomm-4.c: Likewise. * ld-pe/aligncomm.d: New test pattern file. * ld-pe/direct.exp: Deleted, and content moved into ... * ld-pe/pe-run.exp: ... New common file for all PE run tests. * ld-pe/vers-script.exp: Deleted, and content merged into ... * ld-pe/pe-compile.exp: ... New common file for PE tests needing a compiler, adding aligned common tests. * ld-pe/pe.exp: Update header comment.
* * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.Alan Modra2009-04-291-4/+4
|
* Update sources to GPLv3Nick Clifton2007-07-061-2/+3
|
* bfd/Alan Modra2007-04-261-3/+2
| | | | | | | | | | | | | | | | | | | | Many files: Include sysdep.h before bfd.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * bucumm.h: Split off host dependencies to.. * sysdep.h: ..here. Many files: Include sysdep.h. Remove duplicate headers and reorder. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ Many files: Include sysdep.h first. Remove duplicate headers. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * ns32k-dis.c: Include sysdep.h first.
* * deffilep.y (def_image_name): If LIBRARY or NAME statementDanny Smith2006-04-011-16/+24
| | | | | | specifies an empty string, retain the name specified on command line. * ld.texinfo: Document above
* * deffilep.y (def_image_name): If the image name does not haveDanny Smith2006-02-011-1/+10
| | | | | a suffix, append the default. * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
* Update FSF addressesNick Clifton2005-05-121-1/+1
|
* update copyright datesAlan Modra2005-03-031-1/+1
|
* * defilep.y (def_name, def_library): Combine into...Danny Smith2005-01-161-17/+10
| | | | | (def_image_name): New function. Strip name to basename, with warning.
* * deffilep.y: Remove commas from %token lines.Andreas Schwab2003-10-191-3/+3
|
* Convert to C90Alan Modra2003-06-281-124/+88
|
* Cope with NUL seperated directives. Fix reporting of unparseable directives.Nick Clifton2003-06-271-9/+24
|
* * defilep.y (opt_base): If no number given, set to defaultDanny Smith2003-03-181-1/+1
| | | | (-1), not 0.
* * deffilep.y (def_import): Use default extension of "dll"Danny Smith2003-03-131-11/+17
| | | | | | | | | if no extension provided in parsed IMPORT definition. * deffilep.y (def_lex): Revert 2003-03-12 change. (dot_name): New id type and rule. (expline): Use instead of ID. (opt_equal_name): Likewise.
* * deffilep.y (def_lex): Accept '.' as valid non-lead char.Danny Smith2003-03-121-1/+1
|
* Add code to prevent importing a dll multiple times.Nick Clifton2003-01-281-42/+76
|
* Adds support for fastcall symbols as used on Microsoft Windows platformsNick Clifton2002-11-061-9/+30
| | | | (i386)
* Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu2001-09-191-7/+7
|
* * deffilep.y (def_stash_module): Constify "name" param.Alan Modra2001-09-181-4/+5
| | | | | | | | | | | | | | | | | | | | * pe-dll.c: Replace CONST with const throughout. (quick_symbol): Constify "n1", "n2", "n3" params. (make_singleton_name_thunk): Constify "import" param. Make "buffer_len" a size_t. (make_import_fixup_entry): Constify "name", "fixup_name", "dll_symname" params. (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread. (pe_get32): Likewise. (pe_implied_import_dll): Likewise. * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb". (sort_by_section_name): Likewise. * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included. (make_import_fixup): Cast printf arg, rel->address to long rather than int. (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
* * deffilep.y: Add missing prototypes.Andreas Jaeger2001-08-211-3/+5
| | | | * pe-dll.c: Likewise.
* Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton2001-03-131-1/+1
|
* Added year 2000 copyright noticeNick Clifton2000-01-041-1/+1
|
* Apply patch from Mumit Khan to fix bugs generating dll names.Nick Clifton2000-01-041-1/+7
|
* * deffilep.y (tokens): Add upper and lower case versions of DATA,DJ Delorie1999-09-281-15/+30
| | | | | | | | | | CONSTANT, NONAME and PRIVATE tokens. (command): Use DATAU. (expline): Allow for drectve syntax as well. (exp_opt_list): Likewise. (exp_opt): Likewise. * pe-dll.c (make_one): Only generate the idata entries for data symbols.
* * pe-dll.h: New file.Ian Lance Taylor1999-09-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed to avoid warnings. (edata_sz, reloc_sz): Change from int to size_t. (pe_details_type): Change type of imagebase_reloc from int to unsigned int. (pe_detail_list): Fully initialize last entry. (pe_dll_id_target): Change parameter to const. (pe_dll_generate_def_file): Likewise. (pe_dll_generate_implib): Likewise. (pe_implied_import_dll): Likewise. Change dll_name to const. * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in pe-dll.h. (init): Fully initialize __dll__ entry. (gld_${EMULATION_NAME}_after_open): Remove unused variables sequence, elt, and i. * deffile.h: Add preprocessor guard. * deffilep.y (def_debug): Remove. * Makefile.am: Rebuild dependencies. (HFILES): Add pe-dll.h.
* Initial revisionRichard Henderson1999-05-031-0/+1004