1 2012-05-14 James Lemke <jwlemke@codesourcery.com>
3 * ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
5 (walk_wild_section_general): Pass section_flag_list to callback.
6 (lang_add_section): Add sflag_list parm.
7 Move out logic to keep / omit a section & call bfd_lookup_section_flags.
8 (output_section_callback_fast): Add sflag_list parm.
9 Add new parm to lang_add_section calls.
10 (output_section_callback): Likewise.
11 (check_section_callback): Add sflag_list parm.
12 (lang_place_orphans): Add new parm to lang_add_section calls.
13 (gc_section_callback): Add sflag_list parm.
14 (find_relro_section_callback): Likewise.
15 * ldlang.h (callback_t): Add flag_info parm.
16 (lang_add_section): Add sflag_list parm.
17 * emultempl/armelf.em (elf32_arm_add_stub_section):
18 Add lang_add_section parm.
19 * emultempl/beos.em (gld*_place_orphan): Likewise.
20 * emultempl/elf32.em (gld*_place_orphan): Likewise.
21 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
22 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
23 * emultempl/mipself.em (mips_add_stub_section): Likewise.
24 * emultempl/mmo.em (mmo_place_orphan): Likewise.
25 * emultempl/pe.em (gld_*_place_orphan): Likewise.
26 * emultempl/pep.em (gld_*_place_orphan): Likewise.
27 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
28 * emultempl/spuelf.em (spu_place_special_section): Likewise.
29 * emultempl/vms.em (vms_place_orphan): Likewise.
31 2012-05-14 Catherine Moore <clm@codesourcery.com>
33 * NEWS: Mention PowerPC VLE port.
35 2012-05-11 Daniel Richard G. <skunk@iskunk.org>
38 * configure.in: Invoke ACX_HEADER_STRING.
39 * configure: Regenerate.
40 * config.in: Regenerate.
41 * sysdep.h: If STRINGS_WITH_STRING is defined then include both
42 string.h and strings.h.
44 2012-05-08 Alan Modra <amodra@gmail.com>
46 * Makefile.am (check_DEJAGNU): Export LC_ALL=C in place of other
47 LC and LANG environment vars.
48 * Makefile.in: Regenerate.
50 2012-05-07 Tristan Gingold <gingold@adacore.com>
52 * pe-dll.c (udef_table): Make it static.
54 2012-05-05 Alan Modra <amodra@gmail.com>
56 * pe-dll.c (process_def_file_and_drectve): Use bfd_und_section_ptr.
57 (generate_reloc): Use bfd_abs_section_ptr.
59 2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
61 * configure.tgt: Support x86_64-*-linux-gnux32.
63 2012-05-03 Sean Keys <skeys@ipdatasys.com>
65 * Makefile.am (ALL_EMULATIONS): Added new emulation for XGATE
67 * Makefile.in: Rebuild.
68 * configure.tgt: Recognize XGATE.
69 * scripttempl/elfxgate.sc: New file, mostly cloned from m68hc12.
70 * emulparams/xgateelf: New emulation, mostly cloned from m68hc12.
71 * NEWS: Mention new support.
73 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
75 Make bfd asserts cause linker errors.
76 * ldmain.c (default_bfd_assert_handler): New variable.
77 (ld_bfd_assert_handler): New function.
78 (main): Call bfd_set_assert_handler.
80 2012-04-24 Alan Modra <amodra@gmail.com>
82 * ld/ldlang.c (size_input_section): Use sec_info_type rather than
83 usrdata->flags.just_syms.
84 * ld/ldwrite.c (build_link_order): Likewise.
85 * ld/emultempl/hppaelf.em (build_section_lists): Likewise.
86 * ld/emultempl/ppc64elf.em (build_toc_list): Likewise.
87 * ld/emultempl/armelf.em (build_section_lists): Likewise.
88 (after_allocation): Update for renamed sec_info_type value.
89 * ld/emultempl/tic6xdsbt.em: Likewise.
91 2012-04-12 Roland McGrath <mcgrathr@google.com>
93 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
94 * emulparams/armelf_nacl.sh: New file.
95 * emulparams/armelfb_nacl.sh: New file.
96 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
97 and earmelfb_nacl.c here.
98 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
99 * Makefile.in: Regenerated.
101 2012-04-11 Tristan Gingold <gingold@adacore.com>
103 * scripttempl/ia64vms.sc: New file.
104 * emultempl/vms.em (_before_parse): Support for ia64.
105 (elf64-ia64-vms): New fragment for ia64.
106 * emulparams/elf64_ia64_vms.sh: New file.
107 * configure.tgt (ia64-*-*vms*): Add.
108 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
109 (eelf64_ia64_vms.c): New rule.
110 * Makefile.in: Regenerate.
112 2012-04-06 Roland McGrath <mcgrathr@google.com>
114 * configure.in (AC_CHECK_HEADERS): Add locale.h.
115 * config.in: Regenerate.
116 * configure: Regenerate.
118 2012-04-05 Nick Clifton <nickc@redhat.com>
120 * configure.in (AC_CHECK_FUNCS): Add setlocale.
121 (AM_LC_MESSAGES): Add.
122 * aclocal.m4: Regenerate.
123 * config.in: Regenerate.
124 * configure: Regenerate.
126 2012-04-03 Roland McGrath <mcgrathr@google.com>
128 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
129 * emulparams/elf_nacl.sh: New file.
130 * emulparams/elf_i386_nacl.sh: New file.
131 * emulparams/elf32_x86_64_nacl.sh: New file.
132 * emulparams/elf_x86_64_nacl.sh: New file.
133 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
134 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
135 eelf_x86_64_nacl.c here.
136 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
138 * Makefile.in: Regenerated.
140 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
142 2012-04-02 Mike Frysinger <vapier@gentoo.org>
144 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
145 putc call. If str and fmt are different, call fwrite on
148 2012-03-30 Nick Clifton <nickc@redhat.com>
150 * po/vi.po: Updated Vietnamese translation.
152 2012-03-27 Roland McGrath <mcgrathr@google.com>
154 * configure.in: Set want64 on a 64-bit host regardless of
155 --enable-targets=all.
156 * configure: Regenerated.
158 2012-03-26 Tristan Gingold <gingold@adacore.com>
160 * lexsup.c (parse_args): Add a missing '\n'.
162 2012-03-25 Alan Modra <amodra@gmail.com>
164 * ldemul.c (before_allocation_default): Revert last change.
165 ldlang.c (lang_add_section): Likewise.
166 (strip_excluded_output_sections): Don't strip output sections with
167 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
169 2012-03-23 Alan Modra <amodra@gmail.com>
171 * ldemul.c (before_allocation_default): When emitrelocations,
172 don't strip sections..
173 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
175 2012-03-14 Kai Tietz <ktietz@redhat.com>
176 Pascal Obry <pascal@obry.net>
178 * pe-dll.c (found_sym): New static variable.
179 (undef_count): Likewise.
180 (key_value): New structure.
181 (undef_sort_cmp): Compare routine for qsort/bsearch.
182 (pe_find_cdecl_alias_match): Add new argument.
183 (pe_undef_alias_cdecl_match): Removed.
184 (pe_undef_count): New helper routine.
185 (pe_create_undef_table): Likewise.
186 (pe_process_import_defs): Use pe_create_undef_table and
187 new pe_undef_alias_cdecl_match function.
189 2012-03-14 Alan Modra <amodra@gmail.com>
192 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
194 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
195 discarding result, for side effects. Fix typo in error message.
197 2012-03-08 Tristan Gingold <gingold@adacore.com>
199 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
200 (exp_print_token): Constify.
202 2012-03-08 Alan Modra <amodra@gmail.com>
205 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
206 (ldfile_add_library_path): Don't set sysrooted flag.
207 (ldfile_open_file_search): Likewise, and don't copy them.
208 (try_open): Delete exten and code handling such. Add sysrooted
209 param and return whether path is in sysroot.
210 (ldfile_find_command_file): Delete extend param. Add sysrooted
211 param. Rename local var. Update try_open calls.
212 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
213 * ldfile.h (search_dirs_type): Remove sysrooted field.
214 * ldlang.c (new_afile): Always set sysrooted from input_flags.
215 (load_symbols): Don't set input_flags.sysrooted.
216 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
218 * ldlex.h (lex_push_file): Update prototype.
219 * ldlex.l (sysrooted_stack): New array.
220 (EOF): Pop input_flags.sysrooted.
221 (lex_push_file): Add sysrooted param. Save and set
222 input_flags.sysrooted.
224 2012-03-06 Alan Modra <amodra@gmail.com>
226 * ldlang.h (struct lang_input_statement_flags): New, extract from..
227 (lang_input_statement_type): ..here. New field "flags".
228 (input_flags): Declare.
229 (missing_file): Delete.
230 * ldmain.h (whole_archive): Delete.
231 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
232 * ld.h (ld_config_type <dynamic_link>): Delete.
233 * ldmain.c (whole_archive): Delete.
234 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
235 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
236 (input_flags): New variable. Replace all uses of config.dynamic_link,
237 missing_file, ldlang_sysrooted_script, whole_archive,
238 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
240 * ldfile.c: Likewise.
241 * ldgram.y: Likewise.
242 * ldmain.c: Likewise.
243 * ldwrite.c: Likewise.
244 * lexsup.c: Likewise.
245 * plugin.c: Likewise.
246 * emultempl/aix.em: Likewise.
247 * emultempl/armelf.em: Likewise.
248 * emultempl/elf32.em: Likewise.
249 * emultempl/hppaelf.em: Likewise.
250 * emultempl/linux.em: Likewise.
251 * emultempl/pe.em: Likewise.
252 * emultempl/pep.em: Likewise.
253 * emultempl/ppc64elf.em: Likewise.
254 * emultempl/scoreelf.em: Likewise.
255 * emultempl/spuelf.em: Likewise.
256 * emultempl/sunos.em: Likewise.
257 * emultempl/vms.em: Likewise.
258 * ldlang.c (new_afile): Use memset to init zero fields.
259 (load_symbols): Simplify save and restore of flags around command
261 * ldfile.c (is_sysrooted_pathname): Tidy.
263 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
265 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
266 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
267 replacing trailing "-*" with "*".
269 2012-02-25 Walter Lee <walt@tilera.com>
271 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
272 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
273 (eelf32tilegx_be.c): Add rule to build this file.
274 (eelf64tilegx_be.c): Ditto.
275 * Makefile.in: Regenerate.
276 * configure.tgt (tilegx-*-*): Support big endian.
278 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
279 (BIG_OUTPUT_FORMAT): Define.
280 (LITTLE_OUTPUT_FORMAT): Define.
281 * emulparams/elf32tilegx_be.sh: New.
282 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
283 (BIG_OUTPUT_FORMAT): Define.
284 (LITTLE_OUTPUT_FORMAT): Define.
285 * emulparams/elf64tilegx_be.sh: New.
287 2012-02-24 Kai Tietz <ktietz@redhat.com>
290 * deffilep.y (keyword_as_name): Disable LIBRARY
293 2012-02-22 Alan Modra <amodra@gmail.com>
296 * ldlang.c (lang_process): Rerun lang_do_assignments before
297 starting garbage collection.
298 * ldexp.c (fold_name): Generate a reloc for defined symbols
299 found without an associated output section during the mark phase.
300 (exp_fold_tree_1): Continue processing an expression, even if we
301 are unable to fold it, if we are in the first two evaluation
303 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
305 2012-02-19 Kai Tietz <ktietz@redhat.com>
307 * deffilep.y (cmp_import_elem): Sort first by module name.
308 * pe-dll.c (process_def_file_and_drectve): Free strings
309 from removed export-element.
310 (add_bfd_to_link): Optimize loop on import-elements and lower
312 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
315 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
317 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
318 temporary variable node used for NULL argument.
320 2012-02-18 Alan Modra <amodra@gmail.com>
323 * ld.h (parsing_defsym): Delete.
324 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
325 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
326 exp_get_abs_int): Add tree arg for %S in error messages. Don't
328 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
329 type.filename from sub-tree.
330 (exp_trinop): Likewise, and use "cond" rather than "lhs".
331 * ldexp.h (node_type): Add filename field to struct.
332 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
333 * ldfile.h (ldfile_input_filename): Delete.
334 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
335 %S in error messages.
336 * ldemul.c (syslib_default, hll_default): Likewise.
337 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
338 lang_get_regions, lang_new_phdr): Likewise.
339 (lang_size_sections_1): Pass addr_tree for %S.
340 * ldlex.h (lex_redirect): Update prototype.
341 (ldlex_filename): Declare.
342 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
343 (lex_redirect): Add fake_filename and count params. Push
344 fake_filename to file_name_stack and init lineno from count.
345 (ldlex_filename): New function.
346 (lex_warn_invalid): Use above.
347 * ldmain.c (main): Update lex_redirect call.
348 * ldmisc.c (vfinfo <%S>): Take file name and line number from
349 etree_type arg, or use current if arg is NULL.
350 * lexsup.c (parsing_defsym): Delete.
351 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
353 2012-02-13 Kai Tietz <ktietz@redhat.com>
355 * deffilep.y (find_export_in_list): Set is_indent for
356 first or last element, if identical.
357 (find_import_in_list): Likewise.
359 2012-02-11 Kai Tietz <ktietz@redhat.com>
361 * deffilep.y (%union): New type id_const.
362 (opt_name2): New rule.
363 (keyword_as_name): New rule.
364 (dot_name): Replaced by opt_name2 rule.
365 (opt_name): Adjust rule.
366 (opt_equal_name): Likewise.
368 2012-02-11 Pascal Obry <pascal@obry.net>
370 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
372 (process_def_file_and_drectve): Maintain sorting of exports table
373 after stripping leading @ signs.
375 2012-02-09 Alan Modra <amodra@gmail.com>
377 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
379 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
382 * emulparams/elf32_x86_64.sh: Remove NOP.
383 * emulparams/elf_i386.sh: Likewise.
384 * emulparams/elf_i386_be.sh: Likewise.
385 * emulparams/elf_i386_ldso.sh: Likewise.
386 * emulparams/elf_i386_vxworks.sh: Likewise.
387 * emulparams/elf_k1om.sh: Likewise.
388 * emulparams/elf_l1om.sh: Likewise.
389 * emulparams/elf_x86_64.sh: Likewise.
391 * ldlang.c (zero_fill): Initialized to 0.
393 * ldwrite.c (build_link_order): Set data size to linker odrder
394 size when they are the same.
396 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
398 2012-01-17 Alan Modra <amodra@gmail.com>
400 * ldver.c (ldversion): Update copyright message year.
402 2012-01-15 Alan Modra <amodra@gmail.com>
405 * ldlang.c (lang_process): Don't reopen all files, just those
406 newly added by plugin.
408 2012-01-11 Alan Modra <amodra@gmail.com>
410 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
411 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
412 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
414 (plt_thread_safe, plt_stub_align): New vars.
415 (gld${EMULATION_NAME}_after_allocation): Pass them to
416 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
417 * ld.texinfo: Document new command line options, and an old
420 2012-01-09 Roland McGrath <mcgrathr@google.com>
422 * configure.in: Use AM_ZLIB.
423 * configure: Regenerated.
425 For older changes see ChangeLog-2011
431 version-control: never