1 2012-05-25 Alan Modra <amodra@gmail.com>
4 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle
5 multiple .eh_frame sections attached to bfd.
7 2012-05-23 Cary Coutant <ccoutant@google.com>
9 * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more
10 carefully. Fix typo where .rela.data.rel.ro matches
12 * scripttempl/mep.sc: Likewise.
13 * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully.
14 * scripttempl/elf64hppa.sc: Likewise.
15 * scripttempl/elfxtensa.sc: Likewise.
17 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
18 Nick Clifton <nickc@redhat.com>
21 * configure.in: Add check that sysdep.h has been included before
22 any system header files.
23 * configure: Regenerate.
24 * config.in: Regenerate.
25 * sysdep.h: Generate an error if included before config.h.
27 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
29 * emultempl/m68hc1xelf.em (hook_in_stub): Pass proper `bfd'
30 as the first argument for `bfd_get_section_name'.
32 2012-05-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
35 * emultempl/elf32.em: Include *-*-gnu* targets in ld.so.conf
38 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
40 * NEWS: Mention the support for S12X processors.
42 2012-05-14 James Lemke <jwlemke@codesourcery.com>
44 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
46 (walk_wild_section_general): Pass section_flag_list to callback.
47 (lang_add_section): Add sflag_list parm.
48 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
49 (output_section_callback_fast): Add sflag_list parm.
50 Add new parm to lang_add_section calls.
51 (output_section_callback): Likewise.
52 (check_section_callback): Add sflag_list parm.
53 (lang_place_orphans): Add new parm to lang_add_section calls.
54 (gc_section_callback): Add sflag_list parm.
55 (find_relro_section_callback): Likewise.
56 * ldlang.h (callback_t): Add flag_info parm.
57 (lang_add_section): Add sflag_list parm.
58 * emultempl/armelf.em (elf32_arm_add_stub_section):
59 Add lang_add_section parm.
60 * emultempl/beos.em (gld*_place_orphan): Likewise.
61 * emultempl/elf32.em (gld*_place_orphan): Likewise.
62 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
63 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
64 * emultempl/mipself.em (mips_add_stub_section): Likewise.
65 * emultempl/mmo.em (mmo_place_orphan): Likewise.
66 * emultempl/pe.em (gld_*_place_orphan): Likewise.
67 * emultempl/pep.em (gld_*_place_orphan): Likewise.
68 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
69 * emultempl/spuelf.em (spu_place_special_section): Likewise.
70 * emultempl/vms.em (vms_place_orphan): Likewise.
72 2012-05-14 Catherine Moore <clm@codesourcery.com>
74 * NEWS: Mention PowerPC VLE port.
76 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
79 * configure.in: Invoke ACX_HEADER_STRING.
80 * configure: Regenerate.
81 * config.in: Regenerate.
82 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
83 string.h and strings.h.
85 2012-05-08 Alan Modra <amodra@gmail.com>
87 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
88 LC and LANG environment vars.
89 * Makefile.in: Regenerate.
91 2012-05-07 Tristan Gingold <gingold@adacore.com>
93 * pe-dll.c (udef_table): Make it static.
95 2012-05-05 Alan Modra <amodra@gmail.com>
97 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
98 (generate_reloc): Use bfd_abs_section_ptr.
100 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
102 * configure.tgt: Support x86_64-*-linux-gnux32.
104 2012-05-03 Sean Keys <skeys@ipdatasys.com>
106 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
108 * Makefile.in: Rebuild.
109 * configure.tgt: Recognize XGATE.
110 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
111 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
112 * NEWS: Mention new support.
114 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
116 Make bfd asserts cause linker errors.
117 * ldmain.c (default_bfd_assert_handler): New variable.
118 (ld_bfd_assert_handler): New function.
119 (main): Call bfd_set_assert_handler.
121 2012-04-24 Alan Modra <amodra@gmail.com>
123 * ldlang.c (size_input_section): Use sec_info_type rather than
124 usrdata->flags.just_syms.
125 * ldwrite.c (build_link_order): Likewise.
126 * emultempl/hppaelf.em (build_section_lists): Likewise.
127 * emultempl/ppc64elf.em (build_toc_list): Likewise.
128 * emultempl/armelf.em (build_section_lists): Likewise.
129 (after_allocation): Update for renamed sec_info_type value.
130 * emultempl/tic6xdsbt.em: Likewise.
132 2012-04-12 Roland McGrath <mcgrathr@google.com>
134 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
135 * emulparams/armelf_nacl.sh: New file.
136 * emulparams/armelfb_nacl.sh: New file.
137 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
138 and earmelfb_nacl.c here.
139 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
140 * Makefile.in: Regenerated.
142 2012-04-11 Tristan Gingold <gingold@adacore.com>
144 * scripttempl/ia64vms.sc: New file.
145 * emultempl/vms.em (_before_parse): Support for ia64.
146 (elf64-ia64-vms): New fragment for ia64.
147 * emulparams/elf64_ia64_vms.sh: New file.
148 * configure.tgt (ia64-*-*vms*): Add.
149 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
150 (eelf64_ia64_vms.c): New rule.
151 * Makefile.in: Regenerate.
153 2012-04-06 Roland McGrath <mcgrathr@google.com>
155 * configure.in (AC_CHECK_HEADERS): Add locale.h.
156 * config.in: Regenerate.
157 * configure: Regenerate.
159 2012-04-05 Nick Clifton <nickc@redhat.com>
161 * configure.in (AC_CHECK_FUNCS): Add setlocale.
162 (AM_LC_MESSAGES): Add.
163 * aclocal.m4: Regenerate.
164 * config.in: Regenerate.
165 * configure: Regenerate.
167 2012-04-03 Roland McGrath <mcgrathr@google.com>
169 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
170 * emulparams/elf_nacl.sh: New file.
171 * emulparams/elf_i386_nacl.sh: New file.
172 * emulparams/elf32_x86_64_nacl.sh: New file.
173 * emulparams/elf_x86_64_nacl.sh: New file.
174 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
175 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
176 eelf_x86_64_nacl.c here.
177 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
179 * Makefile.in: Regenerated.
181 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
183 2012-04-02 Mike Frysinger <vapier@gentoo.org>
185 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
186 putc call. If str and fmt are different, call fwrite on
189 2012-03-30 Nick Clifton <nickc@redhat.com>
191 * po/vi.po: Updated Vietnamese translation.
193 2012-03-27 Roland McGrath <mcgrathr@google.com>
195 * configure.in: Set want64 on a 64-bit host regardless of
196 --enable-targets=all.
197 * configure: Regenerated.
199 2012-03-26 Tristan Gingold <gingold@adacore.com>
201 * lexsup.c (parse_args): Add a missing '\n'.
203 2012-03-25 Alan Modra <amodra@gmail.com>
205 * ldemul.c (before_allocation_default): Revert last change.
206 * ldlang.c (lang_add_section): Likewise.
207 (strip_excluded_output_sections): Don't strip output sections with
208 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
210 2012-03-23 Alan Modra <amodra@gmail.com>
212 * ldemul.c (before_allocation_default): When emitrelocations,
213 don't strip sections..
214 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
216 2012-03-14 Kai Tietz <ktietz@redhat.com>
217 Pascal Obry <pascal@obry.net>
219 * pe-dll.c (found_sym): New static variable.
220 (undef_count): Likewise.
221 (key_value): New structure.
222 (undef_sort_cmp): Compare routine for qsort/bsearch.
223 (pe_find_cdecl_alias_match): Add new argument.
224 (pe_undef_alias_cdecl_match): Removed.
225 (pe_undef_count): New helper routine.
226 (pe_create_undef_table): Likewise.
227 (pe_process_import_defs): Use pe_create_undef_table and
228 new pe_undef_alias_cdecl_match function.
230 2012-03-14 Alan Modra <amodra@gmail.com>
233 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
235 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
236 discarding result, for side effects. Fix typo in error message.
238 2012-03-08 Tristan Gingold <gingold@adacore.com>
240 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
241 (exp_print_token): Constify.
243 2012-03-08 Alan Modra <amodra@gmail.com>
246 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
247 (ldfile_add_library_path): Don't set sysrooted flag.
248 (ldfile_open_file_search): Likewise, and don't copy them.
249 (try_open): Delete exten and code handling such. Add sysrooted
250 param and return whether path is in sysroot.
251 (ldfile_find_command_file): Delete extend param. Add sysrooted
252 param. Rename local var. Update try_open calls.
253 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
254 * ldfile.h (search_dirs_type): Remove sysrooted field.
255 * ldlang.c (new_afile): Always set sysrooted from input_flags.
256 (load_symbols): Don't set input_flags.sysrooted.
257 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
259 * ldlex.h (lex_push_file): Update prototype.
260 * ldlex.l (sysrooted_stack): New array.
261 (EOF): Pop input_flags.sysrooted.
262 (lex_push_file): Add sysrooted param. Save and set
263 input_flags.sysrooted.
265 2012-03-06 Alan Modra <amodra@gmail.com>
267 * ldlang.h (struct lang_input_statement_flags): New, extract from..
268 (lang_input_statement_type): ..here. New field "flags".
269 (input_flags): Declare.
270 (missing_file): Delete.
271 * ldmain.h (whole_archive): Delete.
272 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
273 * ld.h (ld_config_type <dynamic_link>): Delete.
274 * ldmain.c (whole_archive): Delete.
275 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
276 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
277 (input_flags): New variable. Replace all uses of config.dynamic_link,
278 missing_file, ldlang_sysrooted_script, whole_archive,
279 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
281 * ldfile.c: Likewise.
282 * ldgram.y: Likewise.
283 * ldmain.c: Likewise.
284 * ldwrite.c: Likewise.
285 * lexsup.c: Likewise.
286 * plugin.c: Likewise.
287 * emultempl/aix.em: Likewise.
288 * emultempl/armelf.em: Likewise.
289 * emultempl/elf32.em: Likewise.
290 * emultempl/hppaelf.em: Likewise.
291 * emultempl/linux.em: Likewise.
292 * emultempl/pe.em: Likewise.
293 * emultempl/pep.em: Likewise.
294 * emultempl/ppc64elf.em: Likewise.
295 * emultempl/scoreelf.em: Likewise.
296 * emultempl/spuelf.em: Likewise.
297 * emultempl/sunos.em: Likewise.
298 * emultempl/vms.em: Likewise.
299 * ldlang.c (new_afile): Use memset to init zero fields.
300 (load_symbols): Simplify save and restore of flags around command
302 * ldfile.c (is_sysrooted_pathname): Tidy.
304 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
306 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
307 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
308 replacing trailing "-*" with "*".
310 2012-02-25 Walter Lee <walt@tilera.com>
312 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
313 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
314 (eelf32tilegx_be.c): Add rule to build this file.
315 (eelf64tilegx_be.c): Ditto.
316 * Makefile.in: Regenerate.
317 * configure.tgt (tilegx-*-*): Support big endian.
319 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
320 (BIG_OUTPUT_FORMAT): Define.
321 (LITTLE_OUTPUT_FORMAT): Define.
322 * emulparams/elf32tilegx_be.sh: New.
323 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
324 (BIG_OUTPUT_FORMAT): Define.
325 (LITTLE_OUTPUT_FORMAT): Define.
326 * emulparams/elf64tilegx_be.sh: New.
328 2012-02-24 Kai Tietz <ktietz@redhat.com>
331 * deffilep.y (keyword_as_name): Disable LIBRARY
334 2012-02-22 Alan Modra <amodra@gmail.com>
337 * ldlang.c (lang_process): Rerun lang_do_assignments before
338 starting garbage collection.
339 * ldexp.c (fold_name): Generate a reloc for defined symbols
340 found without an associated output section during the mark phase.
341 (exp_fold_tree_1): Continue processing an expression, even if we
342 are unable to fold it, if we are in the first two evaluation
344 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
346 2012-02-19 Kai Tietz <ktietz@redhat.com>
348 * deffilep.y (cmp_import_elem): Sort first by module name.
349 * pe-dll.c (process_def_file_and_drectve): Free strings
350 from removed export-element.
351 (add_bfd_to_link): Optimize loop on import-elements and lower
353 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
356 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
358 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
359 temporary variable node used for NULL argument.
361 2012-02-18 Alan Modra <amodra@gmail.com>
364 * ld.h (parsing_defsym): Delete.
365 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
366 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
367 exp_get_abs_int): Add tree arg for %S in error messages. Don't
369 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
370 type.filename from sub-tree.
371 (exp_trinop): Likewise, and use "cond" rather than "lhs".
372 * ldexp.h (node_type): Add filename field to struct.
373 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
374 * ldfile.h (ldfile_input_filename): Delete.
375 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
376 %S in error messages.
377 * ldemul.c (syslib_default, hll_default): Likewise.
378 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
379 lang_get_regions, lang_new_phdr): Likewise.
380 (lang_size_sections_1): Pass addr_tree for %S.
381 * ldlex.h (lex_redirect): Update prototype.
382 (ldlex_filename): Declare.
383 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
384 (lex_redirect): Add fake_filename and count params. Push
385 fake_filename to file_name_stack and init lineno from count.
386 (ldlex_filename): New function.
387 (lex_warn_invalid): Use above.
388 * ldmain.c (main): Update lex_redirect call.
389 * ldmisc.c (vfinfo <%S>): Take file name and line number from
390 etree_type arg, or use current if arg is NULL.
391 * lexsup.c (parsing_defsym): Delete.
392 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
394 2012-02-13 Kai Tietz <ktietz@redhat.com>
396 * deffilep.y (find_export_in_list): Set is_indent for
397 first or last element, if identical.
398 (find_import_in_list): Likewise.
400 2012-02-11 Kai Tietz <ktietz@redhat.com>
402 * deffilep.y (%union): New type id_const.
403 (opt_name2): New rule.
404 (keyword_as_name): New rule.
405 (dot_name): Replaced by opt_name2 rule.
406 (opt_name): Adjust rule.
407 (opt_equal_name): Likewise.
409 2012-02-11 Pascal Obry <pascal@obry.net>
411 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
413 (process_def_file_and_drectve): Maintain sorting of exports table
414 after stripping leading @ signs.
416 2012-02-09 Alan Modra <amodra@gmail.com>
418 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
420 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
423 * emulparams/elf32_x86_64.sh: Remove NOP.
424 * emulparams/elf_i386.sh: Likewise.
425 * emulparams/elf_i386_be.sh: Likewise.
426 * emulparams/elf_i386_ldso.sh: Likewise.
427 * emulparams/elf_i386_vxworks.sh: Likewise.
428 * emulparams/elf_k1om.sh: Likewise.
429 * emulparams/elf_l1om.sh: Likewise.
430 * emulparams/elf_x86_64.sh: Likewise.
432 * ldlang.c (zero_fill): Initialized to 0.
434 * ldwrite.c (build_link_order): Set data size to linker odrder
435 size when they are the same.
437 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
439 2012-01-17 Alan Modra <amodra@gmail.com>
441 * ldver.c (ldversion): Update copyright message year.
443 2012-01-15 Alan Modra <amodra@gmail.com>
446 * ldlang.c (lang_process): Don't reopen all files, just those
447 newly added by plugin.
449 2012-01-11 Alan Modra <amodra@gmail.com>
451 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
452 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
453 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
455 (plt_thread_safe, plt_stub_align): New vars.
456 (gld${EMULATION_NAME}_after_allocation): Pass them to
457 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
458 * ld.texinfo: Document new command line options, and an old
461 2012-01-09 Roland McGrath <mcgrathr@google.com>
463 * configure.in: Use AM_ZLIB.
464 * configure: Regenerated.
466 For older changes see ChangeLog-2011
472 version-control: never