PR binutils/14028
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
2
3 PR binutils/14028
4 * configure.in: Invoke ACX_HEADER_STRING.
5 * configure: Regenerate.
6 * config.in: Regenerate.
7 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
8 string.h and strings.h.
9
10 2012-05-08 Alan Modra <amodra@gmail.com>
11
12 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
13 LC and LANG environment vars.
14 * Makefile.in: Regenerate.
15
16 2012-05-07 Tristan Gingold <gingold@adacore.com>
17
18 * pe-dll.c (udef_table): Make it static.
19
20 2012-05-05 Alan Modra <amodra@gmail.com>
21
22 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
23 (generate_reloc): Use bfd_abs_section_ptr.
24
25 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
26
27 * configure.tgt: Support x86_64-*-linux-gnux32.
28
29 2012-05-03 Sean Keys <skeys@ipdatasys.com>
30
31 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
32 and XGATE (elf).
33 * Makefile.in: Rebuild.
34 * configure.tgt: Recognize XGATE.
35 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
36 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
37 * NEWS: Mention new support.
38
39 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
40
41 Make bfd asserts cause linker errors.
42 * ldmain.c (default_bfd_assert_handler): New variable.
43 (ld_bfd_assert_handler): New function.
44 (main): Call bfd_set_assert_handler.
45
46 2012-04-24 Alan Modra <amodra@gmail.com>
47
48 * ld/ldlang.c (size_input_section): Use sec_info_type rather than
49 usrdata->flags.just_syms.
50 * ld/ldwrite.c (build_link_order): Likewise.
51 * ld/emultempl/hppaelf.em (build_section_lists): Likewise.
52 * ld/emultempl/ppc64elf.em (build_toc_list): Likewise.
53 * ld/emultempl/armelf.em (build_section_lists): Likewise.
54 (after_allocation): Update for renamed sec_info_type value.
55 * ld/emultempl/tic6xdsbt.em: Likewise.
56
57 2012-04-12 Roland McGrath <mcgrathr@google.com>
58
59 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
60 * emulparams/armelf_nacl.sh: New file.
61 * emulparams/armelfb_nacl.sh: New file.
62 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
63 and earmelfb_nacl.c here.
64 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
65 * Makefile.in: Regenerated.
66
67 2012-04-11 Tristan Gingold <gingold@adacore.com>
68
69 * scripttempl/ia64vms.sc: New file.
70 * emultempl/vms.em (_before_parse): Support for ia64.
71 (elf64-ia64-vms): New fragment for ia64.
72 * emulparams/elf64_ia64_vms.sh: New file.
73 * configure.tgt (ia64-*-*vms*): Add.
74 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
75 (eelf64_ia64_vms.c): New rule.
76 * Makefile.in: Regenerate.
77
78 2012-04-06 Roland McGrath <mcgrathr@google.com>
79
80 * configure.in (AC_CHECK_HEADERS): Add locale.h.
81 * config.in: Regenerate.
82 * configure: Regenerate.
83
84 2012-04-05 Nick Clifton <nickc@redhat.com>
85
86 * configure.in (AC_CHECK_FUNCS): Add setlocale.
87 (AM_LC_MESSAGES): Add.
88 * aclocal.m4: Regenerate.
89 * config.in: Regenerate.
90 * configure: Regenerate.
91
92 2012-04-03 Roland McGrath <mcgrathr@google.com>
93
94 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
95 * emulparams/elf_nacl.sh: New file.
96 * emulparams/elf_i386_nacl.sh: New file.
97 * emulparams/elf32_x86_64_nacl.sh: New file.
98 * emulparams/elf_x86_64_nacl.sh: New file.
99 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
100 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
101 eelf_x86_64_nacl.c here.
102 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
103 New targets.
104 * Makefile.in: Regenerated.
105
106 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
107
108 2012-04-02 Mike Frysinger <vapier@gentoo.org>
109
110 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
111 putc call. If str and fmt are different, call fwrite on
112 the difference.
113
114 2012-03-30 Nick Clifton <nickc@redhat.com>
115
116 * po/vi.po: Updated Vietnamese translation.
117
118 2012-03-27 Roland McGrath <mcgrathr@google.com>
119
120 * configure.in: Set want64 on a 64-bit host regardless of
121 --enable-targets=all.
122 * configure: Regenerated.
123
124 2012-03-26 Tristan Gingold <gingold@adacore.com>
125
126 * lexsup.c (parse_args): Add a missing '\n'.
127
128 2012-03-25 Alan Modra <amodra@gmail.com>
129
130 * ldemul.c (before_allocation_default): Revert last change.
131 ldlang.c (lang_add_section): Likewise.
132 (strip_excluded_output_sections): Don't strip output sections with
133 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
134
135 2012-03-23 Alan Modra <amodra@gmail.com>
136
137 * ldemul.c (before_allocation_default): When emitrelocations,
138 don't strip sections..
139 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
140
141 2012-03-14 Kai Tietz <ktietz@redhat.com>
142 Pascal Obry <pascal@obry.net>
143
144 * pe-dll.c (found_sym): New static variable.
145 (undef_count): Likewise.
146 (key_value): New structure.
147 (undef_sort_cmp): Compare routine for qsort/bsearch.
148 (pe_find_cdecl_alias_match): Add new argument.
149 (pe_undef_alias_cdecl_match): Removed.
150 (pe_undef_count): New helper routine.
151 (pe_create_undef_table): Likewise.
152 (pe_process_import_defs): Use pe_create_undef_table and
153 new pe_undef_alias_cdecl_match function.
154
155 2012-03-14 Alan Modra <amodra@gmail.com>
156
157 PR ld/13839
158 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
159 dot in mark phase.
160 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
161 discarding result, for side effects. Fix typo in error message.
162
163 2012-03-08 Tristan Gingold <gingold@adacore.com>
164
165 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
166 (exp_print_token): Constify.
167
168 2012-03-08 Alan Modra <amodra@gmail.com>
169
170 PR ld/10340
171 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
172 (ldfile_add_library_path): Don't set sysrooted flag.
173 (ldfile_open_file_search): Likewise, and don't copy them.
174 (try_open): Delete exten and code handling such. Add sysrooted
175 param and return whether path is in sysroot.
176 (ldfile_find_command_file): Delete extend param. Add sysrooted
177 param. Rename local var. Update try_open calls.
178 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
179 * ldfile.h (search_dirs_type): Remove sysrooted field.
180 * ldlang.c (new_afile): Always set sysrooted from input_flags.
181 (load_symbols): Don't set input_flags.sysrooted.
182 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
183 comment.
184 * ldlex.h (lex_push_file): Update prototype.
185 * ldlex.l (sysrooted_stack): New array.
186 (EOF): Pop input_flags.sysrooted.
187 (lex_push_file): Add sysrooted param. Save and set
188 input_flags.sysrooted.
189
190 2012-03-06 Alan Modra <amodra@gmail.com>
191
192 * ldlang.h (struct lang_input_statement_flags): New, extract from..
193 (lang_input_statement_type): ..here. New field "flags".
194 (input_flags): Declare.
195 (missing_file): Delete.
196 * ldmain.h (whole_archive): Delete.
197 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
198 * ld.h (ld_config_type <dynamic_link>): Delete.
199 * ldmain.c (whole_archive): Delete.
200 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
201 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
202 (input_flags): New variable. Replace all uses of config.dynamic_link,
203 missing_file, ldlang_sysrooted_script, whole_archive,
204 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
205 from here.
206 * ldfile.c: Likewise.
207 * ldgram.y: Likewise.
208 * ldmain.c: Likewise.
209 * ldwrite.c: Likewise.
210 * lexsup.c: Likewise.
211 * plugin.c: Likewise.
212 * emultempl/aix.em: Likewise.
213 * emultempl/armelf.em: Likewise.
214 * emultempl/elf32.em: Likewise.
215 * emultempl/hppaelf.em: Likewise.
216 * emultempl/linux.em: Likewise.
217 * emultempl/pe.em: Likewise.
218 * emultempl/pep.em: Likewise.
219 * emultempl/ppc64elf.em: Likewise.
220 * emultempl/scoreelf.em: Likewise.
221 * emultempl/spuelf.em: Likewise.
222 * emultempl/sunos.em: Likewise.
223 * emultempl/vms.em: Likewise.
224 * ldlang.c (new_afile): Use memset to init zero fields.
225 (load_symbols): Simplify save and restore of flags around command
226 file processing.
227 * ldfile.c (is_sysrooted_pathname): Tidy.
228
229 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
230
231 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
232 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
233 replacing trailing "-*" with "*".
234
235 2012-02-25 Walter Lee <walt@tilera.com>
236
237 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
238 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
239 (eelf32tilegx_be.c): Add rule to build this file.
240 (eelf64tilegx_be.c): Ditto.
241 * Makefile.in: Regenerate.
242 * configure.tgt (tilegx-*-*): Support big endian.
243 (tilegxbe-*-*): New.
244 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
245 (BIG_OUTPUT_FORMAT): Define.
246 (LITTLE_OUTPUT_FORMAT): Define.
247 * emulparams/elf32tilegx_be.sh: New.
248 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
249 (BIG_OUTPUT_FORMAT): Define.
250 (LITTLE_OUTPUT_FORMAT): Define.
251 * emulparams/elf64tilegx_be.sh: New.
252
253 2012-02-24 Kai Tietz <ktietz@redhat.com>
254
255 PR binutils/13710
256 * deffilep.y (keyword_as_name): Disable LIBRARY
257 keyword.
258
259 2012-02-22 Alan Modra <amodra@gmail.com>
260
261 PR ld/13683
262 * ldlang.c (lang_process): Rerun lang_do_assignments before
263 starting garbage collection.
264 * ldexp.c (fold_name): Generate a reloc for defined symbols
265 found without an associated output section during the mark phase.
266 (exp_fold_tree_1): Continue processing an expression, even if we
267 are unable to fold it, if we are in the first two evaluation
268 phases.
269 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
270
271 2012-02-19 Kai Tietz <ktietz@redhat.com>
272
273 * deffilep.y (cmp_import_elem): Sort first by module name.
274 * pe-dll.c (process_def_file_and_drectve): Free strings
275 from removed export-element.
276 (add_bfd_to_link): Optimize loop on import-elements and lower
277 allocated memory.
278 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
279 argument.
280
281 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
282
283 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
284 temporary variable node used for NULL argument.
285
286 2012-02-18 Alan Modra <amodra@gmail.com>
287
288 PR ld/13343
289 * ld.h (parsing_defsym): Delete.
290 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
291 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
292 exp_get_abs_int): Add tree arg for %S in error messages. Don't
293 fudge lineno.
294 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
295 type.filename from sub-tree.
296 (exp_trinop): Likewise, and use "cond" rather than "lhs".
297 * ldexp.h (node_type): Add filename field to struct.
298 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
299 * ldfile.h (ldfile_input_filename): Delete.
300 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
301 %S in error messages.
302 * ldemul.c (syslib_default, hll_default): Likewise.
303 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
304 lang_get_regions, lang_new_phdr): Likewise.
305 (lang_size_sections_1): Pass addr_tree for %S.
306 * ldlex.h (lex_redirect): Update prototype.
307 (ldlex_filename): Declare.
308 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
309 (lex_redirect): Add fake_filename and count params. Push
310 fake_filename to file_name_stack and init lineno from count.
311 (ldlex_filename): New function.
312 (lex_warn_invalid): Use above.
313 * ldmain.c (main): Update lex_redirect call.
314 * ldmisc.c (vfinfo <%S>): Take file name and line number from
315 etree_type arg, or use current if arg is NULL.
316 * lexsup.c (parsing_defsym): Delete.
317 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
318
319 2012-02-13 Kai Tietz <ktietz@redhat.com>
320
321 * deffilep.y (find_export_in_list): Set is_indent for
322 first or last element, if identical.
323 (find_import_in_list): Likewise.
324
325 2012-02-11 Kai Tietz <ktietz@redhat.com>
326
327 * deffilep.y (%union): New type id_const.
328 (opt_name2): New rule.
329 (keyword_as_name): New rule.
330 (dot_name): Replaced by opt_name2 rule.
331 (opt_name): Adjust rule.
332 (opt_equal_name): Likewise.
333
334 2012-02-11 Pascal Obry <pascal@obry.net>
335
336 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
337 table.
338 (process_def_file_and_drectve): Maintain sorting of exports table
339 after stripping leading @ signs.
340
341 2012-02-09 Alan Modra <amodra@gmail.com>
342
343 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
344
345 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
346
347 PR ld/13616
348 * emulparams/elf32_x86_64.sh: Remove NOP.
349 * emulparams/elf_i386.sh: Likewise.
350 * emulparams/elf_i386_be.sh: Likewise.
351 * emulparams/elf_i386_ldso.sh: Likewise.
352 * emulparams/elf_i386_vxworks.sh: Likewise.
353 * emulparams/elf_k1om.sh: Likewise.
354 * emulparams/elf_l1om.sh: Likewise.
355 * emulparams/elf_x86_64.sh: Likewise.
356
357 * ldlang.c (zero_fill): Initialized to 0.
358
359 * ldwrite.c (build_link_order): Set data size to linker odrder
360 size when they are the same.
361
362 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
363
364 2012-01-17 Alan Modra <amodra@gmail.com>
365
366 * ldver.c (ldversion): Update copyright message year.
367
368 2012-01-15 Alan Modra <amodra@gmail.com>
369
370 PR ld/12758
371 * ldlang.c (lang_process): Don't reopen all files, just those
372 newly added by plugin.
373
374 2012-01-11 Alan Modra <amodra@gmail.com>
375
376 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
377 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
378 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
379 --{no-,}plt-align.
380 (plt_thread_safe, plt_stub_align): New vars.
381 (gld${EMULATION_NAME}_after_allocation): Pass them to
382 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
383 * ld.texinfo: Document new command line options, and an old
384 undocumented option.
385
386 2012-01-09 Roland McGrath <mcgrathr@google.com>
387
388 * configure.in: Use AM_ZLIB.
389 * configure: Regenerated.
390
391 For older changes see ChangeLog-2011
392 \f
393 Local Variables:
394 mode: change-log
395 left-margin: 8
396 fill-column: 74
397 version-control: never
398 End:
This page took 0.036494 seconds and 4 git commands to generate.