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