1 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
3 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
5 Exclude "_IMPORT_DESCRIPTOR_".
6 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
7 (autofilter_symbollist_generic): Don't check for ".text".
8 Exclude "_NULL_IMPORT_DESCRIPTOR".
9 (autofilter_symbollist_i386): Likewise.
11 2008-07-07 Alan Modra <amodra@bigpond.net.au>
13 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
14 bfd_make_section_with_flags.
15 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
17 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
18 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
19 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
20 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
21 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
22 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
25 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
27 * ld.texinfo (File Commands): Document that INCLUDE can be used in
28 several different places.
29 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
30 (memory, memory_spec_list): Simplify BNF
31 (memory_spec_list_opt): New rule.
32 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
34 2008-06-20 Alan Modra <amodra@bigpond.net.au>
36 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
37 build overlay stubs" a fatal error.
39 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41 * config.in: Regenerate.
42 * configure: Regenerate.
44 2008-06-17 Alan Modra <amodra@bigpond.net.au>
46 * emultempl/spuelf.em (extra_stack_space): New variable.
47 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
48 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
49 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
50 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
51 overlay manager structures.
52 * emultempl/spu_ovl.o: Regenerate.
54 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
56 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
57 mention it as being special for global symbols.
59 2008-06-12 Nick Clifton <nickc@redhat.com>
61 * ldlang.c (print_output_section_statement): If the output section
62 statement has an update_dot_tree expression, apply it to
64 (print_input_section): Do not update print_dot if it would move
66 (lang_do_assignments_1): If the output section statement has an
67 update_dot_tree expression apply it to dot.
69 2008-06-07 Alan Modra <amodra@bigpond.net.au>
71 * NEWS: Mention archive:path patterns.
72 * ld.texinfo: Likewise.
73 * ldlang.c: Formatting throughout.
74 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
75 (input_statement_is_archive_path): New function, extracted from..
77 (walk_wild_consider_section): Match archive:path here too.
78 (init_map_userdata, sort_def_symbol): Convert to ISO C.
79 * ldmain.c (main): Set link_info.path_separator.
80 * emultempl/spuelf.em (choose_target): Don't set it here.
82 2008-06-06 Alan Modra <amodra@bigpond.net.au>
84 * ldlang.c (name_match): New function.
85 (unique_section_p, walk_wild_consider_section): Use it here.
86 (walk_wild_section_general): And here.
87 (archive_path): New function.
88 (walk_wild): Match archive:path filespecs.
89 (open_input_bfds): Don't load archive:path files.
90 * emultempl/spuelf.em (choose_target): Set path_separator.
91 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
93 2008-06-04 Nick Clifton <nickc@redhat.com>
95 * ld.texinfo (Orphan Sections): Fix texi typo.
97 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
99 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
100 (ld_options): Add entry for --no-fatal-warnings.
101 (parse_args): Handle OPTION_NO_WARN_FATAL.
102 * ld.texinfo (Options): Document new command line switch.
104 2008-06-04 Alan Modra <amodra@bigpond.net.au>
106 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
108 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
110 * ldlang.c (closest_target_match): Skip generic big and little
113 2008-05-31 Evandro Menezes <evandro@yahoo.com>
116 * ld.h (enum sort_order): New.
117 * ldlang.c (lang_check: Fix comment.
118 (lang_common): Sort commons in ascending or descending order.
119 (lang_one_common): Likewise.
120 * lexsup.c (ld_options): Have --sort-common take an option
122 (parse_args): Handle argument to --sort-common.
123 * ld.texinfo (--sort-common): Document new optional argument.
124 * NEWS: Mention new feature.
126 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
128 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
131 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
133 * pe-dll.c (fill_edata): Make sure we calculate vma's in
135 (generate_reloc): Likewise.
136 (pe_implied_import_dll): Likewise.
138 2008-05-21 Nick Clifton <nickc@redhat.com>
141 * ld.texinfo (Orphan Sections): Mention that the linker will
142 provide start and stop symbols for orphaned sections if their
143 names are valid C identifiers.
144 * NEWS: Add an addendum to the description of the linker feature
145 for providing orphan section start and end symbols.
147 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
149 * configure.in (--enable-got): New option. Handle it.
150 * configure: Regenerate.
151 * config.in: Regenerate.
152 * emultempl/m68kelf.em: (got_handling_target_default): New shell
154 (GOT_HANDLING_TARGET_DEFAULT): New macro.
155 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
156 option if one was given.
157 (got_handling): New static variable.
158 (elf_m68k_create_output_section_statements): New static function
160 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
161 (OPTION_GOT): New macro.
162 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
164 (got): New linker option.
165 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
167 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
169 * ld.texinfo: Document --got=<type> option.
170 * gen-doc.texi: Add M68K.
171 * NEWS: Mention the new feature.
173 2008-05-21 Evandro Menezes <evandro@yahoo.com>
176 * ld.texinfo (--sort-common): Correct documentation to indicate
177 that sorting is performed by alignment, not size, biggest
180 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
181 Nick Clifton <nickc@redhat.com>
183 * ld.texinfo (ARM): Document --stub-group-size=N option.
184 Move description of --pic-veneer option into the ARM section.
185 * NEWS: Mention the support for long function calls.
187 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
189 * emultempl/armelf.em (build_section_lists): New function.
191 (need_laying_out): Define.
192 (group_size): Define.
193 (hook_stub_info): Define.
194 (hook_in_stub): New function.
195 (elf32_arm_add_stub_section): New function.
196 (gldarm_layout_sections_again): New function.
197 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
198 stubs for long calls if needed.
199 (arm_elf_create_output_section_statements): create stub_file bfd.
200 (arm_for_each_input_file_wrapper): New function.
201 (arm_lang_for_each_input_file): New function.
202 (lang_for_each_input_file): Define.
203 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
204 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
205 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
206 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
207 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
208 * lang.c (print_input_statement): Skip if bfd has
211 2008-05-14 Alan Modra <amodra@bigpond.net.au>
213 * Makefile.in: Regenerate.
215 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
218 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
219 of long and change return type to bfd_vma.
220 (definfo): Change type of address from long to bfd_vma.
221 (set_pep_value): Replace strtoul to strtoull.
222 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
223 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
225 (quick_reloc): Change argument address from int to bfd_size_type.
227 2008-05-08 Tom Tromey <tromey@redhat.com>
229 * ld.texinfo (PowerPC64 ELF64): Fix typo.
231 2008-05-08 Alan Modra <amodra@bigpond.net.au>
233 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
234 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
235 sections at the start of ".data" and provide a symbol to locate
236 the directory of embedded spe programs.
238 2008-05-08 Alan Modra <amodra@bigpond.net.au>
240 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
242 (fold_binary <SEGMENT_START>): Set expld.result.section to
243 current section. Expand comment. Formatting.
244 (fold_name <DEFINED>): Set expld.result.section to current section.
246 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
248 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
251 2008-04-25 Michael Frysinger <vapier@gentoo.org>
253 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
254 and targ_extra_emuls to elf32bfin.
256 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
258 * aclocal.m4: Regenerate.
259 * configure: Regenerate.
261 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
263 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
265 2008-04-08 Alan Modra <amodra@bigpond.net.au>
267 * po/POTFILES.in: Regenerate.
269 2008-04-08 Alan Modra <amodra@bigpond.net.au>
271 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
272 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
273 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
274 (struct tflist, clean_tmp): Move.
275 (new_tmp_file): New function, extracted from..
276 (embedded_spu_file): ..here.
277 (spu_elf_open_overlay_script, spu_elf_relink): New function.
278 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
279 Warn on --auto-overlay and zero local store.
280 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
281 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
282 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
283 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
284 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
285 (PARSE_AND_LIST_OPTIONS): Likewise.
286 (PARSE_AND_LIST_ARGS_CASES): Likewise.
287 (LDEMUL_CHOOSE_TARGET): Define.
289 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
292 * pe-dll.c (make_head): Fix iat and thunk addend offset.
294 2008-03-31 Nick Clifton <nickc@redhat.com>
296 * po/fr.po: Updated French translation.
298 2008-03-24 Ian Lance Taylor <iant@google.com>
300 The sha1 code is now in libiberty.
303 * Makefile.am (CFILES): Remove sha1.c.
304 (HFILES): Remove sha1.h.
305 (OFILES): Remove sha1.o.
306 (ld_new_SOURCES): Remove sha1.c.
307 (sha1.o): Remove target.
308 * Makefile.in: Rebuild.
310 2008-03-20 Alan Modra <amodra@bigpond.net.au>
312 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
314 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316 * aclocal.m4: Regenerate.
317 * configure: Likewise.
318 * Makefile.in: Likewise.
320 2008-03-14 Alan Modra <amodra@bigpond.net.au>
322 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
323 spu_elf_build_stubs with is_spu_target.
325 2008-03-13 Alan Modra <amodra@bigpond.net.au>
327 * Makefile.am: Run "make dep-am".
328 * Makefile.in: Regenerate.
329 * configure: Regenerate.
331 2008-03-06 Joseph Myers <joseph@codesourcery.com>
332 Roman Zippel <zippel@linux-m68k.org>
334 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
335 (COMMONPAGESIZE): Define.
337 2008-02-22 Nick Clifton <nickc@redhat.com>
340 * ldlang.c (lang_size_sections_1): Honour the setting of an
341 lma_region even if there is no vma region set, or the vma region
342 is the same as the lma region.
344 2008-02-18 Nick Clifton <nickc@redhat.com>
346 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
348 * scripttempl/elf32cr16.sc: Likewise.
349 * scripttempl/elf32cr16c.sc: Likewise.
350 * scripttempl/elf32crx.sc: Likewise.
351 * scripttempl/elf32sh-symbian.sc: Likewise.
352 * scripttempl/elf_chaos.sc: Likewise.
353 * scripttempl/elfd10v.sc: Likewise.
354 * scripttempl/elfi370.sc: Likewise.
355 * scripttempl/elfm68hc11.sc: Likewise.
356 * scripttempl/elfm68hc12.sc: Likewise.
357 * scripttempl/ip2k.sc: Likewise.
358 * scripttempl/iq2000.sc: Likewise.
359 * scripttempl/mep.sc: Likewise.
360 * scripttempl/v850.sc: Likewise.
361 * scripttempl/xstormy16.sc: Likewise.
363 2008-02-16 Alan Modra <amodra@bigpond.net.au>
366 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
367 load_base before calling make_abs.
369 2008-02-15 Alan Modra <amodra@bigpond.net.au>
371 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
372 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
374 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
376 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
378 (is_ppc_elf): ..this new macro.
380 2008-02-15 Alan Modra <amodra@bigpond.net.au>
382 * ldmain.h (output_bfd): Delete.
383 * ldmain.c (output_bfd): Delete.
384 Replace all occurrences of output_bfd with link_info.output_bfd.
385 * ldcref.c: Likewise.
386 * ldctor.c: Likewise.
387 * ldemul.c: Likewise.
389 * ldfile.c: Likewise.
390 * ldlang.c: Likewise.
391 * ldmisc.c: Likewise.
392 * ldwrite.c: Likewise.
393 * pe-dll.c: Likewise.
394 * emultempl/aix.em: Likewise.
395 * emultempl/alphaelf.em: Likewise.
396 * emultempl/armcoff.em: Likewise.
397 * emultempl/armelf.em: Likewise.
398 * emultempl/avrelf.em: Likewise.
399 * emultempl/beos.em: Likewise.
400 * emultempl/elf-generic.em: Likewise.
401 * emultempl/elf32.em: Likewise.
402 * emultempl/gld960.em: Likewise.
403 * emultempl/hppaelf.em: Likewise.
404 * emultempl/irix.em: Likewise.
405 * emultempl/linux.em: Likewise.
406 * emultempl/lnk960.em: Likewise.
407 * emultempl/m68hc1xelf.em: Likewise.
408 * emultempl/mmix-elfnmmo.em: Likewise.
409 * emultempl/mmo.em: Likewise.
410 * emultempl/pe.em: Likewise.
411 * emultempl/pep.em: Likewise.
412 * emultempl/ppc32elf.em: Likewise.
413 * emultempl/ppc64elf.em: Likewise.
414 * emultempl/scoreelf.em: Likewise.
415 * emultempl/sh64elf.em: Likewise.
416 * emultempl/spuelf.em: Likewise.
417 * emultempl/sunos.em: Likewise.
418 * emultempl/vanilla.em: Likewise.
419 * emultempl/vxworks.em: Likewise.
420 * emultempl/xtensaelf.em: Likewise.
421 * emultempl/z80.em: Likewise.
422 * ldlang.c (open_output): Don't return output, instead write
423 link_info_output_bfd directly.
424 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
425 with link_info.output_bfd->xvec.
426 * emultempl/hppaelf.em: Likewise.
427 * emultempl/ppc32elf.em: Likewise.
428 * emultempl/ppc64elf.em: Likewise.
429 * emultempl/spuelf.em: Likewise.
431 2008-02-07 Alan Modra <amodra@bigpond.net.au>
433 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
434 * ldfile.c (ldfile_add_library_path): Likewise.
435 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
436 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
437 * emultempl/spuelf.em (embedded_spu_file): Likewise.
439 2008-02-07 Alan Modra <amodra@bigpond.net.au>
441 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
442 a "present" bit rather than low bit of .buf. Correct indexing
443 into _ovly_buf_table. Use relative loads and stores to access
444 overlay manager local vars.
445 * emultempl/spu_ovl.o: Regenerate.
447 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
450 * configure: Regenerated.
452 2008-01-31 Marc Gauthier <marc@tensilica.com>
454 * configure.tgt (xtensa*-*-*): Recognize processor variants.
456 2008-01-28 Fabian Groffen <grobian@gentoo.org>
458 * configure.tgt (x86_64-*-solaris2): Add support for this target.
460 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
463 * genscripts.sh: Check for the existence of BASH_LINENO not just
464 the BASH shell before generating line numbers in the emulation
467 2008-01-28 Alan Modra <amodra@bigpond.net.au>
469 * emultempl/spu_ovl.S: Rewrite.
470 * emultempl/spu_ovl.o: Regenerate.
471 * emultempl/spuelf.em (toe): Delete.
472 (spu_place_special_section): Add param to control section placement.
474 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
476 (spu_before_allocation): Adjust spu_elf_size_stubs call.
477 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
479 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
482 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
485 2008-01-25 Alan Modra <amodra@bigpond.net.au>
487 * ld.texinfo (INSERT): Describe.
488 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
489 (INSERT_K, AFTER, BEFORE): Add as tokens.
490 (ifile_p1): Handle INSERT statements.
491 (saved_script_handle, force_make_executable): Move to..
493 (previous_script_handle): New global var.
494 * ldmain.h (saved_script_handle, force_make_executable): Declare.
495 (previous_script_handle): Likewise.
496 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
497 * lexsup.c (parge_args <-T>): Set previous_script_handle.
498 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
499 (map_input_to_output_sections, print_statement): Likewise.
500 (lang_size_sections_1, lang_do_assignments_1): Likewise.
501 (insert_os_after): New function, extracted from..
502 (lang_insert_orphan): ..here.
503 (process_insert_statements): New function.
504 (lang_process): Call it.
505 (lang_add_insert): New function.
506 * ldlang.h (lang_insert_statement_enum): New.
507 (lang_insert_statement_type): New.
508 (lang_statement_union_type): Add insert_statement.
509 (lang_add_insert): Declare.
511 2008-01-18 Bob Wilson <bob.wilson@acm.org>
513 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
516 2008-01-16 Alan Modra <amodra@bigpond.net.au>
518 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
520 2008-01-16 Alan Modra <amodra@bigpond.net.au>
522 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
523 (lang_afile_asection_pair_statement_type): Delete.
524 (lang_statement_union_type): Delete afile_asection_pair_statement.
525 * ldlang.c (lang_insert_orphan): Delete case handling the above.
526 (map_input_to_output_sections, print_statement): Likewise.
528 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
530 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
532 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
534 2008-01-15 Alan Modra <amodra@bigpond.net.au>
537 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
538 syms to _bfd_elf_gc_keep.
539 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
540 ppc64_elf_edit_opd if no_opd_opt.
542 2008-01-11 Tristan Gingold <gingold@adacore.com>
543 Eric Botcazou <ebotcazou@adacore.com>
545 * ldlang.c (lang_end): Warns if the entry point is not found when
547 Emit an error if no root is specified when --gc-sections -r.
548 * ld.texinfo (Options): Document that --gc-sections is compatible
550 * ldmain.c (main): Do not error out if -r and --gc-sections.
551 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
553 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
556 * ldlang.c (lang_end): Issue a warning for a missing start symbol
557 of a shared library if the symbol was specified on the command
560 2008-01-10 Alan Modra <amodra@bigpond.net.au>
562 * ld.texinfo (--gc-sections): Describe linker behaviour.
564 For older changes see ChangeLog-2007
570 version-control: never