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