1 2008-06-17 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/spuelf.em (extra_stack_space): New variable.
4 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
5 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
6 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
7 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
8 overlay manager structures.
9 * emultempl/spu_ovl.o: Regenerate.
11 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
13 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
14 mention it as being special for global symbols.
16 2008-06-12 Nick Clifton <nickc@redhat.com>
18 * ldlang.c (print_output_section_statement): If the output section
19 statement has an update_dot_tree expression, apply it to
21 (print_input_section): Do not update print_dot if it would move
23 (lang_do_assignments_1): If the output section statement has an
24 update_dot_tree expression apply it to dot.
26 2008-06-07 Alan Modra <amodra@bigpond.net.au>
28 * NEWS: Mention archive:path patterns.
29 * ld.texinfo: Likewise.
30 * ldlang.c: Formatting throughout.
31 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
32 (input_statement_is_archive_path): New function, extracted from..
34 (walk_wild_consider_section): Match archive:path here too.
35 (init_map_userdata, sort_def_symbol): Convert to ISO C.
36 * ldmain.c (main): Set link_info.path_separator.
37 * emultempl/spuelf.em (choose_target): Don't set it here.
39 2008-06-06 Alan Modra <amodra@bigpond.net.au>
41 * ldlang.c (name_match): New function.
42 (unique_section_p, walk_wild_consider_section): Use it here.
43 (walk_wild_section_general): And here.
44 (archive_path): New function.
45 (walk_wild): Match archive:path filespecs.
46 (open_input_bfds): Don't load archive:path files.
47 * emultempl/spuelf.em (choose_target): Set path_separator.
48 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
50 2008-06-04 Nick Clifton <nickc@redhat.com>
52 * ld.texinfo (Orphan Sections): Fix texi typo.
54 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
56 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
57 (ld_options): Add entry for --no-fatal-warnings.
58 (parse_args): Handle OPTION_NO_WARN_FATAL.
59 * ld.texinfo (Options): Document new command line switch.
61 2008-06-04 Alan Modra <amodra@bigpond.net.au>
63 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
65 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
67 * ldlang.c (closest_target_match): Skip generic big and little
70 2008-05-31 Evandro Menezes <evandro@yahoo.com>
73 * ld.h (enum sort_order): New.
74 * ldlang.c (lang_check: Fix comment.
75 (lang_common): Sort commons in ascending or descending order.
76 (lang_one_common): Likewise.
77 * lexsup.c (ld_options): Have --sort-common take an option
79 (parse_args): Handle argument to --sort-common.
80 * ld.texinfo (--sort-common): Document new optional argument.
81 * NEWS: Mention new feature.
83 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
85 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
88 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
90 * pe-dll.c (fill_edata): Make sure we calculate vma's in
92 (generate_reloc): Likewise.
93 (pe_implied_import_dll): Likewise.
95 2008-05-21 Nick Clifton <nickc@redhat.com>
98 * ld.texinfo (Orphan Sections): Mention that the linker will
99 provide start and stop symbols for orphaned sections if their
100 names are valid C identifiers.
101 * NEWS: Add an addendum to the description of the linker feature
102 for providing orphan section start and end symbols.
104 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
106 * configure.in (--enable-got): New option. Handle it.
107 * configure: Regenerate.
108 * config.in: Regenerate.
109 * emultempl/m68kelf.em: (got_handling_target_default): New shell
111 (GOT_HANDLING_TARGET_DEFAULT): New macro.
112 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
113 option if one was given.
114 (got_handling): New static variable.
115 (elf_m68k_create_output_section_statements): New static function
117 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
118 (OPTION_GOT): New macro.
119 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
121 (got): New linker option.
122 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
124 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
126 * ld.texinfo: Document --got=<type> option.
127 * gen-doc.texi: Add M68K.
128 * NEWS: Mention the new feature.
130 2008-05-21 Evandro Menezes <evandro@yahoo.com>
133 * ld.texinfo (--sort-common): Correct documentation to indicate
134 that sorting is performed by alignment, not size, biggest
137 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
138 Nick Clifton <nickc@redhat.com>
140 * ld.texinfo (ARM): Document --stub-group-size=N option.
141 Move description of --pic-veneer option into the ARM section.
142 * NEWS: Mention the support for long function calls.
144 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
146 * emultempl/armelf.em (build_section_lists): New function.
148 (need_laying_out): Define.
149 (group_size): Define.
150 (hook_stub_info): Define.
151 (hook_in_stub): New function.
152 (elf32_arm_add_stub_section): New function.
153 (gldarm_layout_sections_again): New function.
154 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
155 stubs for long calls if needed.
156 (arm_elf_create_output_section_statements): create stub_file bfd.
157 (arm_for_each_input_file_wrapper): New function.
158 (arm_lang_for_each_input_file): New function.
159 (lang_for_each_input_file): Define.
160 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
161 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
162 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
163 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
164 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
165 * lang.c (print_input_statement): Skip if bfd has
168 2008-05-14 Alan Modra <amodra@bigpond.net.au>
170 * Makefile.in: Regenerate.
172 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
175 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
176 of long and change return type to bfd_vma.
177 (definfo): Change type of address from long to bfd_vma.
178 (set_pep_value): Replace strtoul to strtoull.
179 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
180 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
182 (quick_reloc): Change argument address from int to bfd_size_type.
184 2008-05-08 Tom Tromey <tromey@redhat.com>
186 * ld.texinfo (PowerPC64 ELF64): Fix typo.
188 2008-05-08 Alan Modra <amodra@bigpond.net.au>
190 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
191 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
192 sections at the start of ".data" and provide a symbol to locate
193 the directory of embedded spe programs.
195 2008-05-08 Alan Modra <amodra@bigpond.net.au>
197 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
199 (fold_binary <SEGMENT_START>): Set expld.result.section to
200 current section. Expand comment. Formatting.
201 (fold_name <DEFINED>): Set expld.result.section to current section.
203 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
205 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
208 2008-04-25 Michael Frysinger <vapier@gentoo.org>
210 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
211 and targ_extra_emuls to elf32bfin.
213 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
215 * aclocal.m4: Regenerate.
216 * configure: Regenerate.
218 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
220 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
222 2008-04-08 Alan Modra <amodra@bigpond.net.au>
224 * po/POTFILES.in: Regenerate.
226 2008-04-08 Alan Modra <amodra@bigpond.net.au>
228 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
229 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
230 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
231 (struct tflist, clean_tmp): Move.
232 (new_tmp_file): New function, extracted from..
233 (embedded_spu_file): ..here.
234 (spu_elf_open_overlay_script, spu_elf_relink): New function.
235 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
236 Warn on --auto-overlay and zero local store.
237 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
238 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
239 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
240 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
241 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
242 (PARSE_AND_LIST_OPTIONS): Likewise.
243 (PARSE_AND_LIST_ARGS_CASES): Likewise.
244 (LDEMUL_CHOOSE_TARGET): Define.
246 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
249 * pe-dll.c (make_head): Fix iat and thunk addend offset.
251 2008-03-31 Nick Clifton <nickc@redhat.com>
253 * po/fr.po: Updated French translation.
255 2008-03-24 Ian Lance Taylor <iant@google.com>
257 The sha1 code is now in libiberty.
260 * Makefile.am (CFILES): Remove sha1.c.
261 (HFILES): Remove sha1.h.
262 (OFILES): Remove sha1.o.
263 (ld_new_SOURCES): Remove sha1.c.
264 (sha1.o): Remove target.
265 * Makefile.in: Rebuild.
267 2008-03-20 Alan Modra <amodra@bigpond.net.au>
269 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
271 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
273 * aclocal.m4: Regenerate.
274 * configure: Likewise.
275 * Makefile.in: Likewise.
277 2008-03-14 Alan Modra <amodra@bigpond.net.au>
279 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
280 spu_elf_build_stubs with is_spu_target.
282 2008-03-13 Alan Modra <amodra@bigpond.net.au>
284 * Makefile.am: Run "make dep-am".
285 * Makefile.in: Regenerate.
286 * configure: Regenerate.
288 2008-03-06 Joseph Myers <joseph@codesourcery.com>
289 Roman Zippel <zippel@linux-m68k.org>
291 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
292 (COMMONPAGESIZE): Define.
294 2008-02-22 Nick Clifton <nickc@redhat.com>
297 * ldlang.c (lang_size_sections_1): Honour the setting of an
298 lma_region even if there is no vma region set, or the vma region
299 is the same as the lma region.
301 2008-02-18 Nick Clifton <nickc@redhat.com>
303 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
305 * scripttempl/elf32cr16.sc: Likewise.
306 * scripttempl/elf32cr16c.sc: Likewise.
307 * scripttempl/elf32crx.sc: Likewise.
308 * scripttempl/elf32sh-symbian.sc: Likewise.
309 * scripttempl/elf_chaos.sc: Likewise.
310 * scripttempl/elfd10v.sc: Likewise.
311 * scripttempl/elfi370.sc: Likewise.
312 * scripttempl/elfm68hc11.sc: Likewise.
313 * scripttempl/elfm68hc12.sc: Likewise.
314 * scripttempl/ip2k.sc: Likewise.
315 * scripttempl/iq2000.sc: Likewise.
316 * scripttempl/mep.sc: Likewise.
317 * scripttempl/v850.sc: Likewise.
318 * scripttempl/xstormy16.sc: Likewise.
320 2008-02-16 Alan Modra <amodra@bigpond.net.au>
323 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
324 load_base before calling make_abs.
326 2008-02-15 Alan Modra <amodra@bigpond.net.au>
328 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
329 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
331 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
333 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
335 (is_ppc_elf): ..this new macro.
337 2008-02-15 Alan Modra <amodra@bigpond.net.au>
339 * ldmain.h (output_bfd): Delete.
340 * ldmain.c (output_bfd): Delete.
341 Replace all occurrences of output_bfd with link_info.output_bfd.
342 * ldcref.c: Likewise.
343 * ldctor.c: Likewise.
344 * ldemul.c: Likewise.
346 * ldfile.c: Likewise.
347 * ldlang.c: Likewise.
348 * ldmisc.c: Likewise.
349 * ldwrite.c: Likewise.
350 * pe-dll.c: Likewise.
351 * emultempl/aix.em: Likewise.
352 * emultempl/alphaelf.em: Likewise.
353 * emultempl/armcoff.em: Likewise.
354 * emultempl/armelf.em: Likewise.
355 * emultempl/avrelf.em: Likewise.
356 * emultempl/beos.em: Likewise.
357 * emultempl/elf-generic.em: Likewise.
358 * emultempl/elf32.em: Likewise.
359 * emultempl/gld960.em: Likewise.
360 * emultempl/hppaelf.em: Likewise.
361 * emultempl/irix.em: Likewise.
362 * emultempl/linux.em: Likewise.
363 * emultempl/lnk960.em: Likewise.
364 * emultempl/m68hc1xelf.em: Likewise.
365 * emultempl/mmix-elfnmmo.em: Likewise.
366 * emultempl/mmo.em: Likewise.
367 * emultempl/pe.em: Likewise.
368 * emultempl/pep.em: Likewise.
369 * emultempl/ppc32elf.em: Likewise.
370 * emultempl/ppc64elf.em: Likewise.
371 * emultempl/scoreelf.em: Likewise.
372 * emultempl/sh64elf.em: Likewise.
373 * emultempl/spuelf.em: Likewise.
374 * emultempl/sunos.em: Likewise.
375 * emultempl/vanilla.em: Likewise.
376 * emultempl/vxworks.em: Likewise.
377 * emultempl/xtensaelf.em: Likewise.
378 * emultempl/z80.em: Likewise.
379 * ldlang.c (open_output): Don't return output, instead write
380 link_info_output_bfd directly.
381 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
382 with link_info.output_bfd->xvec.
383 * emultempl/hppaelf.em: Likewise.
384 * emultempl/ppc32elf.em: Likewise.
385 * emultempl/ppc64elf.em: Likewise.
386 * emultempl/spuelf.em: Likewise.
388 2008-02-07 Alan Modra <amodra@bigpond.net.au>
390 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
391 * ldfile.c (ldfile_add_library_path): Likewise.
392 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
393 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
394 * emultempl/spuelf.em (embedded_spu_file): Likewise.
396 2008-02-07 Alan Modra <amodra@bigpond.net.au>
398 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
399 a "present" bit rather than low bit of .buf. Correct indexing
400 into _ovly_buf_table. Use relative loads and stores to access
401 overlay manager local vars.
402 * emultempl/spu_ovl.o: Regenerate.
404 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
407 * configure: Regenerated.
409 2008-01-31 Marc Gauthier <marc@tensilica.com>
411 * configure.tgt (xtensa*-*-*): Recognize processor variants.
413 2008-01-28 Fabian Groffen <grobian@gentoo.org>
415 * configure.tgt (x86_64-*-solaris2): Add support for this target.
417 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
420 * genscripts.sh: Check for the existence of BASH_LINENO not just
421 the BASH shell before generating line numbers in the emulation
424 2008-01-28 Alan Modra <amodra@bigpond.net.au>
426 * emultempl/spu_ovl.S: Rewrite.
427 * emultempl/spu_ovl.o: Regenerate.
428 * emultempl/spuelf.em (toe): Delete.
429 (spu_place_special_section): Add param to control section placement.
431 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
433 (spu_before_allocation): Adjust spu_elf_size_stubs call.
434 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
436 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
439 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
442 2008-01-25 Alan Modra <amodra@bigpond.net.au>
444 * ld.texinfo (INSERT): Describe.
445 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
446 (INSERT_K, AFTER, BEFORE): Add as tokens.
447 (ifile_p1): Handle INSERT statements.
448 (saved_script_handle, force_make_executable): Move to..
450 (previous_script_handle): New global var.
451 * ldmain.h (saved_script_handle, force_make_executable): Declare.
452 (previous_script_handle): Likewise.
453 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
454 * lexsup.c (parge_args <-T>): Set previous_script_handle.
455 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
456 (map_input_to_output_sections, print_statement): Likewise.
457 (lang_size_sections_1, lang_do_assignments_1): Likewise.
458 (insert_os_after): New function, extracted from..
459 (lang_insert_orphan): ..here.
460 (process_insert_statements): New function.
461 (lang_process): Call it.
462 (lang_add_insert): New function.
463 * ldlang.h (lang_insert_statement_enum): New.
464 (lang_insert_statement_type): New.
465 (lang_statement_union_type): Add insert_statement.
466 (lang_add_insert): Declare.
468 2008-01-18 Bob Wilson <bob.wilson@acm.org>
470 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
473 2008-01-16 Alan Modra <amodra@bigpond.net.au>
475 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
477 2008-01-16 Alan Modra <amodra@bigpond.net.au>
479 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
480 (lang_afile_asection_pair_statement_type): Delete.
481 (lang_statement_union_type): Delete afile_asection_pair_statement.
482 * ldlang.c (lang_insert_orphan): Delete case handling the above.
483 (map_input_to_output_sections, print_statement): Likewise.
485 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
487 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
489 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
491 2008-01-15 Alan Modra <amodra@bigpond.net.au>
494 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
495 syms to _bfd_elf_gc_keep.
496 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
497 ppc64_elf_edit_opd if no_opd_opt.
499 2008-01-11 Tristan Gingold <gingold@adacore.com>
500 Eric Botcazou <ebotcazou@adacore.com>
502 * ldlang.c (lang_end): Warns if the entry point is not found when
504 Emit an error if no root is specified when --gc-sections -r.
505 * ld.texinfo (Options): Document that --gc-sections is compatible
507 * ldmain.c (main): Do not error out if -r and --gc-sections.
508 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
510 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
513 * ldlang.c (lang_end): Issue a warning for a missing start symbol
514 of a shared library if the symbol was specified on the command
517 2008-01-10 Alan Modra <amodra@bigpond.net.au>
519 * ld.texinfo (--gc-sections): Describe linker behaviour.
521 For older changes see ChangeLog-2007
527 version-control: never