1 2008-10-20 Alan Modra <amodra@bigpond.net.au>
3 * ldemul.h (ldemul_place_orphan): Update prototype.
4 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
5 * ldemul.c (ldemul_place_orphan): Return pointer to output
7 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
8 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
9 * emultempl/mmo.em (mmo_place_orphan): Likewise.
10 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
11 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
13 2008-10-08 Nick Clifton <nickc@redhat.com>
15 * configure.in (ALL_LINGUAS): Add "id".
16 * configure: Regenerate.
17 * po/id.po: New Indonesian translation.
19 2008-10-05 Alan Modra <amodra@bigpond.net.au>
22 * scripttempl/avr.sc (.bss): Set lma when relocating.
23 (.bss, .noinit): No need to set vma when relocating.
24 (.text, .bss, ,noinit): Set vma to zero when not relocating.
26 2008-10-04 Alan Modra <amodra@bigpond.net.au>
29 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
30 * ldemul.h (ldemul_place_orphan): Update prototype.
31 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
32 * ldlang.c (unique_section_p): Make static.
33 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
35 (lang_insert_orphan): Add "constraint" param. Pass to
36 lang_enter_output_section_statement.
37 (init_os): Don't use an existing bfd section for SPECIAL sections.
38 (lang_place_orphans): Don't rename unique output sections, instead
39 mark their output section statements SPECIAL.
40 * ldlang.h (lang_insert_orphan): Update prototype.
41 (unique_section_p): Delete.
42 * emultempl/beos.em (place_orphan): Add "constraint" param.
43 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
44 output sections if set.
45 * emultempl/pe.em (place_orphan): Likewise.
46 * emultempl/pep.em (place_orphan): Likewise.
47 * emultempl/mmo.em (mmo_place_orphan): Update.
48 * emultempl/spuelf.em (spu_place_special_section): Update.
50 2008-10-03 Alan Modra <amodra@bigpond.net.au>
53 * ldemul.c (ldemul_place_orphan): Add "name" param.
54 * ldemul.h (ldemul_place_orphan): Update prototype.
55 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
56 * ldlang.c (lang_place_orphans): Generate unique section names here..
57 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
58 directly use an existing output section statement that has no
60 * emultempl/pe.em (place_orphan): Likewise.
61 * emultempl/pep.em (place_orphan): Likewise.
62 * emultempl/beos.em (place_orphan): Adjust.
63 * emultempl/spuelf.em (spu_place_special_section): Adjust
65 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
66 (LDEMUL_AFTER_OPEN): Define.
68 2008-09-30 Joseph Myers <joseph@codesourcery.com>
70 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
73 2008-09-30 Alan Modra <amodra@bigpond.net.au>
75 * Makefile.am: Run "make dep-am".
76 * Makefile.in: Regenerate.
78 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
79 Steve Ellcey <sje@cup.hp.com>
81 * configure: Regenerate for new libtool.
85 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
87 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
89 2008-09-29 Nick Clifton <nickc@redhat.com>
91 * po/vi.po: Updated Vietnamese translation.
93 2008-09-25 Alan Modra <amodra@bigpond.net.au>
95 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
97 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
99 * configure.in: Call AC_SYS_LARGEFILE.
100 * config.in: Regenerate.
101 * configure: Regenerate.
103 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
105 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
107 * emultempl/pep.em (pep_find_data_imports): Likewise.
109 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
111 2008-09-07 Alan Modra <amodra@bigpond.net.au>
113 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
114 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
116 2008-09-08 Tristan Gingold <gingold@adacore.com>
118 * NEWS: Add a marker for the 2.19 features.
120 2008-09-07 Alan Modra <amodra@bigpond.net.au>
122 * ldlang.h (lang_output_section_find): Define.
123 (lang_output_section_statement_lookup): Update prototype.
124 * ldlang.c (lang_output_section_find,
125 lang_output_section_statement_lookup_1): Merge into..
126 (lang_output_section_statement_lookup): ..here. Update all callers.
127 (process_insert_statements): Set constraint negative
128 for output section statements we might be inserting. Make error
129 fatal on not finding insertion section.
130 (lang_output_section_find): Rather than comparing
131 output_section_statement.constraint against -1, test whether
133 (lang_output_section_statement_lookup_1): Likewise.
134 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
135 (lang_record_phdrs): Likewise.
136 * emultempl/elf32.em (output_rel_find): Likewise.
137 * NEWS: Mention INSERT.
139 2008-08-26 Nick Clifton <nickc@redhat.com>
142 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
143 input sections in all input bfds and always select the last
144 suitable one, so that interworking stubs are always processed
145 after all other input sections.
146 (arm_elf_before_allocation): Remove redundant use of
147 output_has_begun flag.
149 2008-08-24 Alan Modra <amodra@bigpond.net.au>
151 * configure.in: Update a number of obsolete autoconf macros.
152 * configure: Regenerate.
153 * aclocal.m4: Regenerate.
155 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
158 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
159 EXPLD.DATASEG.MIN_BASE.
160 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
161 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
162 Use OLD_BASE now for the minimal base check after the base decrease by
163 the maximum alignment found.
165 2008-08-17 Alan Modra <amodra@bigpond.net.au>
168 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
169 Don't free symbol pointer array.
170 (check_refs): Likewise.
171 * ldmain.c (warning_callback): Likewise.
172 * ldmisc.c (vfinfo): Likewise.
173 * pe-dll.c (process_def_file): Likewise.
174 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
175 * emultempl/pe.em (pe_find_data_imports): Likewise.
176 (gld_${EMULATION_NAME}_after_open): Likewise.
177 * emultempl/pep.em (pep_find_data_imports): Likewise.
178 (gld_${EMULATION_NAME}_after_open): Likewise.
179 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
180 passive_position, closed.
181 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
182 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
184 2008-08-15 Alan Modra <amodra@bigpond.net.au>
187 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
188 * Makefile.in: Regenerate.
189 * aclocal.m4: Regenerate.
190 * config.in: Regenerate.
191 * configure: Regenerate.
193 2008-08-09 Alan Modra <amodra@bigpond.net.au>
196 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
197 (main): Don't set_scripts_dir here.
198 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
199 largely based on ldmain.c versions.
200 (ldfile_find_command_file): Set up search in script dir here without
201 affecting library search.
202 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
203 (ldfile.o): New rule.
204 * Makefile.in: Regenerate.
206 2008-08-08 Anatoly Sokolov <aesok@post.ru>
208 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
210 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
211 * Makefile.in: Regenerate.
212 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
214 * emulparams/avr25.sh: New file.
215 * emulparams/avr31.sh: New file.
216 * emulparams/avr35.sh: New file.
217 * emulparams/avr51.sh: New file.
219 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
220 Daniel Jacobowitz <dan@codesourcery.com>
222 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
223 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
225 * emulparams/elf32bmipn32-defs.sh: Likewise.
226 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
227 (is_mips_elf): New macro.
228 (stub_file, stub_bfd): New variables.
229 (hook_stub_info): New structure.
230 (hook_in_stub): New function.
231 (mips_add_stub_section): Likewise.
232 (mips_create_output_section_statements): Likewise.
233 (mips_before_allocation): Likewise.
234 (real_func): New variable.
235 (mips_for_each_input_file_wrapper): New function.
236 (mips_lang_for_each_input_file): Likewise.
237 (lang_for_each_input_file): Define.
238 (LDEMUL_BEFORE_ALLOCATION): Likewise.
239 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
241 2008-08-08 Alan Modra <amodra@bigpond.net.au>
243 * ldfile.c (ldfile_open_file_search): Use concat.
244 (try_open): Don't use a fixed size pathname buffer.
245 (ldfile_find_command_file): Likewise.
246 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
247 using EXTRA_SHLIB_EXTENSION, don't open twice.
249 2008-08-04 Alan Modra <amodra@bigpond.net.au>
251 * Makefile.am (POTFILES.in): Set LC_ALL=C.
252 * Makefile.in: Regenerate.
253 * po/POTFILES.in: Regenerate.
255 2008-08-03 Alan Modra <amodra@bigpond.net.au>
257 * Makefile.am (spu_ovl.o): Merge rule into..
258 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
259 * Makefile.in: Regenerate.
261 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
263 Include the spu_ovl ASCII form in the repository files.
264 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
265 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
266 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
267 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
268 (spu_ovl.o): ...this one.
269 * Makefile.in: Regenerate.
270 * emultempl/spu_ovl.o_c: New file.
271 * emultempl/spu_ovl.o: File removed.
273 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
275 * pe-dll.c (generate_relocs): Don't generate relocs for
276 undefined weak symbols.
278 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
280 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
282 2008-07-30 Alan Modra <amodra@bigpond.net.au>
284 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
286 2008-07-18 Joseph Myers <joseph@codesourcery.com>
288 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
289 * emultempl/armelf.em (no_wchar_size_warning): New.
290 (arm_elf_create_output_section_statements): Pass
291 no_wchar_size_warning to arm_elf_create_output_section_statements.
292 (OPTION_NO_WCHAR_SIZE_WARNING): New.
293 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
294 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
295 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
297 2008-07-15 Jie Zhang <jie.zhang@analog.com>
299 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
301 2008-07-12 Craig Silverstein <csilvers@google.com>
304 * configure.in: Check for, and include, libz.a if it is present.
305 * configure: Regenerate.
306 * config.in: Regenerate.
308 2008-07-12 Jie Zhang <jie.zhang@analog.com>
311 2008-07-12 Jie Zhang <jie.zhang@analog.com>
312 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
313 (eelf32bfinfd.c): Likewise.
314 * Makefile.in: Regenerate.
315 * gen-doc.texi: Set Blackfin.
316 * ld.texinfo: Document --sep-code and Blackfin specific
318 * ldmain.c (main): Initialize link_info.sep_code.
319 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
320 (ld_options[]): Add --sep-code.
321 (parse_args): Deal with --sep-code.
322 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
323 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
324 * emultempl/bfin.em: New file.
326 2008-07-12 Jie Zhang <jie.zhang@analog.com>
328 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
329 (eelf32bfinfd.c): Likewise.
330 * Makefile.in: Regenerate.
331 * gen-doc.texi: Set Blackfin.
332 * ld.texinfo: Document --sep-code and Blackfin specific
334 * ldmain.c (main): Initialize link_info.sep_code.
335 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
336 (ld_options[]): Add --sep-code.
337 (parse_args): Deal with --sep-code.
338 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
339 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
340 * emultempl/bfin.em: New file.
342 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
344 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
346 Exclude "_IMPORT_DESCRIPTOR_".
347 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
348 (autofilter_symbollist_generic): Don't check for ".text".
349 Exclude "_NULL_IMPORT_DESCRIPTOR".
350 (autofilter_symbollist_i386): Likewise.
352 2008-07-07 Alan Modra <amodra@bigpond.net.au>
354 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
355 bfd_make_section_with_flags.
356 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
358 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
359 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
360 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
361 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
362 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
363 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
366 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
368 * ld.texinfo (File Commands): Document that INCLUDE can be used in
369 several different places.
370 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
371 (memory, memory_spec_list): Simplify BNF
372 (memory_spec_list_opt): New rule.
373 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
375 2008-06-20 Alan Modra <amodra@bigpond.net.au>
377 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
378 build overlay stubs" a fatal error.
380 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
382 * config.in: Regenerate.
383 * configure: Regenerate.
385 2008-06-17 Alan Modra <amodra@bigpond.net.au>
387 * emultempl/spuelf.em (extra_stack_space): New variable.
388 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
389 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
390 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
391 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
392 overlay manager structures.
393 * emultempl/spu_ovl.o: Regenerate.
395 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
397 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
398 mention it as being special for global symbols.
400 2008-06-12 Nick Clifton <nickc@redhat.com>
402 * ldlang.c (print_output_section_statement): If the output section
403 statement has an update_dot_tree expression, apply it to
405 (print_input_section): Do not update print_dot if it would move
407 (lang_do_assignments_1): If the output section statement has an
408 update_dot_tree expression apply it to dot.
410 2008-06-07 Alan Modra <amodra@bigpond.net.au>
412 * NEWS: Mention archive:path patterns.
413 * ld.texinfo: Likewise.
414 * ldlang.c: Formatting throughout.
415 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
416 (input_statement_is_archive_path): New function, extracted from..
418 (walk_wild_consider_section): Match archive:path here too.
419 (init_map_userdata, sort_def_symbol): Convert to ISO C.
420 * ldmain.c (main): Set link_info.path_separator.
421 * emultempl/spuelf.em (choose_target): Don't set it here.
423 2008-06-06 Alan Modra <amodra@bigpond.net.au>
425 * ldlang.c (name_match): New function.
426 (unique_section_p, walk_wild_consider_section): Use it here.
427 (walk_wild_section_general): And here.
428 (archive_path): New function.
429 (walk_wild): Match archive:path filespecs.
430 (open_input_bfds): Don't load archive:path files.
431 * emultempl/spuelf.em (choose_target): Set path_separator.
432 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
434 2008-06-04 Nick Clifton <nickc@redhat.com>
436 * ld.texinfo (Orphan Sections): Fix texi typo.
438 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
440 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
441 (ld_options): Add entry for --no-fatal-warnings.
442 (parse_args): Handle OPTION_NO_WARN_FATAL.
443 * ld.texinfo (Options): Document new command line switch.
445 2008-06-04 Alan Modra <amodra@bigpond.net.au>
447 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
449 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
451 * ldlang.c (closest_target_match): Skip generic big and little
454 2008-05-31 Evandro Menezes <evandro@yahoo.com>
457 * ld.h (enum sort_order): New.
458 * ldlang.c (lang_check: Fix comment.
459 (lang_common): Sort commons in ascending or descending order.
460 (lang_one_common): Likewise.
461 * lexsup.c (ld_options): Have --sort-common take an option
463 (parse_args): Handle argument to --sort-common.
464 * ld.texinfo (--sort-common): Document new optional argument.
465 * NEWS: Mention new feature.
467 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
469 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
472 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
474 * pe-dll.c (fill_edata): Make sure we calculate vma's in
476 (generate_reloc): Likewise.
477 (pe_implied_import_dll): Likewise.
479 2008-05-21 Nick Clifton <nickc@redhat.com>
482 * ld.texinfo (Orphan Sections): Mention that the linker will
483 provide start and stop symbols for orphaned sections if their
484 names are valid C identifiers.
485 * NEWS: Add an addendum to the description of the linker feature
486 for providing orphan section start and end symbols.
488 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
490 * configure.in (--enable-got): New option. Handle it.
491 * configure: Regenerate.
492 * config.in: Regenerate.
493 * emultempl/m68kelf.em: (got_handling_target_default): New shell
495 (GOT_HANDLING_TARGET_DEFAULT): New macro.
496 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
497 option if one was given.
498 (got_handling): New static variable.
499 (elf_m68k_create_output_section_statements): New static function
501 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
502 (OPTION_GOT): New macro.
503 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
505 (got): New linker option.
506 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
508 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
510 * ld.texinfo: Document --got=<type> option.
511 * gen-doc.texi: Add M68K.
512 * NEWS: Mention the new feature.
514 2008-05-21 Evandro Menezes <evandro@yahoo.com>
517 * ld.texinfo (--sort-common): Correct documentation to indicate
518 that sorting is performed by alignment, not size, biggest
521 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
522 Nick Clifton <nickc@redhat.com>
524 * ld.texinfo (ARM): Document --stub-group-size=N option.
525 Move description of --pic-veneer option into the ARM section.
526 * NEWS: Mention the support for long function calls.
528 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
530 * emultempl/armelf.em (build_section_lists): New function.
532 (need_laying_out): Define.
533 (group_size): Define.
534 (hook_stub_info): Define.
535 (hook_in_stub): New function.
536 (elf32_arm_add_stub_section): New function.
537 (gldarm_layout_sections_again): New function.
538 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
539 stubs for long calls if needed.
540 (arm_elf_create_output_section_statements): create stub_file bfd.
541 (arm_for_each_input_file_wrapper): New function.
542 (arm_lang_for_each_input_file): New function.
543 (lang_for_each_input_file): Define.
544 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
545 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
546 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
547 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
548 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
549 * lang.c (print_input_statement): Skip if bfd has
552 2008-05-14 Alan Modra <amodra@bigpond.net.au>
554 * Makefile.in: Regenerate.
556 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
559 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
560 of long and change return type to bfd_vma.
561 (definfo): Change type of address from long to bfd_vma.
562 (set_pep_value): Replace strtoul to strtoull.
563 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
564 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
566 (quick_reloc): Change argument address from int to bfd_size_type.
568 2008-05-08 Tom Tromey <tromey@redhat.com>
570 * ld.texinfo (PowerPC64 ELF64): Fix typo.
572 2008-05-08 Alan Modra <amodra@bigpond.net.au>
574 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
575 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
576 sections at the start of ".data" and provide a symbol to locate
577 the directory of embedded spe programs.
579 2008-05-08 Alan Modra <amodra@bigpond.net.au>
581 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
583 (fold_binary <SEGMENT_START>): Set expld.result.section to
584 current section. Expand comment. Formatting.
585 (fold_name <DEFINED>): Set expld.result.section to current section.
587 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
589 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
592 2008-04-25 Michael Frysinger <vapier@gentoo.org>
594 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
595 and targ_extra_emuls to elf32bfin.
597 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
599 * aclocal.m4: Regenerate.
600 * configure: Regenerate.
602 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
604 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
606 2008-04-08 Alan Modra <amodra@bigpond.net.au>
608 * po/POTFILES.in: Regenerate.
610 2008-04-08 Alan Modra <amodra@bigpond.net.au>
612 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
613 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
614 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
615 (struct tflist, clean_tmp): Move.
616 (new_tmp_file): New function, extracted from..
617 (embedded_spu_file): ..here.
618 (spu_elf_open_overlay_script, spu_elf_relink): New function.
619 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
620 Warn on --auto-overlay and zero local store.
621 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
622 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
623 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
624 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
625 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
626 (PARSE_AND_LIST_OPTIONS): Likewise.
627 (PARSE_AND_LIST_ARGS_CASES): Likewise.
628 (LDEMUL_CHOOSE_TARGET): Define.
630 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
633 * pe-dll.c (make_head): Fix iat and thunk addend offset.
635 2008-03-31 Nick Clifton <nickc@redhat.com>
637 * po/fr.po: Updated French translation.
639 2008-03-24 Ian Lance Taylor <iant@google.com>
641 The sha1 code is now in libiberty.
644 * Makefile.am (CFILES): Remove sha1.c.
645 (HFILES): Remove sha1.h.
646 (OFILES): Remove sha1.o.
647 (ld_new_SOURCES): Remove sha1.c.
648 (sha1.o): Remove target.
649 * Makefile.in: Rebuild.
651 2008-03-20 Alan Modra <amodra@bigpond.net.au>
653 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
655 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
657 * aclocal.m4: Regenerate.
658 * configure: Likewise.
659 * Makefile.in: Likewise.
661 2008-03-14 Alan Modra <amodra@bigpond.net.au>
663 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
664 spu_elf_build_stubs with is_spu_target.
666 2008-03-13 Alan Modra <amodra@bigpond.net.au>
668 * Makefile.am: Run "make dep-am".
669 * Makefile.in: Regenerate.
670 * configure: Regenerate.
672 2008-03-06 Joseph Myers <joseph@codesourcery.com>
673 Roman Zippel <zippel@linux-m68k.org>
675 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
676 (COMMONPAGESIZE): Define.
678 2008-02-22 Nick Clifton <nickc@redhat.com>
681 * ldlang.c (lang_size_sections_1): Honour the setting of an
682 lma_region even if there is no vma region set, or the vma region
683 is the same as the lma region.
685 2008-02-18 Nick Clifton <nickc@redhat.com>
687 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
689 * scripttempl/elf32cr16.sc: Likewise.
690 * scripttempl/elf32cr16c.sc: Likewise.
691 * scripttempl/elf32crx.sc: Likewise.
692 * scripttempl/elf32sh-symbian.sc: Likewise.
693 * scripttempl/elf_chaos.sc: Likewise.
694 * scripttempl/elfd10v.sc: Likewise.
695 * scripttempl/elfi370.sc: Likewise.
696 * scripttempl/elfm68hc11.sc: Likewise.
697 * scripttempl/elfm68hc12.sc: Likewise.
698 * scripttempl/ip2k.sc: Likewise.
699 * scripttempl/iq2000.sc: Likewise.
700 * scripttempl/mep.sc: Likewise.
701 * scripttempl/v850.sc: Likewise.
702 * scripttempl/xstormy16.sc: Likewise.
704 2008-02-16 Alan Modra <amodra@bigpond.net.au>
707 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
708 load_base before calling make_abs.
710 2008-02-15 Alan Modra <amodra@bigpond.net.au>
712 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
713 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
715 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
717 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
719 (is_ppc_elf): ..this new macro.
721 2008-02-15 Alan Modra <amodra@bigpond.net.au>
723 * ldmain.h (output_bfd): Delete.
724 * ldmain.c (output_bfd): Delete.
725 Replace all occurrences of output_bfd with link_info.output_bfd.
726 * ldcref.c: Likewise.
727 * ldctor.c: Likewise.
728 * ldemul.c: Likewise.
730 * ldfile.c: Likewise.
731 * ldlang.c: Likewise.
732 * ldmisc.c: Likewise.
733 * ldwrite.c: Likewise.
734 * pe-dll.c: Likewise.
735 * emultempl/aix.em: Likewise.
736 * emultempl/alphaelf.em: Likewise.
737 * emultempl/armcoff.em: Likewise.
738 * emultempl/armelf.em: Likewise.
739 * emultempl/avrelf.em: Likewise.
740 * emultempl/beos.em: Likewise.
741 * emultempl/elf-generic.em: Likewise.
742 * emultempl/elf32.em: Likewise.
743 * emultempl/gld960.em: Likewise.
744 * emultempl/hppaelf.em: Likewise.
745 * emultempl/irix.em: Likewise.
746 * emultempl/linux.em: Likewise.
747 * emultempl/lnk960.em: Likewise.
748 * emultempl/m68hc1xelf.em: Likewise.
749 * emultempl/mmix-elfnmmo.em: Likewise.
750 * emultempl/mmo.em: Likewise.
751 * emultempl/pe.em: Likewise.
752 * emultempl/pep.em: Likewise.
753 * emultempl/ppc32elf.em: Likewise.
754 * emultempl/ppc64elf.em: Likewise.
755 * emultempl/scoreelf.em: Likewise.
756 * emultempl/sh64elf.em: Likewise.
757 * emultempl/spuelf.em: Likewise.
758 * emultempl/sunos.em: Likewise.
759 * emultempl/vanilla.em: Likewise.
760 * emultempl/vxworks.em: Likewise.
761 * emultempl/xtensaelf.em: Likewise.
762 * emultempl/z80.em: Likewise.
763 * ldlang.c (open_output): Don't return output, instead write
764 link_info_output_bfd directly.
765 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
766 with link_info.output_bfd->xvec.
767 * emultempl/hppaelf.em: Likewise.
768 * emultempl/ppc32elf.em: Likewise.
769 * emultempl/ppc64elf.em: Likewise.
770 * emultempl/spuelf.em: Likewise.
772 2008-02-07 Alan Modra <amodra@bigpond.net.au>
774 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
775 * ldfile.c (ldfile_add_library_path): Likewise.
776 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
777 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
778 * emultempl/spuelf.em (embedded_spu_file): Likewise.
780 2008-02-07 Alan Modra <amodra@bigpond.net.au>
782 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
783 a "present" bit rather than low bit of .buf. Correct indexing
784 into _ovly_buf_table. Use relative loads and stores to access
785 overlay manager local vars.
786 * emultempl/spu_ovl.o: Regenerate.
788 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
791 * configure: Regenerated.
793 2008-01-31 Marc Gauthier <marc@tensilica.com>
795 * configure.tgt (xtensa*-*-*): Recognize processor variants.
797 2008-01-28 Fabian Groffen <grobian@gentoo.org>
799 * configure.tgt (x86_64-*-solaris2): Add support for this target.
801 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
804 * genscripts.sh: Check for the existence of BASH_LINENO not just
805 the BASH shell before generating line numbers in the emulation
808 2008-01-28 Alan Modra <amodra@bigpond.net.au>
810 * emultempl/spu_ovl.S: Rewrite.
811 * emultempl/spu_ovl.o: Regenerate.
812 * emultempl/spuelf.em (toe): Delete.
813 (spu_place_special_section): Add param to control section placement.
815 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
817 (spu_before_allocation): Adjust spu_elf_size_stubs call.
818 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
820 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
823 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
826 2008-01-25 Alan Modra <amodra@bigpond.net.au>
828 * ld.texinfo (INSERT): Describe.
829 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
830 (INSERT_K, AFTER, BEFORE): Add as tokens.
831 (ifile_p1): Handle INSERT statements.
832 (saved_script_handle, force_make_executable): Move to..
834 (previous_script_handle): New global var.
835 * ldmain.h (saved_script_handle, force_make_executable): Declare.
836 (previous_script_handle): Likewise.
837 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
838 * lexsup.c (parge_args <-T>): Set previous_script_handle.
839 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
840 (map_input_to_output_sections, print_statement): Likewise.
841 (lang_size_sections_1, lang_do_assignments_1): Likewise.
842 (insert_os_after): New function, extracted from..
843 (lang_insert_orphan): ..here.
844 (process_insert_statements): New function.
845 (lang_process): Call it.
846 (lang_add_insert): New function.
847 * ldlang.h (lang_insert_statement_enum): New.
848 (lang_insert_statement_type): New.
849 (lang_statement_union_type): Add insert_statement.
850 (lang_add_insert): Declare.
852 2008-01-18 Bob Wilson <bob.wilson@acm.org>
854 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
857 2008-01-16 Alan Modra <amodra@bigpond.net.au>
859 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
861 2008-01-16 Alan Modra <amodra@bigpond.net.au>
863 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
864 (lang_afile_asection_pair_statement_type): Delete.
865 (lang_statement_union_type): Delete afile_asection_pair_statement.
866 * ldlang.c (lang_insert_orphan): Delete case handling the above.
867 (map_input_to_output_sections, print_statement): Likewise.
869 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
871 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
873 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
875 2008-01-15 Alan Modra <amodra@bigpond.net.au>
878 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
879 syms to _bfd_elf_gc_keep.
880 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
881 ppc64_elf_edit_opd if no_opd_opt.
883 2008-01-11 Tristan Gingold <gingold@adacore.com>
884 Eric Botcazou <ebotcazou@adacore.com>
886 * ldlang.c (lang_end): Warns if the entry point is not found when
888 Emit an error if no root is specified when --gc-sections -r.
889 * ld.texinfo (Options): Document that --gc-sections is compatible
891 * ldmain.c (main): Do not error out if -r and --gc-sections.
892 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
894 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
897 * ldlang.c (lang_end): Issue a warning for a missing start symbol
898 of a shared library if the symbol was specified on the command
901 2008-01-10 Alan Modra <amodra@bigpond.net.au>
903 * ld.texinfo (--gc-sections): Describe linker behaviour.
905 For older changes see ChangeLog-2007
911 version-control: never