aboutsummaryrefslogtreecommitdiff
path: root/ld/deffilep.y
AgeCommit message (Collapse)AuthorFilesLines
2013-01-25 * deffilep.y (def_image_name): Adjust type of base-addressKai Tietz1-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.
2013-01-10Remove trailing white spaces in ldH.J. Lu1-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.
2012-02-24 PR binutils/13710Kai Tietz1-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.
2012-02-19 * deffilep.y (cmp_import_elem): Sort first by module name.Kai Tietz1-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.
2012-02-13 * deffilep.y (find_export_in_list): Set is_indent forKai Tietz1-4/+20
first or last element, if identical. (find_import_in_list): Likewise.
2012-02-11ChangeLog binutilsKai Tietz1-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-182011-04-18 Kai Tietz <ktietz@redhat.com>Kai Tietz1-4/+30
* deffilep.y (def_aligncomm): Avoid duplets.
2011-04-182011-04-18 Kai Tietz <ktietz@redhat.com>Kai Tietz1-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-132011-04-13 Kai Tietz <ktietz@redhat.com>Kai Tietz1-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-252010-05-25 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-0/+18
* deffilep.y (opt_name): Allow leading dot. (dot_name): Likewise. (anylang_id): Likewise.
2009-12-17 * deffilep.y (def_file_free): Add missing shadow parameter renaming.Dave Korn1-4/+4
(def_file_print): Likewise. (def_stash_module): Likewise. (def_file_add_import): Likewise.
2009-12-11Add -Wshadow to the gcc command line options used when compiling the binutils.Nick Clifton1-105/+108
Fix up all warnings generated by the addition of this switch.
2009-10-232009-10-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-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-232009-10-23 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-1/+1
* deffilep.y (def_lex): Allow '<' and '>' characters in identifier strings.
2009-09-02update copyright datesAlan Modra1-2/+2
2009-05-27ld/ChangeLogDave Korn1-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.
2009-05-19==> bfd/ChangeLog <==Dave Korn1-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.
2009-04-29 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.Alan Modra1-4/+4
2007-07-06Update sources to GPLv3Nick Clifton1-2/+3
2007-04-26bfd/Alan Modra1-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.
2006-04-01 * deffilep.y (def_image_name): If LIBRARY or NAME statementDanny Smith1-16/+24
specifies an empty string, retain the name specified on command line. * ld.texinfo: Document above
2006-02-01 * deffilep.y (def_image_name): If the image name does not haveDanny Smith1-1/+10
a suffix, append the default. * ld.texinfo: Document NAME, LIBRARY usage in PE-COFF .def files.
2005-05-12Update FSF addressesNick Clifton1-1/+1
2005-03-03update copyright datesAlan Modra1-1/+1
2005-01-16 * defilep.y (def_name, def_library): Combine into...Danny Smith1-17/+10
(def_image_name): New function. Strip name to basename, with warning.
2003-10-19 * deffilep.y: Remove commas from %token lines.Andreas Schwab1-3/+3
2003-06-28Convert to C90Alan Modra1-124/+88
2003-06-27Cope with NUL seperated directives. Fix reporting of unparseable directives.Nick Clifton1-9/+24
2003-03-18 * defilep.y (opt_base): If no number given, set to defaultDanny Smith1-1/+1
(-1), not 0.
2003-03-13 * deffilep.y (def_import): Use default extension of "dll"Danny Smith1-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.
2003-03-12 * deffilep.y (def_lex): Accept '.' as valid non-lead char.Danny Smith1-1/+1
2003-01-28Add code to prevent importing a dll multiple times.Nick Clifton1-42/+76
2002-11-06Adds support for fastcall symbols as used on Microsoft Windows platformsNick Clifton1-9/+30
(i386)
2001-09-19Locale changes from Bruno Haible <haible@clisp.cons.org>.H.J. Lu1-7/+7
2001-09-18 * deffilep.y (def_stash_module): Constify "name" param.Alan Modra1-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.
2001-08-21 * deffilep.y: Add missing prototypes.Andreas Jaeger1-3/+5
* pe-dll.c: Likewise.
2001-03-13Fixtypos in ChangeLogs, fix copyright dates in filesNick Clifton1-1/+1
2000-01-04Added year 2000 copyright noticeNick Clifton1-1/+1
2000-01-04Apply patch from Mumit Khan to fix bugs generating dll names.Nick Clifton1-1/+7
1999-09-28* deffilep.y (tokens): Add upper and lower case versions of DATA,DJ Delorie1-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.
1999-09-12 * pe-dll.h: New file.Ian Lance Taylor1-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.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+1004