1 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
3 2008-09-07 Alan Modra <amodra@bigpond.net.au>
5 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
6 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
8 2008-09-08 Tristan Gingold <gingold@adacore.com>
10 * NEWS: Add a marker for the 2.19 features.
12 2008-09-07 Alan Modra <amodra@bigpond.net.au>
14 * ldlang.h (lang_output_section_find): Define.
15 (lang_output_section_statement_lookup): Update prototype.
16 * ldlang.c (lang_output_section_find,
17 lang_output_section_statement_lookup_1): Merge into..
18 (lang_output_section_statement_lookup): ..here. Update all callers.
19 (process_insert_statements): Set constraint negative
20 for output section statements we might be inserting. Make error
21 fatal on not finding insertion section.
22 (lang_output_section_find): Rather than comparing
23 output_section_statement.constraint against -1, test whether
25 (lang_output_section_statement_lookup_1): Likewise.
26 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
27 (lang_record_phdrs): Likewise.
28 * emultempl/elf32.em (output_rel_find): Likewise.
29 * NEWS: Mention INSERT.
31 2008-08-26 Nick Clifton <nickc@redhat.com>
34 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
35 input sections in all input bfds and always select the last
36 suitable one, so that interworking stubs are always processed
37 after all other input sections.
38 (arm_elf_before_allocation): Remove redundant use of
39 output_has_begun flag.
41 2008-08-24 Alan Modra <amodra@bigpond.net.au>
43 * configure.in: Update a number of obsolete autoconf macros.
44 * configure: Regenerate.
45 * aclocal.m4: Regenerate.
47 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
50 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
51 EXPLD.DATASEG.MIN_BASE.
52 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
53 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
54 Use OLD_BASE now for the minimal base check after the base decrease by
55 the maximum alignment found.
57 2008-08-17 Alan Modra <amodra@bigpond.net.au>
60 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
61 Don't free symbol pointer array.
62 (check_refs): Likewise.
63 * ldmain.c (warning_callback): Likewise.
64 * ldmisc.c (vfinfo): Likewise.
65 * pe-dll.c (process_def_file): Likewise.
66 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
67 * emultempl/pe.em (pe_find_data_imports): Likewise.
68 (gld_${EMULATION_NAME}_after_open): Likewise.
69 * emultempl/pep.em (pep_find_data_imports): Likewise.
70 (gld_${EMULATION_NAME}_after_open): Likewise.
71 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
72 passive_position, closed.
73 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
74 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
76 2008-08-15 Alan Modra <amodra@bigpond.net.au>
79 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
80 * Makefile.in: Regenerate.
81 * aclocal.m4: Regenerate.
82 * config.in: Regenerate.
83 * configure: Regenerate.
85 2008-08-09 Alan Modra <amodra@bigpond.net.au>
88 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
89 (main): Don't set_scripts_dir here.
90 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
91 largely based on ldmain.c versions.
92 (ldfile_find_command_file): Set up search in script dir here without
93 affecting library search.
94 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
96 * Makefile.in: Regenerate.
98 2008-08-08 Anatoly Sokolov <aesok@post.ru>
100 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
102 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
103 * Makefile.in: Regenerate.
104 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
106 * emulparams/avr25.sh: New file.
107 * emulparams/avr31.sh: New file.
108 * emulparams/avr35.sh: New file.
109 * emulparams/avr51.sh: New file.
111 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
112 Daniel Jacobowitz <dan@codesourcery.com>
114 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
115 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
117 * emulparams/elf32bmipn32-defs.sh: Likewise.
118 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
119 (is_mips_elf): New macro.
120 (stub_file, stub_bfd): New variables.
121 (hook_stub_info): New structure.
122 (hook_in_stub): New function.
123 (mips_add_stub_section): Likewise.
124 (mips_create_output_section_statements): Likewise.
125 (mips_before_allocation): Likewise.
126 (real_func): New variable.
127 (mips_for_each_input_file_wrapper): New function.
128 (mips_lang_for_each_input_file): Likewise.
129 (lang_for_each_input_file): Define.
130 (LDEMUL_BEFORE_ALLOCATION): Likewise.
131 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
133 2008-08-08 Alan Modra <amodra@bigpond.net.au>
135 * ldfile.c (ldfile_open_file_search): Use concat.
136 (try_open): Don't use a fixed size pathname buffer.
137 (ldfile_find_command_file): Likewise.
138 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
139 using EXTRA_SHLIB_EXTENSION, don't open twice.
141 2008-08-04 Alan Modra <amodra@bigpond.net.au>
143 * Makefile.am (POTFILES.in): Set LC_ALL=C.
144 * Makefile.in: Regenerate.
145 * po/POTFILES.in: Regenerate.
147 2008-08-03 Alan Modra <amodra@bigpond.net.au>
149 * Makefile.am (spu_ovl.o): Merge rule into..
150 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
151 * Makefile.in: Regenerate.
153 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
155 Include the spu_ovl ASCII form in the repository files.
156 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
157 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
158 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
159 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
160 (spu_ovl.o): ...this one.
161 * Makefile.in: Regenerate.
162 * emultempl/spu_ovl.o_c: New file.
163 * emultempl/spu_ovl.o: File removed.
165 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
167 * pe-dll.c (generate_relocs): Don't generate relocs for
168 undefined weak symbols.
170 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
172 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
174 2008-07-30 Alan Modra <amodra@bigpond.net.au>
176 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
178 2008-07-18 Joseph Myers <joseph@codesourcery.com>
180 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
181 * emultempl/armelf.em (no_wchar_size_warning): New.
182 (arm_elf_create_output_section_statements): Pass
183 no_wchar_size_warning to arm_elf_create_output_section_statements.
184 (OPTION_NO_WCHAR_SIZE_WARNING): New.
185 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
186 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
187 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
189 2008-07-15 Jie Zhang <jie.zhang@analog.com>
191 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
193 2008-07-12 Craig Silverstein <csilvers@google.com>
196 * configure.in: Check for, and include, libz.a if it is present.
197 * configure: Regenerate.
198 * config.in: Regenerate.
200 2008-07-12 Jie Zhang <jie.zhang@analog.com>
203 2008-07-12 Jie Zhang <jie.zhang@analog.com>
204 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
205 (eelf32bfinfd.c): Likewise.
206 * Makefile.in: Regenerate.
207 * gen-doc.texi: Set Blackfin.
208 * ld.texinfo: Document --sep-code and Blackfin specific
210 * ldmain.c (main): Initialize link_info.sep_code.
211 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
212 (ld_options[]): Add --sep-code.
213 (parse_args): Deal with --sep-code.
214 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
215 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
216 * emultempl/bfin.em: New file.
218 2008-07-12 Jie Zhang <jie.zhang@analog.com>
220 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
221 (eelf32bfinfd.c): Likewise.
222 * Makefile.in: Regenerate.
223 * gen-doc.texi: Set Blackfin.
224 * ld.texinfo: Document --sep-code and Blackfin specific
226 * ldmain.c (main): Initialize link_info.sep_code.
227 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
228 (ld_options[]): Add --sep-code.
229 (parse_args): Deal with --sep-code.
230 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
231 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
232 * emultempl/bfin.em: New file.
234 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
236 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
238 Exclude "_IMPORT_DESCRIPTOR_".
239 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
240 (autofilter_symbollist_generic): Don't check for ".text".
241 Exclude "_NULL_IMPORT_DESCRIPTOR".
242 (autofilter_symbollist_i386): Likewise.
244 2008-07-07 Alan Modra <amodra@bigpond.net.au>
246 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
247 bfd_make_section_with_flags.
248 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
250 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
251 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
252 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
253 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
254 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
255 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
258 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
260 * ld.texinfo (File Commands): Document that INCLUDE can be used in
261 several different places.
262 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
263 (memory, memory_spec_list): Simplify BNF
264 (memory_spec_list_opt): New rule.
265 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
267 2008-06-20 Alan Modra <amodra@bigpond.net.au>
269 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
270 build overlay stubs" a fatal error.
272 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
274 * config.in: Regenerate.
275 * configure: Regenerate.
277 2008-06-17 Alan Modra <amodra@bigpond.net.au>
279 * emultempl/spuelf.em (extra_stack_space): New variable.
280 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
281 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
282 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
283 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
284 overlay manager structures.
285 * emultempl/spu_ovl.o: Regenerate.
287 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
289 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
290 mention it as being special for global symbols.
292 2008-06-12 Nick Clifton <nickc@redhat.com>
294 * ldlang.c (print_output_section_statement): If the output section
295 statement has an update_dot_tree expression, apply it to
297 (print_input_section): Do not update print_dot if it would move
299 (lang_do_assignments_1): If the output section statement has an
300 update_dot_tree expression apply it to dot.
302 2008-06-07 Alan Modra <amodra@bigpond.net.au>
304 * NEWS: Mention archive:path patterns.
305 * ld.texinfo: Likewise.
306 * ldlang.c: Formatting throughout.
307 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
308 (input_statement_is_archive_path): New function, extracted from..
310 (walk_wild_consider_section): Match archive:path here too.
311 (init_map_userdata, sort_def_symbol): Convert to ISO C.
312 * ldmain.c (main): Set link_info.path_separator.
313 * emultempl/spuelf.em (choose_target): Don't set it here.
315 2008-06-06 Alan Modra <amodra@bigpond.net.au>
317 * ldlang.c (name_match): New function.
318 (unique_section_p, walk_wild_consider_section): Use it here.
319 (walk_wild_section_general): And here.
320 (archive_path): New function.
321 (walk_wild): Match archive:path filespecs.
322 (open_input_bfds): Don't load archive:path files.
323 * emultempl/spuelf.em (choose_target): Set path_separator.
324 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
326 2008-06-04 Nick Clifton <nickc@redhat.com>
328 * ld.texinfo (Orphan Sections): Fix texi typo.
330 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
332 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
333 (ld_options): Add entry for --no-fatal-warnings.
334 (parse_args): Handle OPTION_NO_WARN_FATAL.
335 * ld.texinfo (Options): Document new command line switch.
337 2008-06-04 Alan Modra <amodra@bigpond.net.au>
339 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
341 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
343 * ldlang.c (closest_target_match): Skip generic big and little
346 2008-05-31 Evandro Menezes <evandro@yahoo.com>
349 * ld.h (enum sort_order): New.
350 * ldlang.c (lang_check: Fix comment.
351 (lang_common): Sort commons in ascending or descending order.
352 (lang_one_common): Likewise.
353 * lexsup.c (ld_options): Have --sort-common take an option
355 (parse_args): Handle argument to --sort-common.
356 * ld.texinfo (--sort-common): Document new optional argument.
357 * NEWS: Mention new feature.
359 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
361 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
364 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
366 * pe-dll.c (fill_edata): Make sure we calculate vma's in
368 (generate_reloc): Likewise.
369 (pe_implied_import_dll): Likewise.
371 2008-05-21 Nick Clifton <nickc@redhat.com>
374 * ld.texinfo (Orphan Sections): Mention that the linker will
375 provide start and stop symbols for orphaned sections if their
376 names are valid C identifiers.
377 * NEWS: Add an addendum to the description of the linker feature
378 for providing orphan section start and end symbols.
380 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
382 * configure.in (--enable-got): New option. Handle it.
383 * configure: Regenerate.
384 * config.in: Regenerate.
385 * emultempl/m68kelf.em: (got_handling_target_default): New shell
387 (GOT_HANDLING_TARGET_DEFAULT): New macro.
388 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
389 option if one was given.
390 (got_handling): New static variable.
391 (elf_m68k_create_output_section_statements): New static function
393 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
394 (OPTION_GOT): New macro.
395 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
397 (got): New linker option.
398 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
400 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
402 * ld.texinfo: Document --got=<type> option.
403 * gen-doc.texi: Add M68K.
404 * NEWS: Mention the new feature.
406 2008-05-21 Evandro Menezes <evandro@yahoo.com>
409 * ld.texinfo (--sort-common): Correct documentation to indicate
410 that sorting is performed by alignment, not size, biggest
413 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
414 Nick Clifton <nickc@redhat.com>
416 * ld.texinfo (ARM): Document --stub-group-size=N option.
417 Move description of --pic-veneer option into the ARM section.
418 * NEWS: Mention the support for long function calls.
420 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
422 * emultempl/armelf.em (build_section_lists): New function.
424 (need_laying_out): Define.
425 (group_size): Define.
426 (hook_stub_info): Define.
427 (hook_in_stub): New function.
428 (elf32_arm_add_stub_section): New function.
429 (gldarm_layout_sections_again): New function.
430 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
431 stubs for long calls if needed.
432 (arm_elf_create_output_section_statements): create stub_file bfd.
433 (arm_for_each_input_file_wrapper): New function.
434 (arm_lang_for_each_input_file): New function.
435 (lang_for_each_input_file): Define.
436 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
437 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
438 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
439 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
440 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
441 * lang.c (print_input_statement): Skip if bfd has
444 2008-05-14 Alan Modra <amodra@bigpond.net.au>
446 * Makefile.in: Regenerate.
448 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
451 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
452 of long and change return type to bfd_vma.
453 (definfo): Change type of address from long to bfd_vma.
454 (set_pep_value): Replace strtoul to strtoull.
455 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
456 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
458 (quick_reloc): Change argument address from int to bfd_size_type.
460 2008-05-08 Tom Tromey <tromey@redhat.com>
462 * ld.texinfo (PowerPC64 ELF64): Fix typo.
464 2008-05-08 Alan Modra <amodra@bigpond.net.au>
466 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
467 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
468 sections at the start of ".data" and provide a symbol to locate
469 the directory of embedded spe programs.
471 2008-05-08 Alan Modra <amodra@bigpond.net.au>
473 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
475 (fold_binary <SEGMENT_START>): Set expld.result.section to
476 current section. Expand comment. Formatting.
477 (fold_name <DEFINED>): Set expld.result.section to current section.
479 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
481 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
484 2008-04-25 Michael Frysinger <vapier@gentoo.org>
486 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
487 and targ_extra_emuls to elf32bfin.
489 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
491 * aclocal.m4: Regenerate.
492 * configure: Regenerate.
494 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
496 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
498 2008-04-08 Alan Modra <amodra@bigpond.net.au>
500 * po/POTFILES.in: Regenerate.
502 2008-04-08 Alan Modra <amodra@bigpond.net.au>
504 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
505 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
506 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
507 (struct tflist, clean_tmp): Move.
508 (new_tmp_file): New function, extracted from..
509 (embedded_spu_file): ..here.
510 (spu_elf_open_overlay_script, spu_elf_relink): New function.
511 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
512 Warn on --auto-overlay and zero local store.
513 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
514 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
515 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
516 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
517 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
518 (PARSE_AND_LIST_OPTIONS): Likewise.
519 (PARSE_AND_LIST_ARGS_CASES): Likewise.
520 (LDEMUL_CHOOSE_TARGET): Define.
522 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
525 * pe-dll.c (make_head): Fix iat and thunk addend offset.
527 2008-03-31 Nick Clifton <nickc@redhat.com>
529 * po/fr.po: Updated French translation.
531 2008-03-24 Ian Lance Taylor <iant@google.com>
533 The sha1 code is now in libiberty.
536 * Makefile.am (CFILES): Remove sha1.c.
537 (HFILES): Remove sha1.h.
538 (OFILES): Remove sha1.o.
539 (ld_new_SOURCES): Remove sha1.c.
540 (sha1.o): Remove target.
541 * Makefile.in: Rebuild.
543 2008-03-20 Alan Modra <amodra@bigpond.net.au>
545 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
547 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 * aclocal.m4: Regenerate.
550 * configure: Likewise.
551 * Makefile.in: Likewise.
553 2008-03-14 Alan Modra <amodra@bigpond.net.au>
555 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
556 spu_elf_build_stubs with is_spu_target.
558 2008-03-13 Alan Modra <amodra@bigpond.net.au>
560 * Makefile.am: Run "make dep-am".
561 * Makefile.in: Regenerate.
562 * configure: Regenerate.
564 2008-03-06 Joseph Myers <joseph@codesourcery.com>
565 Roman Zippel <zippel@linux-m68k.org>
567 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
568 (COMMONPAGESIZE): Define.
570 2008-02-22 Nick Clifton <nickc@redhat.com>
573 * ldlang.c (lang_size_sections_1): Honour the setting of an
574 lma_region even if there is no vma region set, or the vma region
575 is the same as the lma region.
577 2008-02-18 Nick Clifton <nickc@redhat.com>
579 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
581 * scripttempl/elf32cr16.sc: Likewise.
582 * scripttempl/elf32cr16c.sc: Likewise.
583 * scripttempl/elf32crx.sc: Likewise.
584 * scripttempl/elf32sh-symbian.sc: Likewise.
585 * scripttempl/elf_chaos.sc: Likewise.
586 * scripttempl/elfd10v.sc: Likewise.
587 * scripttempl/elfi370.sc: Likewise.
588 * scripttempl/elfm68hc11.sc: Likewise.
589 * scripttempl/elfm68hc12.sc: Likewise.
590 * scripttempl/ip2k.sc: Likewise.
591 * scripttempl/iq2000.sc: Likewise.
592 * scripttempl/mep.sc: Likewise.
593 * scripttempl/v850.sc: Likewise.
594 * scripttempl/xstormy16.sc: Likewise.
596 2008-02-16 Alan Modra <amodra@bigpond.net.au>
599 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
600 load_base before calling make_abs.
602 2008-02-15 Alan Modra <amodra@bigpond.net.au>
604 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
605 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
607 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
609 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
611 (is_ppc_elf): ..this new macro.
613 2008-02-15 Alan Modra <amodra@bigpond.net.au>
615 * ldmain.h (output_bfd): Delete.
616 * ldmain.c (output_bfd): Delete.
617 Replace all occurrences of output_bfd with link_info.output_bfd.
618 * ldcref.c: Likewise.
619 * ldctor.c: Likewise.
620 * ldemul.c: Likewise.
622 * ldfile.c: Likewise.
623 * ldlang.c: Likewise.
624 * ldmisc.c: Likewise.
625 * ldwrite.c: Likewise.
626 * pe-dll.c: Likewise.
627 * emultempl/aix.em: Likewise.
628 * emultempl/alphaelf.em: Likewise.
629 * emultempl/armcoff.em: Likewise.
630 * emultempl/armelf.em: Likewise.
631 * emultempl/avrelf.em: Likewise.
632 * emultempl/beos.em: Likewise.
633 * emultempl/elf-generic.em: Likewise.
634 * emultempl/elf32.em: Likewise.
635 * emultempl/gld960.em: Likewise.
636 * emultempl/hppaelf.em: Likewise.
637 * emultempl/irix.em: Likewise.
638 * emultempl/linux.em: Likewise.
639 * emultempl/lnk960.em: Likewise.
640 * emultempl/m68hc1xelf.em: Likewise.
641 * emultempl/mmix-elfnmmo.em: Likewise.
642 * emultempl/mmo.em: Likewise.
643 * emultempl/pe.em: Likewise.
644 * emultempl/pep.em: Likewise.
645 * emultempl/ppc32elf.em: Likewise.
646 * emultempl/ppc64elf.em: Likewise.
647 * emultempl/scoreelf.em: Likewise.
648 * emultempl/sh64elf.em: Likewise.
649 * emultempl/spuelf.em: Likewise.
650 * emultempl/sunos.em: Likewise.
651 * emultempl/vanilla.em: Likewise.
652 * emultempl/vxworks.em: Likewise.
653 * emultempl/xtensaelf.em: Likewise.
654 * emultempl/z80.em: Likewise.
655 * ldlang.c (open_output): Don't return output, instead write
656 link_info_output_bfd directly.
657 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
658 with link_info.output_bfd->xvec.
659 * emultempl/hppaelf.em: Likewise.
660 * emultempl/ppc32elf.em: Likewise.
661 * emultempl/ppc64elf.em: Likewise.
662 * emultempl/spuelf.em: Likewise.
664 2008-02-07 Alan Modra <amodra@bigpond.net.au>
666 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
667 * ldfile.c (ldfile_add_library_path): Likewise.
668 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
669 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
670 * emultempl/spuelf.em (embedded_spu_file): Likewise.
672 2008-02-07 Alan Modra <amodra@bigpond.net.au>
674 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
675 a "present" bit rather than low bit of .buf. Correct indexing
676 into _ovly_buf_table. Use relative loads and stores to access
677 overlay manager local vars.
678 * emultempl/spu_ovl.o: Regenerate.
680 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
683 * configure: Regenerated.
685 2008-01-31 Marc Gauthier <marc@tensilica.com>
687 * configure.tgt (xtensa*-*-*): Recognize processor variants.
689 2008-01-28 Fabian Groffen <grobian@gentoo.org>
691 * configure.tgt (x86_64-*-solaris2): Add support for this target.
693 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
696 * genscripts.sh: Check for the existence of BASH_LINENO not just
697 the BASH shell before generating line numbers in the emulation
700 2008-01-28 Alan Modra <amodra@bigpond.net.au>
702 * emultempl/spu_ovl.S: Rewrite.
703 * emultempl/spu_ovl.o: Regenerate.
704 * emultempl/spuelf.em (toe): Delete.
705 (spu_place_special_section): Add param to control section placement.
707 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
709 (spu_before_allocation): Adjust spu_elf_size_stubs call.
710 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
712 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
715 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
718 2008-01-25 Alan Modra <amodra@bigpond.net.au>
720 * ld.texinfo (INSERT): Describe.
721 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
722 (INSERT_K, AFTER, BEFORE): Add as tokens.
723 (ifile_p1): Handle INSERT statements.
724 (saved_script_handle, force_make_executable): Move to..
726 (previous_script_handle): New global var.
727 * ldmain.h (saved_script_handle, force_make_executable): Declare.
728 (previous_script_handle): Likewise.
729 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
730 * lexsup.c (parge_args <-T>): Set previous_script_handle.
731 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
732 (map_input_to_output_sections, print_statement): Likewise.
733 (lang_size_sections_1, lang_do_assignments_1): Likewise.
734 (insert_os_after): New function, extracted from..
735 (lang_insert_orphan): ..here.
736 (process_insert_statements): New function.
737 (lang_process): Call it.
738 (lang_add_insert): New function.
739 * ldlang.h (lang_insert_statement_enum): New.
740 (lang_insert_statement_type): New.
741 (lang_statement_union_type): Add insert_statement.
742 (lang_add_insert): Declare.
744 2008-01-18 Bob Wilson <bob.wilson@acm.org>
746 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
749 2008-01-16 Alan Modra <amodra@bigpond.net.au>
751 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
753 2008-01-16 Alan Modra <amodra@bigpond.net.au>
755 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
756 (lang_afile_asection_pair_statement_type): Delete.
757 (lang_statement_union_type): Delete afile_asection_pair_statement.
758 * ldlang.c (lang_insert_orphan): Delete case handling the above.
759 (map_input_to_output_sections, print_statement): Likewise.
761 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
763 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
765 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
767 2008-01-15 Alan Modra <amodra@bigpond.net.au>
770 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
771 syms to _bfd_elf_gc_keep.
772 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
773 ppc64_elf_edit_opd if no_opd_opt.
775 2008-01-11 Tristan Gingold <gingold@adacore.com>
776 Eric Botcazou <ebotcazou@adacore.com>
778 * ldlang.c (lang_end): Warns if the entry point is not found when
780 Emit an error if no root is specified when --gc-sections -r.
781 * ld.texinfo (Options): Document that --gc-sections is compatible
783 * ldmain.c (main): Do not error out if -r and --gc-sections.
784 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
786 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
789 * ldlang.c (lang_end): Issue a warning for a missing start symbol
790 of a shared library if the symbol was specified on the command
793 2008-01-10 Alan Modra <amodra@bigpond.net.au>
795 * ld.texinfo (--gc-sections): Describe linker behaviour.
797 For older changes see ChangeLog-2007
803 version-control: never