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