1 2012-06-21 Alan Modra <amodra@gmail.com>
3 * ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol
4 absolute, and remove unnecessary alignment.
6 2012-06-16 Alan Modra <amodra@gmail.com>
8 * ldlang.h (lang_output_section_statement_type): Add after_end field.
9 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
10 (section_for_dot): Declare.
11 * ldlang.c (lang_size_sections_1): Correct comment.
12 (current_section): Move earlier.
13 (current_assign, prefer_next_section): New static vars.
14 (lang_do_assignments_1): Add found_end param. Detect _end
15 assignment to set found_end. Set os->after_end. Set above statics.
16 (lang_do_assignments): Adjust lang_do_assignments_1 call. Init
18 (section_for_dot): New function.
19 (lang_set_startof): Don't make an absolute symbol.
20 (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
21 * ldexp.c (new_rel_from_abs): Use section_for_dot.
22 * emultempl/lnk960.em (symbol_at_beginning_of): New function.
23 (symbol_at_end_of): Likewise.
24 (lnk960_after_allocation): Use them.
25 * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
26 likewise before __bss_start.
28 2012-06-14 H.J. Lu <hongjiu.lu@intel.com>
30 * plugin.c (set_tv_header): Handle link_info.pie.
32 2012-06-11 Alan Modra <amodra@gmail.com>
35 * ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
37 * emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
39 * emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
40 * emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
41 * emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
42 * emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
43 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
44 * emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
45 * emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
46 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.
48 2012-06-07 Georg-Johann Lay <avr@gjlay.de>
51 * scripttempl/avr.sc (.data): Keep it.
53 2012-06-02 Andreas Schwab <schwab@linux-m68k.org>
55 * Makefile.am (TEXINFO_TEX): Remove $(top_srcdir) prefix.
56 * Makefile.in: Regenerate.
58 2012-05-30 Alan Modra <amodra@gmail.com>
60 * ldlang.h (lang_output_section_statement_type): Rename
61 "section_relative_symbol" field to "update_dot".
62 * ldlang.c: Update all uses.
63 (strip_excluded_output_sections): Don't test update_dot_tree here..
64 (lang_leave_overlay): ..set update_dot here.
66 2012-05-26 Alan Modra <amodra@gmail.com>
68 * ldlex.h (enum option_values): Move from..
70 * emultempl/ppc32elf.em: Include ldlex.h.
71 (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when
73 * emultempl/ppc64elf.em: Likewise.
75 2012-05-25 Alan Modra <amodra@gmail.com>
78 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
79 multiple .eh_frame sections attached to bfd.
81 2012-05-23 Cary Coutant <ccoutant@google.com>
83 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
84 carefully. Fix typo where .rela.data.rel.ro matches
86 * scripttempl/mep.sc: Likewise.
87 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
88 * scripttempl/elf64hppa.sc: Likewise.
89 * scripttempl/elfxtensa.sc: Likewise.
91 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
92 Nick Clifton <nickc@redhat.com>
95 * configure.in: Add check that sysdep.h has been included before
96 any system header files.
97 * configure: Regenerate.
98 * config.in: Regenerate.
99 * sysdep.h: Generate an error if included before config.h.
101 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
103 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
104 as the first argument for `bfd_get_section_name'.
106 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
109 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
112 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
114 * NEWS: Mention the support for S12X processors.
116 2012-05-14 James Lemke <jwlemke@codesourcery.com>
118 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
120 (walk_wild_section_general): Pass section_flag_list to callback.
121 (lang_add_section): Add sflag_list parm.
122 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
123 (output_section_callback_fast): Add sflag_list parm.
124 Add new parm to lang_add_section calls.
125 (output_section_callback): Likewise.
126 (check_section_callback): Add sflag_list parm.
127 (lang_place_orphans): Add new parm to lang_add_section calls.
128 (gc_section_callback): Add sflag_list parm.
129 (find_relro_section_callback): Likewise.
130 * ldlang.h (callback_t): Add flag_info parm.
131 (lang_add_section): Add sflag_list parm.
132 * emultempl/armelf.em (elf32_arm_add_stub_section):
133 Add lang_add_section parm.
134 * emultempl/beos.em (gld*_place_orphan): Likewise.
135 * emultempl/elf32.em (gld*_place_orphan): Likewise.
136 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
137 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
138 * emultempl/mipself.em (mips_add_stub_section): Likewise.
139 * emultempl/mmo.em (mmo_place_orphan): Likewise.
140 * emultempl/pe.em (gld_*_place_orphan): Likewise.
141 * emultempl/pep.em (gld_*_place_orphan): Likewise.
142 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
143 * emultempl/spuelf.em (spu_place_special_section): Likewise.
144 * emultempl/vms.em (vms_place_orphan): Likewise.
146 2012-05-14 Catherine Moore <clm@codesourcery.com>
148 * NEWS: Mention PowerPC VLE port.
150 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
153 * configure.in: Invoke ACX_HEADER_STRING.
154 * configure: Regenerate.
155 * config.in: Regenerate.
156 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
157 string.h and strings.h.
159 2012-05-08 Alan Modra <amodra@gmail.com>
161 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
162 LC and LANG environment vars.
163 * Makefile.in: Regenerate.
165 2012-05-07 Tristan Gingold <gingold@adacore.com>
167 * pe-dll.c (udef_table): Make it static.
169 2012-05-05 Alan Modra <amodra@gmail.com>
171 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
172 (generate_reloc): Use bfd_abs_section_ptr.
174 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
176 * configure.tgt: Support x86_64-*-linux-gnux32.
178 2012-05-03 Sean Keys <skeys@ipdatasys.com>
180 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
182 * Makefile.in: Rebuild.
183 * configure.tgt: Recognize XGATE.
184 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
185 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
186 * NEWS: Mention new support.
188 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
190 Make bfd asserts cause linker errors.
191 * ldmain.c (default_bfd_assert_handler): New variable.
192 (ld_bfd_assert_handler): New function.
193 (main): Call bfd_set_assert_handler.
195 2012-04-24 Alan Modra <amodra@gmail.com>
197 * ldlang.c (size_input_section): Use sec_info_type rather than
198 usrdata->flags.just_syms.
199 * ldwrite.c (build_link_order): Likewise.
200 * emultempl/hppaelf.em (build_section_lists): Likewise.
201 * emultempl/ppc64elf.em (build_toc_list): Likewise.
202 * emultempl/armelf.em (build_section_lists): Likewise.
203 (after_allocation): Update for renamed sec_info_type value.
204 * emultempl/tic6xdsbt.em: Likewise.
206 2012-04-12 Roland McGrath <mcgrathr@google.com>
208 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
209 * emulparams/armelf_nacl.sh: New file.
210 * emulparams/armelfb_nacl.sh: New file.
211 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
212 and earmelfb_nacl.c here.
213 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
214 * Makefile.in: Regenerated.
216 2012-04-11 Tristan Gingold <gingold@adacore.com>
218 * scripttempl/ia64vms.sc: New file.
219 * emultempl/vms.em (_before_parse): Support for ia64.
220 (elf64-ia64-vms): New fragment for ia64.
221 * emulparams/elf64_ia64_vms.sh: New file.
222 * configure.tgt (ia64-*-*vms*): Add.
223 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
224 (eelf64_ia64_vms.c): New rule.
225 * Makefile.in: Regenerate.
227 2012-04-06 Roland McGrath <mcgrathr@google.com>
229 * configure.in (AC_CHECK_HEADERS): Add locale.h.
230 * config.in: Regenerate.
231 * configure: Regenerate.
233 2012-04-05 Nick Clifton <nickc@redhat.com>
235 * configure.in (AC_CHECK_FUNCS): Add setlocale.
236 (AM_LC_MESSAGES): Add.
237 * aclocal.m4: Regenerate.
238 * config.in: Regenerate.
239 * configure: Regenerate.
241 2012-04-03 Roland McGrath <mcgrathr@google.com>
243 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
244 * emulparams/elf_nacl.sh: New file.
245 * emulparams/elf_i386_nacl.sh: New file.
246 * emulparams/elf32_x86_64_nacl.sh: New file.
247 * emulparams/elf_x86_64_nacl.sh: New file.
248 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
249 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
250 eelf_x86_64_nacl.c here.
251 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
253 * Makefile.in: Regenerated.
255 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
257 2012-04-02 Mike Frysinger <vapier@gentoo.org>
259 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
260 putc call. If str and fmt are different, call fwrite on
263 2012-03-30 Nick Clifton <nickc@redhat.com>
265 * po/vi.po: Updated Vietnamese translation.
267 2012-03-27 Roland McGrath <mcgrathr@google.com>
269 * configure.in: Set want64 on a 64-bit host regardless of
270 --enable-targets=all.
271 * configure: Regenerated.
273 2012-03-26 Tristan Gingold <gingold@adacore.com>
275 * lexsup.c (parse_args): Add a missing '\n'.
277 2012-03-25 Alan Modra <amodra@gmail.com>
279 * ldemul.c (before_allocation_default): Revert last change.
280 * ldlang.c (lang_add_section): Likewise.
281 (strip_excluded_output_sections): Don't strip output sections with
282 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
284 2012-03-23 Alan Modra <amodra@gmail.com>
286 * ldemul.c (before_allocation_default): When emitrelocations,
287 don't strip sections..
288 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
290 2012-03-14 Kai Tietz <ktietz@redhat.com>
291 Pascal Obry <pascal@obry.net>
293 * pe-dll.c (found_sym): New static variable.
294 (undef_count): Likewise.
295 (key_value): New structure.
296 (undef_sort_cmp): Compare routine for qsort/bsearch.
297 (pe_find_cdecl_alias_match): Add new argument.
298 (pe_undef_alias_cdecl_match): Removed.
299 (pe_undef_count): New helper routine.
300 (pe_create_undef_table): Likewise.
301 (pe_process_import_defs): Use pe_create_undef_table and
302 new pe_undef_alias_cdecl_match function.
304 2012-03-14 Alan Modra <amodra@gmail.com>
307 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
309 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
310 discarding result, for side effects. Fix typo in error message.
312 2012-03-08 Tristan Gingold <gingold@adacore.com>
314 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
315 (exp_print_token): Constify.
317 2012-03-08 Alan Modra <amodra@gmail.com>
320 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
321 (ldfile_add_library_path): Don't set sysrooted flag.
322 (ldfile_open_file_search): Likewise, and don't copy them.
323 (try_open): Delete exten and code handling such. Add sysrooted
324 param and return whether path is in sysroot.
325 (ldfile_find_command_file): Delete extend param. Add sysrooted
326 param. Rename local var. Update try_open calls.
327 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
328 * ldfile.h (search_dirs_type): Remove sysrooted field.
329 * ldlang.c (new_afile): Always set sysrooted from input_flags.
330 (load_symbols): Don't set input_flags.sysrooted.
331 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
333 * ldlex.h (lex_push_file): Update prototype.
334 * ldlex.l (sysrooted_stack): New array.
335 (EOF): Pop input_flags.sysrooted.
336 (lex_push_file): Add sysrooted param. Save and set
337 input_flags.sysrooted.
339 2012-03-06 Alan Modra <amodra@gmail.com>
341 * ldlang.h (struct lang_input_statement_flags): New, extract from..
342 (lang_input_statement_type): ..here. New field "flags".
343 (input_flags): Declare.
344 (missing_file): Delete.
345 * ldmain.h (whole_archive): Delete.
346 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
347 * ld.h (ld_config_type <dynamic_link>): Delete.
348 * ldmain.c (whole_archive): Delete.
349 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
350 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
351 (input_flags): New variable. Replace all uses of config.dynamic_link,
352 missing_file, ldlang_sysrooted_script, whole_archive,
353 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
355 * ldfile.c: Likewise.
356 * ldgram.y: Likewise.
357 * ldmain.c: Likewise.
358 * ldwrite.c: Likewise.
359 * lexsup.c: Likewise.
360 * plugin.c: Likewise.
361 * emultempl/aix.em: Likewise.
362 * emultempl/armelf.em: Likewise.
363 * emultempl/elf32.em: Likewise.
364 * emultempl/hppaelf.em: Likewise.
365 * emultempl/linux.em: Likewise.
366 * emultempl/pe.em: Likewise.
367 * emultempl/pep.em: Likewise.
368 * emultempl/ppc64elf.em: Likewise.
369 * emultempl/scoreelf.em: Likewise.
370 * emultempl/spuelf.em: Likewise.
371 * emultempl/sunos.em: Likewise.
372 * emultempl/vms.em: Likewise.
373 * ldlang.c (new_afile): Use memset to init zero fields.
374 (load_symbols): Simplify save and restore of flags around command
376 * ldfile.c (is_sysrooted_pathname): Tidy.
378 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
380 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
381 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
382 replacing trailing "-*" with "*".
384 2012-02-25 Walter Lee <walt@tilera.com>
386 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
387 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
388 (eelf32tilegx_be.c): Add rule to build this file.
389 (eelf64tilegx_be.c): Ditto.
390 * Makefile.in: Regenerate.
391 * configure.tgt (tilegx-*-*): Support big endian.
393 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
394 (BIG_OUTPUT_FORMAT): Define.
395 (LITTLE_OUTPUT_FORMAT): Define.
396 * emulparams/elf32tilegx_be.sh: New.
397 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
398 (BIG_OUTPUT_FORMAT): Define.
399 (LITTLE_OUTPUT_FORMAT): Define.
400 * emulparams/elf64tilegx_be.sh: New.
402 2012-02-24 Kai Tietz <ktietz@redhat.com>
405 * deffilep.y (keyword_as_name): Disable LIBRARY
408 2012-02-22 Alan Modra <amodra@gmail.com>
411 * ldlang.c (lang_process): Rerun lang_do_assignments before
412 starting garbage collection.
413 * ldexp.c (fold_name): Generate a reloc for defined symbols
414 found without an associated output section during the mark phase.
415 (exp_fold_tree_1): Continue processing an expression, even if we
416 are unable to fold it, if we are in the first two evaluation
418 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
420 2012-02-19 Kai Tietz <ktietz@redhat.com>
422 * deffilep.y (cmp_import_elem): Sort first by module name.
423 * pe-dll.c (process_def_file_and_drectve): Free strings
424 from removed export-element.
425 (add_bfd_to_link): Optimize loop on import-elements and lower
427 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
430 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
432 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
433 temporary variable node used for NULL argument.
435 2012-02-18 Alan Modra <amodra@gmail.com>
438 * ld.h (parsing_defsym): Delete.
439 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
440 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
441 exp_get_abs_int): Add tree arg for %S in error messages. Don't
443 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
444 type.filename from sub-tree.
445 (exp_trinop): Likewise, and use "cond" rather than "lhs".
446 * ldexp.h (node_type): Add filename field to struct.
447 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
448 * ldfile.h (ldfile_input_filename): Delete.
449 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
450 %S in error messages.
451 * ldemul.c (syslib_default, hll_default): Likewise.
452 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
453 lang_get_regions, lang_new_phdr): Likewise.
454 (lang_size_sections_1): Pass addr_tree for %S.
455 * ldlex.h (lex_redirect): Update prototype.
456 (ldlex_filename): Declare.
457 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
458 (lex_redirect): Add fake_filename and count params. Push
459 fake_filename to file_name_stack and init lineno from count.
460 (ldlex_filename): New function.
461 (lex_warn_invalid): Use above.
462 * ldmain.c (main): Update lex_redirect call.
463 * ldmisc.c (vfinfo <%S>): Take file name and line number from
464 etree_type arg, or use current if arg is NULL.
465 * lexsup.c (parsing_defsym): Delete.
466 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
468 2012-02-13 Kai Tietz <ktietz@redhat.com>
470 * deffilep.y (find_export_in_list): Set is_indent for
471 first or last element, if identical.
472 (find_import_in_list): Likewise.
474 2012-02-11 Kai Tietz <ktietz@redhat.com>
476 * deffilep.y (%union): New type id_const.
477 (opt_name2): New rule.
478 (keyword_as_name): New rule.
479 (dot_name): Replaced by opt_name2 rule.
480 (opt_name): Adjust rule.
481 (opt_equal_name): Likewise.
483 2012-02-11 Pascal Obry <pascal@obry.net>
485 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
487 (process_def_file_and_drectve): Maintain sorting of exports table
488 after stripping leading @ signs.
490 2012-02-09 Alan Modra <amodra@gmail.com>
492 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
494 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
497 * emulparams/elf32_x86_64.sh: Remove NOP.
498 * emulparams/elf_i386.sh: Likewise.
499 * emulparams/elf_i386_be.sh: Likewise.
500 * emulparams/elf_i386_ldso.sh: Likewise.
501 * emulparams/elf_i386_vxworks.sh: Likewise.
502 * emulparams/elf_k1om.sh: Likewise.
503 * emulparams/elf_l1om.sh: Likewise.
504 * emulparams/elf_x86_64.sh: Likewise.
506 * ldlang.c (zero_fill): Initialized to 0.
508 * ldwrite.c (build_link_order): Set data size to linker odrder
509 size when they are the same.
511 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
513 2012-01-17 Alan Modra <amodra@gmail.com>
515 * ldver.c (ldversion): Update copyright message year.
517 2012-01-15 Alan Modra <amodra@gmail.com>
520 * ldlang.c (lang_process): Don't reopen all files, just those
521 newly added by plugin.
523 2012-01-11 Alan Modra <amodra@gmail.com>
525 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
526 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
527 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
529 (plt_thread_safe, plt_stub_align): New vars.
530 (gld${EMULATION_NAME}_after_allocation): Pass them to
531 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
532 * ld.texinfo: Document new command line options, and an old
535 2012-01-09 Roland McGrath <mcgrathr@google.com>
537 * configure.in: Use AM_ZLIB.
538 * configure: Regenerated.
540 For older changes see ChangeLog-2011
546 version-control: never