1 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
3 Make bfd asserts cause linker errors.
4 * ldmain.c (default_bfd_assert_handler): New variable.
5 (ld_bfd_assert_handler): New function.
6 (main): Call bfd_set_assert_handler.
8 2012-04-24 Alan Modra <amodra@gmail.com>
10 * ld/ldlang.c (size_input_section): Use sec_info_type rather than
11 usrdata->flags.just_syms.
12 * ld/ldwrite.c (build_link_order): Likewise.
13 * ld/emultempl/hppaelf.em (build_section_lists): Likewise.
14 * ld/emultempl/ppc64elf.em (build_toc_list): Likewise.
15 * ld/emultempl/armelf.em (build_section_lists): Likewise.
16 (after_allocation): Update for renamed sec_info_type value.
17 * ld/emultempl/tic6xdsbt.em: Likewise.
19 2012-04-12 Roland McGrath <mcgrathr@google.com>
21 * configure.tgt (arm*-*-nacl*, arm*b-*-nacl*): Handle them.
22 * emulparams/armelf_nacl.sh: New file.
23 * emulparams/armelfb_nacl.sh: New file.
24 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelf_nacl.c
25 and earmelfb_nacl.c here.
26 (earmelf_nacl.c, earmelfb_nacl.c): New targets.
27 * Makefile.in: Regenerated.
29 2012-04-11 Tristan Gingold <gingold@adacore.com>
31 * scripttempl/ia64vms.sc: New file.
32 * emultempl/vms.em (_before_parse): Support for ia64.
33 (elf64-ia64-vms): New fragment for ia64.
34 * emulparams/elf64_ia64_vms.sh: New file.
35 * configure.tgt (ia64-*-*vms*): Add.
36 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
37 (eelf64_ia64_vms.c): New rule.
38 * Makefile.in: Regenerate.
40 2012-04-06 Roland McGrath <mcgrathr@google.com>
42 * configure.in (AC_CHECK_HEADERS): Add locale.h.
43 * config.in: Regenerate.
44 * configure: Regenerate.
46 2012-04-05 Nick Clifton <nickc@redhat.com>
48 * configure.in (AC_CHECK_FUNCS): Add setlocale.
49 (AM_LC_MESSAGES): Add.
50 * aclocal.m4: Regenerate.
51 * config.in: Regenerate.
52 * configure: Regenerate.
54 2012-04-03 Roland McGrath <mcgrathr@google.com>
56 * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them.
57 * emulparams/elf_nacl.sh: New file.
58 * emulparams/elf_i386_nacl.sh: New file.
59 * emulparams/elf32_x86_64_nacl.sh: New file.
60 * emulparams/elf_x86_64_nacl.sh: New file.
61 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf_i386_nacl.c here.
62 (ALL_64_EMULATION_SOURCES): Add eelf32_x86_64_nacl.c and
63 eelf_x86_64_nacl.c here.
64 (eelf_i386_nacl.c, eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c):
66 * Makefile.in: Regenerated.
68 * scripttempl/elf.sc: Handle SEPARATE_CODE cases.
70 2012-04-02 Mike Frysinger <vapier@gentoo.org>
72 * ldmisc.c (vfinfo): Assign new local str to fmt. Delete
73 putc call. If str and fmt are different, call fwrite on
76 2012-03-30 Nick Clifton <nickc@redhat.com>
78 * po/vi.po: Updated Vietnamese translation.
80 2012-03-27 Roland McGrath <mcgrathr@google.com>
82 * configure.in: Set want64 on a 64-bit host regardless of
84 * configure: Regenerated.
86 2012-03-26 Tristan Gingold <gingold@adacore.com>
88 * lexsup.c (parse_args): Add a missing '\n'.
90 2012-03-25 Alan Modra <amodra@gmail.com>
92 * ldemul.c (before_allocation_default): Revert last change.
93 ldlang.c (lang_add_section): Likewise.
94 (strip_excluded_output_sections): Don't strip output sections with
95 user input sections when emitrelocations, unless all are SEC_EXCLUDE.
97 2012-03-23 Alan Modra <amodra@gmail.com>
99 * ldemul.c (before_allocation_default): When emitrelocations,
100 don't strip sections..
101 * ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.
103 2012-03-14 Kai Tietz <ktietz@redhat.com>
104 Pascal Obry <pascal@obry.net>
106 * pe-dll.c (found_sym): New static variable.
107 (undef_count): Likewise.
108 (key_value): New structure.
109 (undef_sort_cmp): Compare routine for qsort/bsearch.
110 (pe_find_cdecl_alias_match): Add new argument.
111 (pe_undef_alias_cdecl_match): Removed.
112 (pe_undef_count): New helper routine.
113 (pe_create_undef_table): Likewise.
114 (pe_process_import_defs): Use pe_create_undef_table and
115 new pe_undef_alias_cdecl_match function.
117 2012-03-14 Alan Modra <amodra@gmail.com>
120 * ldexp.c (fold_name): Ignore undefined symbols when assigning to
122 (exp_fold_tree_1): Evaluate assignment to dot expressions even when
123 discarding result, for side effects. Fix typo in error message.
125 2012-03-08 Tristan Gingold <gingold@adacore.com>
127 * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
128 (exp_print_token): Constify.
130 2012-03-08 Alan Modra <amodra@gmail.com>
133 * ldfile.c (is_sysrooted_pathname): Remove notsame param.
134 (ldfile_add_library_path): Don't set sysrooted flag.
135 (ldfile_open_file_search): Likewise, and don't copy them.
136 (try_open): Delete exten and code handling such. Add sysrooted
137 param and return whether path is in sysroot.
138 (ldfile_find_command_file): Delete extend param. Add sysrooted
139 param. Rename local var. Update try_open calls.
140 (ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
141 * ldfile.h (search_dirs_type): Remove sysrooted field.
142 * ldlang.c (new_afile): Always set sysrooted from input_flags.
143 (load_symbols): Don't set input_flags.sysrooted.
144 * ldlang.h (struct lang_input_statement_flags): Revise sysrooted
146 * ldlex.h (lex_push_file): Update prototype.
147 * ldlex.l (sysrooted_stack): New array.
148 (EOF): Pop input_flags.sysrooted.
149 (lex_push_file): Add sysrooted param. Save and set
150 input_flags.sysrooted.
152 2012-03-06 Alan Modra <amodra@gmail.com>
154 * ldlang.h (struct lang_input_statement_flags): New, extract from..
155 (lang_input_statement_type): ..here. New field "flags".
156 (input_flags): Declare.
157 (missing_file): Delete.
158 * ldmain.h (whole_archive): Delete.
159 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
160 * ld.h (ld_config_type <dynamic_link>): Delete.
161 * ldmain.c (whole_archive): Delete.
162 (add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
163 * ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
164 (input_flags): New variable. Replace all uses of config.dynamic_link,
165 missing_file, ldlang_sysrooted_script, whole_archive,
166 add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
168 * ldfile.c: Likewise.
169 * ldgram.y: Likewise.
170 * ldmain.c: Likewise.
171 * ldwrite.c: Likewise.
172 * lexsup.c: Likewise.
173 * plugin.c: Likewise.
174 * emultempl/aix.em: Likewise.
175 * emultempl/armelf.em: Likewise.
176 * emultempl/elf32.em: Likewise.
177 * emultempl/hppaelf.em: Likewise.
178 * emultempl/linux.em: Likewise.
179 * emultempl/pe.em: Likewise.
180 * emultempl/pep.em: Likewise.
181 * emultempl/ppc64elf.em: Likewise.
182 * emultempl/scoreelf.em: Likewise.
183 * emultempl/spuelf.em: Likewise.
184 * emultempl/sunos.em: Likewise.
185 * emultempl/vms.em: Likewise.
186 * ldlang.c (new_afile): Use memset to init zero fields.
187 (load_symbols): Simplify save and restore of flags around command
189 * ldfile.c (is_sysrooted_pathname): Tidy.
191 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
193 * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
194 (mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
195 replacing trailing "-*" with "*".
197 2012-02-25 Walter Lee <walt@tilera.com>
199 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
200 (ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
201 (eelf32tilegx_be.c): Add rule to build this file.
202 (eelf64tilegx_be.c): Ditto.
203 * Makefile.in: Regenerate.
204 * configure.tgt (tilegx-*-*): Support big endian.
206 * emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
207 (BIG_OUTPUT_FORMAT): Define.
208 (LITTLE_OUTPUT_FORMAT): Define.
209 * emulparams/elf32tilegx_be.sh: New.
210 * emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
211 (BIG_OUTPUT_FORMAT): Define.
212 (LITTLE_OUTPUT_FORMAT): Define.
213 * emulparams/elf64tilegx_be.sh: New.
215 2012-02-24 Kai Tietz <ktietz@redhat.com>
218 * deffilep.y (keyword_as_name): Disable LIBRARY
221 2012-02-22 Alan Modra <amodra@gmail.com>
224 * ldlang.c (lang_process): Rerun lang_do_assignments before
225 starting garbage collection.
226 * ldexp.c (fold_name): Generate a reloc for defined symbols
227 found without an associated output section during the mark phase.
228 (exp_fold_tree_1): Continue processing an expression, even if we
229 are unable to fold it, if we are in the first two evaluation
231 * ldexp.h (enum lang_phase_type): Add descriptions of the phases.
233 2012-02-19 Kai Tietz <ktietz@redhat.com>
235 * deffilep.y (cmp_import_elem): Sort first by module name.
236 * pe-dll.c (process_def_file_and_drectve): Free strings
237 from removed export-element.
238 (add_bfd_to_link): Optimize loop on import-elements and lower
240 (pe_implied_import_dll): Pass NULL instead of 0 for pointer
243 2012-02-18 Hans-Peter Nilsson <hp@axis.com>
245 * ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
246 temporary variable node used for NULL argument.
248 2012-02-18 Alan Modra <amodra@gmail.com>
251 * ld.h (parsing_defsym): Delete.
252 * ldexp.c (exp_intop, exp_bigintop, exp_relop): Set type.filename.
253 (fold_binary, fold_name, exp_fold_tree_1, exp_get_vma, exp_get_fill,
254 exp_get_abs_int): Add tree arg for %S in error messages. Don't
256 (exp_binop, exp_unop, exp_nameop, exp_assop, exp_assert): Copy
257 type.filename from sub-tree.
258 (exp_trinop): Likewise, and use "cond" rather than "lhs".
259 * ldexp.h (node_type): Add filename field to struct.
260 * ldfile.c (ldfile_input_filename): Delete. Remove all refs.
261 * ldfile.h (ldfile_input_filename): Delete.
262 * ldgram.y (phdr_type, phdr_qualifiers, yyerror): Add NULL arg for
263 %S in error messages.
264 * ldemul.c (syslib_default, hll_default): Likewise.
265 * ldlang.c (lang_memory_region_lookup, lang_memory_region_alias,
266 lang_get_regions, lang_new_phdr): Likewise.
267 (lang_size_sections_1): Pass addr_tree for %S.
268 * ldlex.h (lex_redirect): Update prototype.
269 (ldlex_filename): Declare.
270 * ldlex.l (<EOF>): Don't set ldfile_input_filename.
271 (lex_redirect): Add fake_filename and count params. Push
272 fake_filename to file_name_stack and init lineno from count.
273 (ldlex_filename): New function.
274 (lex_warn_invalid): Use above.
275 * ldmain.c (main): Update lex_redirect call.
276 * ldmisc.c (vfinfo <%S>): Take file name and line number from
277 etree_type arg, or use current if arg is NULL.
278 * lexsup.c (parsing_defsym): Delete.
279 (parse_args <OPTION_DEFSYM>): Update lex_redirect call.
281 2012-02-13 Kai Tietz <ktietz@redhat.com>
283 * deffilep.y (find_export_in_list): Set is_indent for
284 first or last element, if identical.
285 (find_import_in_list): Likewise.
287 2012-02-11 Kai Tietz <ktietz@redhat.com>
289 * deffilep.y (%union): New type id_const.
290 (opt_name2): New rule.
291 (keyword_as_name): New rule.
292 (dot_name): Replaced by opt_name2 rule.
293 (opt_name): Adjust rule.
294 (opt_equal_name): Likewise.
296 2012-02-11 Pascal Obry <pascal@obry.net>
298 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
300 (process_def_file_and_drectve): Maintain sorting of exports table
301 after stripping leading @ signs.
303 2012-02-09 Alan Modra <amodra@gmail.com>
305 * ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.
307 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
310 * emulparams/elf32_x86_64.sh: Remove NOP.
311 * emulparams/elf_i386.sh: Likewise.
312 * emulparams/elf_i386_be.sh: Likewise.
313 * emulparams/elf_i386_ldso.sh: Likewise.
314 * emulparams/elf_i386_vxworks.sh: Likewise.
315 * emulparams/elf_k1om.sh: Likewise.
316 * emulparams/elf_l1om.sh: Likewise.
317 * emulparams/elf_x86_64.sh: Likewise.
319 * ldlang.c (zero_fill): Initialized to 0.
321 * ldwrite.c (build_link_order): Set data size to linker odrder
322 size when they are the same.
324 * scripttempl/elf.sc: Don't specify fill if NOP is undefined.
326 2012-01-17 Alan Modra <amodra@gmail.com>
328 * ldver.c (ldversion): Update copyright message year.
330 2012-01-15 Alan Modra <amodra@gmail.com>
333 * ldlang.c (lang_process): Don't reopen all files, just those
334 newly added by plugin.
336 2012-01-11 Alan Modra <amodra@gmail.com>
338 * emultempl/ppc64elf.em (PARSE_AND_LIST_PROLOGUE,
339 PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
340 PARSE_AND_LIST_ARGS_CASES): Handle --{no-,}plt-thread-safe and
342 (plt_thread_safe, plt_stub_align): New vars.
343 (gld${EMULATION_NAME}_after_allocation): Pass them to
344 ppc64_elf_size_stubs. Align stub sections according to plt_stub_align.
345 * ld.texinfo: Document new command line options, and an old
348 2012-01-09 Roland McGrath <mcgrathr@google.com>
350 * configure.in: Use AM_ZLIB.
351 * configure: Regenerated.
353 For older changes see ChangeLog-2011
359 version-control: never