PR ld/13683
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-02-22 Alan Modra <amodra@gmail.com>
2
3 PR ld/13683
4 * ldlang.c (lang_process): Rerun lang_do_assignments before
5 starting garbage collection.
6 * ldexp.c (fold_name): Generate a reloc for defined symbols
7 found without an associated output section during the mark phase.
8 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
9
10 2012-02-19 Kai Tietz <ktietz@redhat.com>
11
12 * deffilep.y (cmp_import_elem): Sort first by module name.
13 * pe-dll.c (process_def_file_and_drectve): Free strings
14 from removed export-element.
15 (add_bfd_to_link): Optimize loop on import-elements and lower
16 allocated memory.
17 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
18 argument.
19
20 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
21
22 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
23 temporary variable node used for NULL argument.
24
25 2012-02-18 Alan Modra <amodra@gmail.com>
26
27 PR ld/13343
28 * ld.h (parsing_defsym): Delete.
29 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
30 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
31 exp_get_abs_int): Add tree arg for %S in error messages. Don't
32 fudge lineno.
33 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
34 type.filename from sub-tree.
35 (exp_trinop): Likewise, and use "cond" rather than "lhs".
36 * ldexp.h (node_type): Add filename field to struct.
37 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
38 * ldfile.h (ldfile_input_filename): Delete.
39 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
40 %S in error messages.
41 * ldemul.c (syslib_default, hll_default): Likewise.
42 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
43 lang_get_regions, lang_new_phdr): Likewise.
44 (lang_size_sections_1): Pass addr_tree for %S.
45 * ldlex.h (lex_redirect): Update prototype.
46 (ldlex_filename): Declare.
47 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
48 (lex_redirect): Add fake_filename and count params. Push
49 fake_filename to file_name_stack and init lineno from count.
50 (ldlex_filename): New function.
51 (lex_warn_invalid): Use above.
52 * ldmain.c (main): Update lex_redirect call.
53 * ldmisc.c (vfinfo <%S>): Take file name and line number from
54 etree_type arg, or use current if arg is NULL.
55 * lexsup.c (parsing_defsym): Delete.
56 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
57
58 2012-02-13 Kai Tietz <ktietz@redhat.com>
59
60 * deffilep.y (find_export_in_list): Set is_indent for
61 first or last element, if identical.
62 (find_import_in_list): Likewise.
63
64 2012-02-11 Kai Tietz <ktietz@redhat.com>
65
66 * deffilep.y (%union): New type id_const.
67 (opt_name2): New rule.
68 (keyword_as_name): New rule.
69 (dot_name): Replaced by opt_name2 rule.
70 (opt_name): Adjust rule.
71 (opt_equal_name): Likewise.
72
73 2012-02-11 Pascal Obry <pascal@obry.net>
74
75 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
76 table.
77 (process_def_file_and_drectve): Maintain sorting of exports table
78 after stripping leading @ signs.
79
80 2012-02-09 Alan Modra <amodra@gmail.com>
81
82 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
83
84 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
85
86 PR ld/13616
87 * emulparams/elf32_x86_64.sh: Remove NOP.
88 * emulparams/elf_i386.sh: Likewise.
89 * emulparams/elf_i386_be.sh: Likewise.
90 * emulparams/elf_i386_ldso.sh: Likewise.
91 * emulparams/elf_i386_vxworks.sh: Likewise.
92 * emulparams/elf_k1om.sh: Likewise.
93 * emulparams/elf_l1om.sh: Likewise.
94 * emulparams/elf_x86_64.sh: Likewise.
95
96 * ldlang.c (zero_fill): Initialized to 0.
97
98 * ldwrite.c (build_link_order): Set data size to linker odrder
99 size when they are the same.
100
101 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
102
103 2012-01-17 Alan Modra <amodra@gmail.com>
104
105 * ldver.c (ldversion): Update copyright message year.
106
107 2012-01-15 Alan Modra <amodra@gmail.com>
108
109 PR ld/12758
110 * ldlang.c (lang_process): Don't reopen all files, just those
111 newly added by plugin.
112
113 2012-01-11 Alan Modra <amodra@gmail.com>
114
115 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
116 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
117 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
118 --{no-,}plt-align.
119 (plt_thread_safe, plt_stub_align): New vars.
120 (gld${EMULATION_NAME}_after_allocation): Pass them to
121 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
122 * ld.texinfo: Document new command line options, and an old
123 undocumented option.
124
125 2012-01-09 Roland McGrath <mcgrathr@google.com>
126
127 * configure.in: Use AM_ZLIB.
128 * configure: Regenerated.
129
130 For older changes see ChangeLog-2011
131 \f
132 Local Variables:
133 mode: change-log
134 left-margin: 8
135 fill-column: 74
136 version-control: never
137 End:
This page took 0.033332 seconds and 5 git commands to generate.