gas/ChangeLog:
[external/binutils.git] / ld / ChangeLog
1 2012-08-01  James Lemke  <jwlemke@codesourcery.com>
2
3         * ld/testsuite/ld-gc/pr13683.d: XFAIL for powerpc*-*-eabivle.
4
5 2012-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6
7         PR ld/14156
8         * ldlang.c (wild_sort): Properly handle by_none.
9
10         * scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
11         * scripttempl/elf32msp430.sc: Likewise.
12         * scripttempl/elf32msp430_3.sc: Likewise. 
13         * scripttempl/elfd10v.sc: Likewise.
14         * scripttempl/elfd30v.sc: Likewise.
15         * scripttempl/elfxtensa.sc: Likewise.
16
17 2012-07-30  Nick Clifton  <nickc@redhat.com>
18
19         * po/ld.pot: Updated template.
20         * po/bg.po: Updated Bulgarian translation.
21         * po/es.po: Updated Spanish translation.
22         * po/fi.po: Updated Finnish translation.
23
24 2012-07-27  Mike Frysinger  <vapier@gentoo.org>
25
26         * configure.in (BFD_VERSION): Run bfd/configure --version and
27         parse the output of that.
28         * configure: Regenerate.
29
30 2012-07-27  Tristan Gingold  <gingold@adacore.com>
31
32         * NEWS: Add marker for 2.23.
33
34 2012-07-24  Jan Waclawek <konfera@efton.sk>
35
36         PR ld/14058
37         * emultempl/avrelf.em (avr_elf_after_allocation): Call
38         elf32_avr_size_stubs with is_prealloc_run as TRUE.
39
40 2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41
42         * emulparams/elf_s390.sh (IREL_IN_PLT): Define.
43         * emulparams/elf64_s390.sh (IREL_IN_PLT): Define.
44
45 2012-07-13  Nick Clifton  <nickc@redhat.com>
46
47         PR ld/14357
48         * ldmain.c (trace_file_tries): Rename to 'verbose'.
49         * ldfile.c: Likewise.
50         * ldlang.c: Likewise.
51         * ldmain.h: Likewise.
52         * lexsup.c: Likewise.
53         * emultempl/elf32.em: Likewise.
54         * emultemp/spuelf.em: Likewise.
55         * pe-dll.c (pe_dll_generate_implib): Only print creation message
56         in verbose mode.
57
58 2012-07-10  H.J. Lu  <hongjiu.lu@intel.com>
59
60         PR ld/14156
61         * NEWS: Mention SORT_NONE.
62
63         * ld.h (sort_type): Add by_none.
64
65         * ld.texinfo: Document SORT_NONE.
66
67         * ldgram.y: Handle SORT_NONE.
68
69         * ldlang.c (update_wild_statements): Handle by_none.  Don't
70         sort .init/.fini sections.
71
72         * ldlex.l: Add SORT_NONE.
73
74 2012-07-02  H.J. Lu  <hongjiu.lu@intel.com>
75
76         * ld.texinfo: Replace __end_SECNAME with __stop_SECNAME.
77
78 2012-06-29  Nick Clifton  <nickc@redhat.com>
79
80         * scripttempl/alphavms.sc: Add .debug_macro section.
81         * scripttempl/elf.sc: Likewise.
82         * scripttempl/elf64hppa.sc: Likewise.
83         * scripttempl/elf_chaos.sc: Likewise.
84         * scripttempl/elfxtensa.sc: Likewise.
85         * scripttempl/ia64vms.sc: Likewise.
86
87         * scripttempl/armbpabi.sc: Add .debug_pubtypes, .debug_ranges and
88         .debug_macro sections.
89         * scripttempl/avr.sc: Likewise.
90         * scripttempl/elf32cr16.sc: Likewise.
91         * scripttempl/elf32crx.sc: Likewise.
92         * scripttempl/elf32msp430.sc: Likewise.
93         * scripttempl/elf32msp430_3.sc: Likewise.
94         * scripttempl/elf32sh-symbian.sc: Likewise.
95         * scripttempl/elfd30v.sc: Likewise.
96         * scripttempl/elfi370.sc: Likewise.
97         * scripttempl/elfm68hc11.sc: Likewise.
98         * scripttempl/elfm68hc12.sc: Likewise.
99         * scripttempl/elfxgate.sc: Likewise.
100         * scripttempl/i386beos.sc: Likewise.
101         * scripttempl/i386go32.sc: Likewise.
102         * scripttempl/ip2k.sc: Likewise.
103         * scripttempl/iq2000.sc: Likewise.
104         * scripttempl/mep.sc: Likewise.
105         * scripttempl/mmo.sc: Likewise.
106         * scripttempl/v850.sc: Likewise.
107         * scripttempl/xstormy16.sc: Likewise.
108
109 2012-06-28  H.J. Lu  <hongjiu.lu@intel.com>
110
111         * ldlang.c (update_wild_statements): Remove redundant statement.
112
113 2012-06-25  Alan Modra  <amodra@gmail.com>
114
115         * ldlang.c (load_symbols): Close file and set flags.loaded
116         after parsing script file.
117         (open_input_bfds): Don't segv on closed script.
118
119 2012-06-24  H.J. Lu  <hongjiu.lu@intel.com>
120
121         * configure.tgt: Enable elf_k1om for x86_64-*-linux-gnux32.
122         Remove x32 in tdir_i386linux and tdir_elf_i386.
123
124 2012-06-22  Roland McGrath  <mcgrathr@google.com>
125
126         * NEWS: Mention __ehdr_start.
127
128 2012-06-21  Alan Modra  <amodra@gmail.com>
129
130         * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
131         absolute, and remove unnecessary alignment.
132
133 2012-06-16  Alan Modra  <amodra@gmail.com>
134
135         * ldlang.h (lang_output_section_statement_type): Add after_end field.
136         (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
137         (section_for_dot): Declare.
138         * ldlang.c (lang_size_sections_1): Correct comment.
139         (current_section): Move earlier.
140         (current_assign, prefer_next_section): New static vars.
141         (lang_do_assignments_1): Add found_end param.  Detect _end
142         assignment to set found_end.  Set os->after_end.  Set above statics.
143         (lang_do_assignments): Adjust lang_do_assignments_1 call.  Init
144         vars.
145         (section_for_dot): New function.
146         (lang_set_startof): Don't make an absolute symbol.
147         (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
148         * ldexp.c (new_rel_from_abs): Use section_for_dot.
149         * emultempl/lnk960.em (symbol_at_beginning_of): New function.
150         (symbol_at_end_of): Likewise.
151         (lnk960_after_allocation): Use them.
152         * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
153         likewise before __bss_start.
154
155 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
156
157         * plugin.c (set_tv_header): Handle link_info.pie.
158
159 2012-06-11  Alan Modra  <amodra@gmail.com>
160
161         PR ld/14215
162         * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
163         references.
164         * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
165         .got.plt.
166         * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
167         * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
168         * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
169         * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
170         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
171         * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
172         * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
173         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
174
175 2012-06-07  Georg-Johann Lay  <avr@gjlay.de>
176
177         PR 13697
178         * scripttempl/avr.sc (.data): Keep it.
179
180 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
181
182         * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
183         * Makefile.in: Regenerate.
184
185 2012-05-30  Alan Modra  <amodra@gmail.com>
186
187         * ldlang.h (lang_output_section_statement_type): Rename
188         "section_relative_symbol" field to "update_dot".
189         * ldlang.c: Update all uses.
190         (strip_excluded_output_sections): Don't test update_dot_tree here..
191         (lang_leave_overlay): ..set update_dot here.
192
193 2012-05-26  Alan Modra  <amodra@gmail.com>
194
195         * ldlex.h (enum option_values): Move from..
196         * lexsup.c: ..here.
197         * emultempl/ppc32elf.em: Include ldlex.h.
198         (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
199         --traditional-format.
200         * emultempl/ppc64elf.em: Likewise.
201
202 2012-05-25  Alan Modra  <amodra@gmail.com>
203
204         PR ld/13909
205         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
206         multiple .eh_frame sections attached to bfd.
207
208 2012-05-23  Cary Coutant  <ccoutant@google.com>
209
210         * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
211         carefully.  Fix typo where .rela.data.rel.ro matches
212         .rel.data.rel.ro.
213         * scripttempl/mep.sc: Likewise.
214         * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
215         * scripttempl/elf64hppa.sc: Likewise.
216         * scripttempl/elfxtensa.sc: Likewise.
217
218 2012-05-17  Daniel Richard G.  <skunk@iskunk.org>
219             Nick Clifton  <nickc@redhat.com>
220
221         PR 14072
222         * configure.in: Add check that sysdep.h has been included before
223         any system header files.
224         * configure: Regenerate.
225         * config.in: Regenerate.
226         * sysdep.h: Generate an error if included before config.h.
227
228 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
229
230         * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
231         as the first argument for `bfd_get_section_name'.
232
233 2012-05-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
234
235         PR ld/14069
236         * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
237         support.
238
239 2012-05-15  James Murray <jsm@jsm-net.demon.co.uk>
240
241         * NEWS: Mention the support for S12X processors.
242
243 2012-05-14  James Lemke  <jwlemke@codesourcery.com>
244
245         * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
246         Pass it to callback.
247         (walk_wild_section_general): Pass section_flag_list to callback.
248         (lang_add_section): Add sflag_list parm.
249         Move out logic to keep / omit a section & call bfd_lookup_section_flags.
250         (output_section_callback_fast): Add sflag_list parm.
251         Add new parm to lang_add_section calls.
252         (output_section_callback): Likewise.
253         (check_section_callback): Add sflag_list parm.
254         (lang_place_orphans): Add new parm to lang_add_section calls.
255         (gc_section_callback): Add sflag_list parm.
256         (find_relro_section_callback): Likewise.
257         * ldlang.h (callback_t): Add flag_info parm.
258         (lang_add_section): Add sflag_list parm.
259         * emultempl/armelf.em (elf32_arm_add_stub_section):
260         Add lang_add_section parm.
261         * emultempl/beos.em (gld*_place_orphan): Likewise.
262         * emultempl/elf32.em (gld*_place_orphan): Likewise.
263         * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
264         * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
265         * emultempl/mipself.em (mips_add_stub_section): Likewise.
266         * emultempl/mmo.em (mmo_place_orphan): Likewise.
267         * emultempl/pe.em (gld_*_place_orphan): Likewise.
268         * emultempl/pep.em (gld_*_place_orphan): Likewise.
269         * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
270         * emultempl/spuelf.em (spu_place_special_section): Likewise.
271         * emultempl/vms.em (vms_place_orphan): Likewise.
272
273 2012-05-14  Catherine Moore  <clm@codesourcery.com>
274
275         * NEWS:  Mention PowerPC VLE port.
276
277 2012-05-11  Daniel Richard G.  <skunk@iskunk.org>
278
279         PR binutils/14028
280         * configure.in: Invoke ACX_HEADER_STRING.
281         * configure: Regenerate.
282         * config.in: Regenerate.
283         * sysdep.h: If STRINGS_WITH_STRING is defined then include both
284         string.h and strings.h.
285
286 2012-05-08  Alan Modra  <amodra@gmail.com>
287
288         * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
289         LC and LANG environment vars.
290         * Makefile.in: Regenerate.
291
292 2012-05-07  Tristan Gingold  <gingold@adacore.com>
293
294         * pe-dll.c (udef_table): Make it static.
295
296 2012-05-05  Alan Modra  <amodra@gmail.com>
297
298         * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
299         (generate_reloc): Use bfd_abs_section_ptr.
300
301 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * configure.tgt: Support x86_64-*-linux-gnux32.
304
305 2012-05-03  Sean Keys  <skeys@ipdatasys.com>
306
307         * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
308         and XGATE (elf).
309         * Makefile.in: Rebuild.
310         * configure.tgt: Recognize XGATE.
311         * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
312         * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
313         * NEWS: Mention new support.
314
315 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
316
317         Make bfd asserts cause linker errors.
318         * ldmain.c (default_bfd_assert_handler): New variable.
319         (ld_bfd_assert_handler): New function.
320         (main): Call bfd_set_assert_handler.
321
322 2012-04-24  Alan Modra  <amodra@gmail.com>
323
324         * ldlang.c (size_input_section): Use sec_info_type rather than
325         usrdata->flags.just_syms.
326         * ldwrite.c (build_link_order): Likewise.
327         * emultempl/hppaelf.em (build_section_lists): Likewise.
328         * emultempl/ppc64elf.em (build_toc_list): Likewise.
329         * emultempl/armelf.em (build_section_lists): Likewise.
330         (after_allocation): Update for renamed sec_info_type value.
331         * emultempl/tic6xdsbt.em: Likewise.
332
333 2012-04-12  Roland McGrath  <mcgrathr@google.com>
334
335         * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
336         * emulparams/armelf_nacl.sh: New file.
337         * emulparams/armelfb_nacl.sh: New file.
338         * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
339         and earmelfb_nacl.c here.
340         (earmelf_nacl.c, earmelfb_nacl.c): New targets.
341         * Makefile.in: Regenerated.
342
343 2012-04-11  Tristan Gingold  <gingold@adacore.com>
344
345         * scripttempl/ia64vms.sc: New file.
346         * emultempl/vms.em (_before_parse): Support for ia64.
347         (elf64-ia64-vms): New fragment for ia64.
348         * emulparams/elf64_ia64_vms.sh: New file.
349         * configure.tgt (ia64-*-*vms*): Add.
350         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
351         (eelf64_ia64_vms.c): New rule.
352         * Makefile.in: Regenerate.
353
354 2012-04-06  Roland McGrath  <mcgrathr@google.com>
355
356         * configure.in (AC_CHECK_HEADERS): Add locale.h.
357         * config.in: Regenerate.
358         * configure: Regenerate.
359
360 2012-04-05  Nick Clifton  <nickc@redhat.com>
361
362         * configure.in (AC_CHECK_FUNCS): Add setlocale.
363         (AM_LC_MESSAGES): Add.
364         * aclocal.m4: Regenerate.
365         * config.in: Regenerate.
366         * configure: Regenerate.
367
368 2012-04-03  Roland McGrath  <mcgrathr@google.com>
369
370         * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
371         * emulparams/elf_nacl.sh: New file.
372         * emulparams/elf_i386_nacl.sh: New file.
373         * emulparams/elf32_x86_64_nacl.sh: New file.
374         * emulparams/elf_x86_64_nacl.sh: New file.
375         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
376         (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
377         eelf_x86_64_nacl.c here.
378         (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
379         New targets.
380         * Makefile.in: Regenerated.
381
382         * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
383
384 2012-04-02  Mike Frysinger  <vapier@gentoo.org>
385
386         * ldmisc.c (vfinfo): Assign new local str to fmt.  Delete
387         putc call.  If str and fmt are different, call fwrite on
388         the difference.
389
390 2012-03-30  Nick Clifton  <nickc@redhat.com>
391
392         * po/vi.po: Updated Vietnamese translation.
393
394 2012-03-27  Roland McGrath  <mcgrathr@google.com>
395
396         * configure.in: Set want64 on a 64-bit host regardless of
397         --enable-targets=all.
398         * configure: Regenerated.
399
400 2012-03-26  Tristan Gingold  <gingold@adacore.com>
401
402         * lexsup.c (parse_args): Add a missing '\n'.
403
404 2012-03-25  Alan Modra  <amodra@gmail.com>
405
406         * ldemul.c (before_allocation_default): Revert last change.
407         * ldlang.c (lang_add_section): Likewise.
408         (strip_excluded_output_sections): Don't strip output sections with
409         user input sections when emitrelocations, unless all are SEC_EXCLUDE.
410
411 2012-03-23  Alan Modra  <amodra@gmail.com>
412
413         * ldemul.c (before_allocation_default): When emitrelocations,
414         don't strip sections..
415         * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
416
417 2012-03-14  Kai Tietz  <ktietz@redhat.com>
418             Pascal Obry  <pascal@obry.net>
419
420         * pe-dll.c (found_sym): New static variable.
421         (undef_count): Likewise.
422         (key_value): New structure.
423         (undef_sort_cmp): Compare routine for qsort/bsearch.
424         (pe_find_cdecl_alias_match): Add new argument.
425         (pe_undef_alias_cdecl_match): Removed.
426         (pe_undef_count): New helper routine.
427         (pe_create_undef_table): Likewise.
428         (pe_process_import_defs): Use pe_create_undef_table and
429         new pe_undef_alias_cdecl_match function.
430
431 2012-03-14  Alan Modra  <amodra@gmail.com>
432
433         PR ld/13839
434         * ldexp.c (fold_name): Ignore undefined symbols when assigning to
435         dot in mark phase.
436         (exp_fold_tree_1): Evaluate assignment to dot expressions even when
437         discarding result, for side effects.  Fix typo in error message.
438
439 2012-03-08  Tristan Gingold  <gingold@adacore.com>
440
441         * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
442         (exp_print_token): Constify.
443
444 2012-03-08  Alan Modra  <amodra@gmail.com>
445
446         PR ld/10340
447         * ldfile.c (is_sysrooted_pathname): Remove notsame param.
448         (ldfile_add_library_path): Don't set sysrooted flag.
449         (ldfile_open_file_search): Likewise, and don't copy them.
450         (try_open): Delete exten and code handling such.  Add sysrooted
451         param and return whether path is in sysroot.
452         (ldfile_find_command_file): Delete extend param.  Add sysrooted
453         param.  Rename local var.  Update try_open calls.
454         (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
455         * ldfile.h (search_dirs_type): Remove sysrooted field.
456         * ldlang.c (new_afile): Always set sysrooted from input_flags.
457         (load_symbols): Don't set input_flags.sysrooted.
458         * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
459         comment.
460         * ldlex.h (lex_push_file): Update prototype.
461         * ldlex.l (sysrooted_stack): New array.
462         (EOF): Pop input_flags.sysrooted.
463         (lex_push_file): Add sysrooted param.  Save and set
464         input_flags.sysrooted.
465
466 2012-03-06  Alan Modra  <amodra@gmail.com>
467
468         * ldlang.h (struct lang_input_statement_flags): New, extract from..
469         (lang_input_statement_type): ..here.  New field "flags".
470         (input_flags): Declare.
471         (missing_file): Delete.
472         * ldmain.h (whole_archive): Delete.
473         (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
474         * ld.h (ld_config_type <dynamic_link>): Delete.
475         * ldmain.c (whole_archive): Delete.
476         (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
477         * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
478         (input_flags): New variable.  Replace all uses of config.dynamic_link,
479         missing_file, ldlang_sysrooted_script, whole_archive,
480         add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
481         from here.
482         * ldfile.c: Likewise.
483         * ldgram.y: Likewise.
484         * ldmain.c: Likewise.
485         * ldwrite.c: Likewise.
486         * lexsup.c: Likewise.
487         * plugin.c: Likewise.
488         * emultempl/aix.em: Likewise.
489         * emultempl/armelf.em: Likewise.
490         * emultempl/elf32.em: Likewise.
491         * emultempl/hppaelf.em: Likewise.
492         * emultempl/linux.em: Likewise.
493         * emultempl/pe.em: Likewise.
494         * emultempl/pep.em: Likewise.
495         * emultempl/ppc64elf.em: Likewise.
496         * emultempl/scoreelf.em: Likewise.
497         * emultempl/spuelf.em: Likewise.
498         * emultempl/sunos.em: Likewise.
499         * emultempl/vms.em: Likewise.
500         * ldlang.c (new_afile): Use memset to init zero fields.
501         (load_symbols): Simplify save and restore of flags around command
502         file processing.
503         * ldfile.c (is_sysrooted_pathname): Tidy.
504
505 2012-03-05  Hans-Peter Nilsson  <hp@axis.com>
506
507         * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
508         (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
509         replacing trailing "-*" with "*".
510
511 2012-02-25  Walter Lee  <walt@tilera.com>
512
513         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
514         (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
515         (eelf32tilegx_be.c): Add rule to build this file.
516         (eelf64tilegx_be.c): Ditto.
517         * Makefile.in: Regenerate.
518         * configure.tgt (tilegx-*-*): Support big endian.
519         (tilegxbe-*-*): New.
520         * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
521         (BIG_OUTPUT_FORMAT): Define.
522         (LITTLE_OUTPUT_FORMAT): Define.
523         * emulparams/elf32tilegx_be.sh: New.
524         * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
525         (BIG_OUTPUT_FORMAT): Define.
526         (LITTLE_OUTPUT_FORMAT): Define.
527         * emulparams/elf64tilegx_be.sh: New.
528
529 2012-02-24  Kai Tietz  <ktietz@redhat.com>
530
531         PR binutils/13710
532         * deffilep.y (keyword_as_name): Disable LIBRARY
533         keyword.
534
535 2012-02-22  Alan Modra  <amodra@gmail.com>
536
537         PR ld/13683
538         * ldlang.c (lang_process): Rerun lang_do_assignments before
539         starting garbage collection.
540         * ldexp.c (fold_name): Generate a reloc for defined symbols
541         found without an associated output section during the mark phase.
542         (exp_fold_tree_1): Continue processing an expression, even if we
543         are unable to fold it, if we are in the first two evaluation
544         phases.
545         * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
546
547 2012-02-19  Kai Tietz  <ktietz@redhat.com>
548
549         * deffilep.y (cmp_import_elem): Sort first by module name.
550         * pe-dll.c (process_def_file_and_drectve): Free strings
551         from removed export-element.
552         (add_bfd_to_link): Optimize loop on import-elements and lower
553         allocated memory.
554         (pe_implied_import_dll): Pass NULL instead of 0 for pointer
555         argument.
556
557 2012-02-18  Hans-Peter Nilsson  <hp@axis.com>
558
559         * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
560         temporary variable node used for NULL argument.
561
562 2012-02-18  Alan Modra  <amodra@gmail.com>
563
564         PR ld/13343
565         * ld.h (parsing_defsym): Delete.
566         * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
567         (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
568         exp_get_abs_int): Add tree arg for %S in error messages.  Don't
569         fudge lineno.
570         (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
571         type.filename from sub-tree.
572         (exp_trinop): Likewise, and use "cond" rather than "lhs".
573         * ldexp.h (node_type): Add filename field to struct.
574         * ldfile.c (ldfile_input_filename): Delete.  Remove all refs.
575         * ldfile.h (ldfile_input_filename): Delete.
576         * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
577         %S in error messages.
578         * ldemul.c (syslib_default, hll_default): Likewise.
579         * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
580         lang_get_regions, lang_new_phdr): Likewise.
581         (lang_size_sections_1): Pass addr_tree for %S.
582         * ldlex.h (lex_redirect): Update prototype.
583         (ldlex_filename): Declare.
584         * ldlex.l (<EOF>): Don't set ldfile_input_filename.
585         (lex_redirect): Add fake_filename and count params.  Push
586         fake_filename to file_name_stack and init lineno from count.
587         (ldlex_filename): New function.
588         (lex_warn_invalid): Use above.
589         * ldmain.c (main): Update lex_redirect call.
590         * ldmisc.c (vfinfo <%S>): Take file name and line number from
591         etree_type arg, or use current if arg is NULL.
592         * lexsup.c (parsing_defsym): Delete.
593         (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
594
595 2012-02-13  Kai Tietz  <ktietz@redhat.com>
596
597         * deffilep.y (find_export_in_list): Set is_indent for
598         first or last element, if identical.
599         (find_import_in_list): Likewise.
600
601 2012-02-11  Kai Tietz  <ktietz@redhat.com>
602
603         * deffilep.y (%union): New type id_const.
604         (opt_name2): New rule.
605         (keyword_as_name): New rule.
606         (dot_name): Replaced by opt_name2 rule.
607         (opt_name): Adjust rule.
608         (opt_equal_name): Likewise.
609
610 2012-02-11  Pascal Obry  <pascal@obry.net>
611
612         * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
613         table.
614         (process_def_file_and_drectve): Maintain sorting of exports table
615         after stripping leading @ signs.
616
617 2012-02-09  Alan Modra  <amodra@gmail.com>
618
619         * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
620
621 2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>
622
623         PR ld/13616
624         * emulparams/elf32_x86_64.sh: Remove NOP.
625         * emulparams/elf_i386.sh: Likewise.
626         * emulparams/elf_i386_be.sh: Likewise.
627         * emulparams/elf_i386_ldso.sh: Likewise.
628         * emulparams/elf_i386_vxworks.sh: Likewise.
629         * emulparams/elf_k1om.sh: Likewise.
630         * emulparams/elf_l1om.sh: Likewise.
631         * emulparams/elf_x86_64.sh: Likewise.
632
633         * ldlang.c (zero_fill): Initialized to 0.
634
635         * ldwrite.c (build_link_order): Set data size to linker odrder
636         size when they are the same.
637
638         * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
639
640 2012-01-17  Alan Modra  <amodra@gmail.com>
641
642         * ldver.c (ldversion): Update copyright message year.
643
644 2012-01-15  Alan Modra  <amodra@gmail.com>
645
646         PR ld/12758
647         * ldlang.c (lang_process): Don't reopen all files, just those
648         newly added by plugin.
649
650 2012-01-11  Alan Modra  <amodra@gmail.com>
651
652         * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
653         PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
654         PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
655         --{no-,}plt-align.
656         (plt_thread_safe, plt_stub_align): New vars.
657         (gld${EMULATION_NAME}_after_allocation): Pass them to
658         ppc64_elf_size_stubs.  Align stub sections according to plt_stub_align.
659         * ld.texinfo: Document new command line options, and an old
660         undocumented option.
661
662 2012-01-09  Roland McGrath  <mcgrathr@google.com>
663
664         * configure.in: Use AM_ZLIB.
665         * configure: Regenerated.
666
667 For older changes see ChangeLog-2011
668 \f
669 Local Variables:
670 mode: change-log
671 left-margin: 8
672 fill-column: 74
673 version-control: never
674 End: