* po/vi.po: Updated Vietnamese translation.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-03-30 Nick Clifton <nickc@redhat.com>
2
3 * po/vi.po: Updated Vietnamese translation.
4
5 2012-03-27 Roland McGrath <mcgrathr@google.com>
6
7 * configure.in: Set want64 on a 64-bit host regardless of
8 --enable-targets=all.
9 * configure: Regenerated.
10
11 2012-03-26 Tristan Gingold <gingold@adacore.com>
12
13 * lexsup.c (parse_args): Add a missing '\n'.
14
15 2012-03-25 Alan Modra <amodra@gmail.com>
16
17 * ldemul.c (before_allocation_default): Revert last change.
18 ldlang.c (lang_add_section): Likewise.
19 (strip_excluded_output_sections): Don't strip output sections with
20 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
21
22 2012-03-23 Alan Modra <amodra@gmail.com>
23
24 * ldemul.c (before_allocation_default): When emitrelocations,
25 don't strip sections..
26 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
27
28 2012-03-14 Kai Tietz <ktietz@redhat.com>
29 Pascal Obry <pascal@obry.net>
30
31 * pe-dll.c (found_sym): New static variable.
32 (undef_count): Likewise.
33 (key_value): New structure.
34 (undef_sort_cmp): Compare routine for qsort/bsearch.
35 (pe_find_cdecl_alias_match): Add new argument.
36 (pe_undef_alias_cdecl_match): Removed.
37 (pe_undef_count): New helper routine.
38 (pe_create_undef_table): Likewise.
39 (pe_process_import_defs): Use pe_create_undef_table and
40 new pe_undef_alias_cdecl_match function.
41
42 2012-03-14 Alan Modra <amodra@gmail.com>
43
44 PR ld/13839
45 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
46 dot in mark phase.
47 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
48 discarding result, for side effects. Fix typo in error message.
49
50 2012-03-08 Tristan Gingold <gingold@adacore.com>
51
52 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
53 (exp_print_token): Constify.
54
55 2012-03-08 Alan Modra <amodra@gmail.com>
56
57 PR ld/10340
58 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
59 (ldfile_add_library_path): Don't set sysrooted flag.
60 (ldfile_open_file_search): Likewise, and don't copy them.
61 (try_open): Delete exten and code handling such. Add sysrooted
62 param and return whether path is in sysroot.
63 (ldfile_find_command_file): Delete extend param. Add sysrooted
64 param. Rename local var. Update try_open calls.
65 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
66 * ldfile.h (search_dirs_type): Remove sysrooted field.
67 * ldlang.c (new_afile): Always set sysrooted from input_flags.
68 (load_symbols): Don't set input_flags.sysrooted.
69 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
70 comment.
71 * ldlex.h (lex_push_file): Update prototype.
72 * ldlex.l (sysrooted_stack): New array.
73 (EOF): Pop input_flags.sysrooted.
74 (lex_push_file): Add sysrooted param. Save and set
75 input_flags.sysrooted.
76
77 2012-03-06 Alan Modra <amodra@gmail.com>
78
79 * ldlang.h (struct lang_input_statement_flags): New, extract from..
80 (lang_input_statement_type): ..here. New field "flags".
81 (input_flags): Declare.
82 (missing_file): Delete.
83 * ldmain.h (whole_archive): Delete.
84 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
85 * ld.h (ld_config_type <dynamic_link>): Delete.
86 * ldmain.c (whole_archive): Delete.
87 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
88 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
89 (input_flags): New variable. Replace all uses of config.dynamic_link,
90 missing_file, ldlang_sysrooted_script, whole_archive,
91 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
92 from here.
93 * ldfile.c: Likewise.
94 * ldgram.y: Likewise.
95 * ldmain.c: Likewise.
96 * ldwrite.c: Likewise.
97 * lexsup.c: Likewise.
98 * plugin.c: Likewise.
99 * emultempl/aix.em: Likewise.
100 * emultempl/armelf.em: Likewise.
101 * emultempl/elf32.em: Likewise.
102 * emultempl/hppaelf.em: Likewise.
103 * emultempl/linux.em: Likewise.
104 * emultempl/pe.em: Likewise.
105 * emultempl/pep.em: Likewise.
106 * emultempl/ppc64elf.em: Likewise.
107 * emultempl/scoreelf.em: Likewise.
108 * emultempl/spuelf.em: Likewise.
109 * emultempl/sunos.em: Likewise.
110 * emultempl/vms.em: Likewise.
111 * ldlang.c (new_afile): Use memset to init zero fields.
112 (load_symbols): Simplify save and restore of flags around command
113 file processing.
114 * ldfile.c (is_sysrooted_pathname): Tidy.
115
116 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
117
118 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
119 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
120 replacing trailing "-*" with "*".
121
122 2012-02-25 Walter Lee <walt@tilera.com>
123
124 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
125 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
126 (eelf32tilegx_be.c): Add rule to build this file.
127 (eelf64tilegx_be.c): Ditto.
128 * Makefile.in: Regenerate.
129 * configure.tgt (tilegx-*-*): Support big endian.
130 (tilegxbe-*-*): New.
131 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
132 (BIG_OUTPUT_FORMAT): Define.
133 (LITTLE_OUTPUT_FORMAT): Define.
134 * emulparams/elf32tilegx_be.sh: New.
135 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
136 (BIG_OUTPUT_FORMAT): Define.
137 (LITTLE_OUTPUT_FORMAT): Define.
138 * emulparams/elf64tilegx_be.sh: New.
139
140 2012-02-24 Kai Tietz <ktietz@redhat.com>
141
142 PR binutils/13710
143 * deffilep.y (keyword_as_name): Disable LIBRARY
144 keyword.
145
146 2012-02-22 Alan Modra <amodra@gmail.com>
147
148 PR ld/13683
149 * ldlang.c (lang_process): Rerun lang_do_assignments before
150 starting garbage collection.
151 * ldexp.c (fold_name): Generate a reloc for defined symbols
152 found without an associated output section during the mark phase.
153 (exp_fold_tree_1): Continue processing an expression, even if we
154 are unable to fold it, if we are in the first two evaluation
155 phases.
156 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
157
158 2012-02-19 Kai Tietz <ktietz@redhat.com>
159
160 * deffilep.y (cmp_import_elem): Sort first by module name.
161 * pe-dll.c (process_def_file_and_drectve): Free strings
162 from removed export-element.
163 (add_bfd_to_link): Optimize loop on import-elements and lower
164 allocated memory.
165 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
166 argument.
167
168 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
169
170 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
171 temporary variable node used for NULL argument.
172
173 2012-02-18 Alan Modra <amodra@gmail.com>
174
175 PR ld/13343
176 * ld.h (parsing_defsym): Delete.
177 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
178 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
179 exp_get_abs_int): Add tree arg for %S in error messages. Don't
180 fudge lineno.
181 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
182 type.filename from sub-tree.
183 (exp_trinop): Likewise, and use "cond" rather than "lhs".
184 * ldexp.h (node_type): Add filename field to struct.
185 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
186 * ldfile.h (ldfile_input_filename): Delete.
187 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
188 %S in error messages.
189 * ldemul.c (syslib_default, hll_default): Likewise.
190 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
191 lang_get_regions, lang_new_phdr): Likewise.
192 (lang_size_sections_1): Pass addr_tree for %S.
193 * ldlex.h (lex_redirect): Update prototype.
194 (ldlex_filename): Declare.
195 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
196 (lex_redirect): Add fake_filename and count params. Push
197 fake_filename to file_name_stack and init lineno from count.
198 (ldlex_filename): New function.
199 (lex_warn_invalid): Use above.
200 * ldmain.c (main): Update lex_redirect call.
201 * ldmisc.c (vfinfo <%S>): Take file name and line number from
202 etree_type arg, or use current if arg is NULL.
203 * lexsup.c (parsing_defsym): Delete.
204 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
205
206 2012-02-13 Kai Tietz <ktietz@redhat.com>
207
208 * deffilep.y (find_export_in_list): Set is_indent for
209 first or last element, if identical.
210 (find_import_in_list): Likewise.
211
212 2012-02-11 Kai Tietz <ktietz@redhat.com>
213
214 * deffilep.y (%union): New type id_const.
215 (opt_name2): New rule.
216 (keyword_as_name): New rule.
217 (dot_name): Replaced by opt_name2 rule.
218 (opt_name): Adjust rule.
219 (opt_equal_name): Likewise.
220
221 2012-02-11 Pascal Obry <pascal@obry.net>
222
223 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
224 table.
225 (process_def_file_and_drectve): Maintain sorting of exports table
226 after stripping leading @ signs.
227
228 2012-02-09 Alan Modra <amodra@gmail.com>
229
230 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
231
232 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
233
234 PR ld/13616
235 * emulparams/elf32_x86_64.sh: Remove NOP.
236 * emulparams/elf_i386.sh: Likewise.
237 * emulparams/elf_i386_be.sh: Likewise.
238 * emulparams/elf_i386_ldso.sh: Likewise.
239 * emulparams/elf_i386_vxworks.sh: Likewise.
240 * emulparams/elf_k1om.sh: Likewise.
241 * emulparams/elf_l1om.sh: Likewise.
242 * emulparams/elf_x86_64.sh: Likewise.
243
244 * ldlang.c (zero_fill): Initialized to 0.
245
246 * ldwrite.c (build_link_order): Set data size to linker odrder
247 size when they are the same.
248
249 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
250
251 2012-01-17 Alan Modra <amodra@gmail.com>
252
253 * ldver.c (ldversion): Update copyright message year.
254
255 2012-01-15 Alan Modra <amodra@gmail.com>
256
257 PR ld/12758
258 * ldlang.c (lang_process): Don't reopen all files, just those
259 newly added by plugin.
260
261 2012-01-11 Alan Modra <amodra@gmail.com>
262
263 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
264 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
265 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
266 --{no-,}plt-align.
267 (plt_thread_safe, plt_stub_align): New vars.
268 (gld${EMULATION_NAME}_after_allocation): Pass them to
269 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
270 * ld.texinfo: Document new command line options, and an old
271 undocumented option.
272
273 2012-01-09 Roland McGrath <mcgrathr@google.com>
274
275 * configure.in: Use AM_ZLIB.
276 * configure: Regenerated.
277
278 For older changes see ChangeLog-2011
279 \f
280 Local Variables:
281 mode: change-log
282 left-margin: 8
283 fill-column: 74
284 version-control: never
285 End:
This page took 0.035394 seconds and 5 git commands to generate.