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