daily update
[binutils.git] / ld / ChangeLog
blob228d15f5df5b66a03793e9a245097c7ca45f5e5f
1 2008-06-06  Alan Modra  <amodra@bigpond.net.au>
3         * ldlang.c (name_match): New function.
4         (unique_section_p, walk_wild_consider_section): Use it here.
5         (walk_wild_section_general): And here.
6         (archive_path): New function.
7         (walk_wild): Match archive:path filespecs.
8         (open_input_bfds): Don't load archive:path files.
9         * emultempl/spuelf.em (choose_target): Set path_separator.
10         * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
12 2008-06-04  Nick Clifton  <nickc@redhat.com>
14         * ld.texinfo (Orphan Sections): Fix texi typo.
16 2008-06-04  Chris Metcalf  <cmetcalf@tilera.com>
18         * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
19         (ld_options): Add entry for --no-fatal-warnings.
20         (parse_args): Handle OPTION_NO_WARN_FATAL.
21         * ld.texinfo (Options): Document new command line switch.
23 2008-06-04  Alan Modra  <amodra@bigpond.net.au>
25         * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
27 2008-06-02  Nathan Sidwell  <nathan@codesourcery.com>
29         * ldlang.c (closest_target_match): Skip generic big and little
30         endian ELF targets.
32 2008-05-31  Evandro Menezes  <evandro@yahoo.com>
34         PR ld/6430
35         * ld.h (enum sort_order): New.
36         * ldlang.c (lang_check: Fix comment.
37         (lang_common): Sort commons in ascending or descending order.
38         (lang_one_common): Likewise.
39         * lexsup.c (ld_options): Have --sort-common take an option
40         argument.
41         (parse_args): Handle argument to --sort-common.
42         * ld.texinfo (--sort-common): Document new optional argument.
43         * NEWS: Mention new feature.
45 2008-05-28  Christophe Lyon  <christophe.lyon@st.com>
46         
47         * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
48         only.
50 2008-05-27  Kai Tietz  <kai.tietz@onevision.com>
52         * pe-dll.c (fill_edata): Make sure we calculate vma's in
53         type bfd_vma.
54         (generate_reloc): Likewise.
55         (pe_implied_import_dll): Likewise.
57 2008-05-21  Nick Clifton  <nickc@redhat.com>
59         PR ld/6519
60         * ld.texinfo (Orphan Sections): Mention that the linker will
61         provide start and stop symbols for orphaned sections if their
62         names are valid C identifiers.
63         * NEWS: Add an addendum to the description of the linker feature
64         for providing orphan section start and end symbols.
66 2008-05-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
68         * configure.in (--enable-got): New option.  Handle it.
69         * configure: Regenerate.
70         * config.in: Regenerate.
71         * emultempl/m68kelf.em: (got_handling_target_default): New shell
72         variable.
73         (GOT_HANDLING_TARGET_DEFAULT): New macro.
74         (GOT_HANDLING_DEFAULT): New macro.  Initialize it from configure
75         option if one was given.
76         (got_handling): New static variable.
77         (elf_m68k_create_output_section_statements): New static function
78         implementing hook.
79         (PARSE_AND_LIST_PROLOGUE): Define shell variable.
80         (OPTION_GOT): New macro.
81         (PARSE_AND_LIST_LONGOPTS): Define shell variable.  Specify
82         --got option.
83         (got): New linker option.
84         (PARSE_AND_LIST_OPTIONS): Define shell variable.  Print help string
85         for --got option.
86         (PARSE_AND_LIST_ARGS_CASES): Define shell variable.  Handle --got
87         option. 
88         * ld.texinfo: Document --got=<type> option.
89         * gen-doc.texi: Add M68K.
90         * NEWS: Mention the new feature.
92 2008-05-21  Evandro Menezes  <evandro@yahoo.com>
94         PR ld/6430
95         * ld.texinfo (--sort-common): Correct documentation to indicate
96         that sorting is performed by alignment, not size, biggest
97         alignment first.
99 2008-05-21  Christophe Lyon  <christophe.lyon@st.com>
100             Nick Clifton  <nickc@redhat.com>
102         * ld.texinfo (ARM): Document --stub-group-size=N option.
103         Move description of --pic-veneer option into the ARM section.
104         * NEWS: Mention the support for long function calls.
106 2008-05-15  Christophe Lyon  <christophe.lyon@st.com>
107         
108         * emultempl/armelf.em (build_section_lists): New function.
109         (stub_file): Define.
110         (need_laying_out): Define.
111         (group_size): Define.
112         (hook_stub_info): Define.
113         (hook_in_stub): New function.
114         (elf32_arm_add_stub_section): New function.
115         (gldarm_layout_sections_again): New function.
116         (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
117         stubs for long calls if needed.
118         (arm_elf_create_output_section_statements): create stub_file bfd.
119         (arm_for_each_input_file_wrapper): New function.
120         (arm_lang_for_each_input_file): New function.
121         (lang_for_each_input_file): Define.
122         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
123         (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
124         (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
125         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
126         (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
127         * lang.c (print_input_statement): Skip if bfd has
128         BFD_LINKER_CREATED.
130 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
132         * Makefile.in: Regenerate.
134 2008-05-09  Kai Tietz  <kai.tietz@onevision.com>
136         ld/PR6502
137         * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
138         of long and change return type to bfd_vma.
139         (definfo): Change type of address from long to bfd_vma.
140         (set_pep_value): Replace strtoul to strtoull.
141         (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
142         * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
143         ImageBase.
144         (quick_reloc): Change argument address from int to bfd_size_type.
146 2008-05-08  Tom Tromey  <tromey@redhat.com>
148         * ld.texinfo (PowerPC64 ELF64): Fix typo.
150 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
152         * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
153         * elf32ppc.sh: If building with spu support, put ".data.spehandle"
154         sections at the start of ".data" and provide a symbol to locate
155         the directory of embedded spe programs.
157 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
159         * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K.  Correct
160         MAX_K.
161         (fold_binary <SEGMENT_START>): Set expld.result.section to
162         current section.  Expand comment.  Formatting.
163         (fold_name <DEFINED>): Set expld.result.section to current section.
165 2008-04-28  Nathan Sidwell  <nathan@codesourcery.com>
167         * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
168         non-load sections.
170 2008-04-25  Michael Frysinger  <vapier@gentoo.org>
172         * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
173         and targ_extra_emuls to elf32bfin.
175 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
177         * aclocal.m4: Regenerate.
178         * configure: Regenerate.
180 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
182         * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
184 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
186         * po/POTFILES.in: Regenerate.
188 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
190         * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
191         auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
192         (spu_before_allocation): Warn on --auto-overlay and existing overlays.
193         (struct tflist, clean_tmp): Move.
194         (new_tmp_file): New function, extracted from..
195         (embedded_spu_file): ..here.
196         (spu_elf_open_overlay_script, spu_elf_relink): New function.
197         (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
198         Warn on --auto-overlay and zero local store.
199         (gld${EMULATION_NAME}_choose_target): New function to stash argv.
200         (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
201         OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
202         OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
203         (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
204         (PARSE_AND_LIST_OPTIONS): Likewise.
205         (PARSE_AND_LIST_ARGS_CASES): Likewise.
206         (LDEMUL_CHOOSE_TARGET): Define.
208 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
210         PR ld/6026
211         * pe-dll.c (make_head): Fix iat and thunk addend offset.
213 2008-03-31  Nick Clifton  <nickc@redhat.com>
215         * po/fr.po: Updated French translation.
217 2008-03-24  Ian Lance Taylor  <iant@google.com>
219         The sha1 code is now in libiberty.
220         * sha1.c: Remove.
221         * sha1.h: Remove.
222         * Makefile.am (CFILES): Remove sha1.c.
223         (HFILES): Remove sha1.h.
224         (OFILES): Remove sha1.o.
225         (ld_new_SOURCES): Remove sha1.c.
226         (sha1.o): Remove target.
227         * Makefile.in: Rebuild.
229 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
231         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
233 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
235         * aclocal.m4: Regenerate.
236         * configure: Likewise.
237         * Makefile.in: Likewise.
239 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
241         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
242         spu_elf_build_stubs with is_spu_target.
244 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
246         * Makefile.am: Run "make dep-am".
247         * Makefile.in: Regenerate.
248         * configure: Regenerate.
250 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
251             Roman Zippel  <zippel@linux-m68k.org>
253         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
254         (COMMONPAGESIZE): Define.
256 2008-02-22  Nick Clifton  <nickc@redhat.com>
258         PR ld/5785
259         * ldlang.c (lang_size_sections_1): Honour the setting of an
260         lma_region even if there is no vma region set, or the vma region
261         is the same as the lma region.
263 2008-02-18  Nick Clifton  <nickc@redhat.com>
265         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
266         relocatable link.
267         * scripttempl/elf32cr16.sc: Likewise.
268         * scripttempl/elf32cr16c.sc: Likewise.
269         * scripttempl/elf32crx.sc: Likewise.
270         * scripttempl/elf32sh-symbian.sc: Likewise.
271         * scripttempl/elf_chaos.sc: Likewise.
272         * scripttempl/elfd10v.sc: Likewise.
273         * scripttempl/elfi370.sc: Likewise.
274         * scripttempl/elfm68hc11.sc: Likewise.
275         * scripttempl/elfm68hc12.sc: Likewise.
276         * scripttempl/ip2k.sc: Likewise.
277         * scripttempl/iq2000.sc: Likewise.
278         * scripttempl/mep.sc: Likewise.
279         * scripttempl/v850.sc: Likewise.
280         * scripttempl/xstormy16.sc: Likewise.
282 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
284         PR ld/5761
285         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
286         load_base before calling make_abs.
288 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
290         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
291         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
292         Likewise.
293         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
294         Likewise.
295         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
296         uses with..
297         (is_ppc_elf): ..this new macro.
299 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
301         * ldmain.h (output_bfd): Delete.
302         * ldmain.c (output_bfd): Delete.
303         Replace all occurrences of output_bfd with link_info.output_bfd.
304         * ldcref.c: Likewise.
305         * ldctor.c: Likewise.
306         * ldemul.c: Likewise.
307         * ldexp.c: Likewise.
308         * ldfile.c: Likewise.
309         * ldlang.c: Likewise.
310         * ldmisc.c: Likewise.
311         * ldwrite.c: Likewise.
312         * pe-dll.c: Likewise.
313         * emultempl/aix.em: Likewise.
314         * emultempl/alphaelf.em: Likewise.
315         * emultempl/armcoff.em: Likewise.
316         * emultempl/armelf.em: Likewise.
317         * emultempl/avrelf.em: Likewise.
318         * emultempl/beos.em: Likewise.
319         * emultempl/elf-generic.em: Likewise.
320         * emultempl/elf32.em: Likewise.
321         * emultempl/gld960.em: Likewise.
322         * emultempl/hppaelf.em: Likewise.
323         * emultempl/irix.em: Likewise.
324         * emultempl/linux.em: Likewise.
325         * emultempl/lnk960.em: Likewise.
326         * emultempl/m68hc1xelf.em: Likewise.
327         * emultempl/mmix-elfnmmo.em: Likewise.
328         * emultempl/mmo.em: Likewise.
329         * emultempl/pe.em: Likewise.
330         * emultempl/pep.em: Likewise.
331         * emultempl/ppc32elf.em: Likewise.
332         * emultempl/ppc64elf.em: Likewise.
333         * emultempl/scoreelf.em: Likewise.
334         * emultempl/sh64elf.em: Likewise.
335         * emultempl/spuelf.em: Likewise.
336         * emultempl/sunos.em: Likewise.
337         * emultempl/vanilla.em: Likewise.
338         * emultempl/vxworks.em: Likewise.
339         * emultempl/xtensaelf.em: Likewise.
340         * emultempl/z80.em: Likewise.
341         * ldlang.c (open_output): Don't return output, instead write
342         link_info_output_bfd directly.
343         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
344         with link_info.output_bfd->xvec.
345         * emultempl/hppaelf.em: Likewise.
346         * emultempl/ppc32elf.em: Likewise.
347         * emultempl/ppc64elf.em: Likewise.
348         * emultempl/spuelf.em: Likewise.
350 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
352         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
353         * ldfile.c (ldfile_add_library_path): Likewise.
354         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
355         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
356         * emultempl/spuelf.em (embedded_spu_file): Likewise.
358 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
360         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
361         a "present" bit rather than low bit of .buf.  Correct indexing
362         into _ovly_buf_table.  Use relative loads and stores to access
363         overlay manager local vars.
364         * emultempl/spu_ovl.o: Regenerate.
366 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
368         PR 5715
369         * configure: Regenerated.
371 2008-01-31  Marc Gauthier  <marc@tensilica.com>
373         * configure.tgt (xtensa*-*-*): Recognize processor variants.
375 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
377         * configure.tgt (x86_64-*-solaris2): Add support for this target.
379 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
381         PR ld/5652
382         * genscripts.sh: Check for the existence of BASH_LINENO not just
383         the BASH shell before generating line numbers in the emulation
384         file.
386 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
388         * emultempl/spu_ovl.S: Rewrite.
389         * emultempl/spu_ovl.o: Regenerate.
390         * emultempl/spuelf.em (toe): Delete.
391         (spu_place_special_section): Add param to control section placement.
392         Adjust callers.
393         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
394         changes.
395         (spu_before_allocation): Adjust spu_elf_size_stubs call.
396         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
398 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
400         PR ld/5670
401         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
402         warning.
404 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
406         * ld.texinfo (INSERT): Describe.
407         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
408         (INSERT_K, AFTER, BEFORE): Add as tokens.
409         (ifile_p1): Handle INSERT statements.
410         (saved_script_handle, force_make_executable): Move to..
411         * ldmain.c: ..here.
412         (previous_script_handle): New global var.
413         * ldmain.h (saved_script_handle, force_make_executable): Declare.
414         (previous_script_handle): Likewise.
415         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
416         * lexsup.c (parge_args <-T>): Set previous_script_handle.
417         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
418         (map_input_to_output_sections, print_statement): Likewise.
419         (lang_size_sections_1, lang_do_assignments_1): Likewise.
420         (insert_os_after): New function, extracted from..
421         (lang_insert_orphan): ..here.
422         (process_insert_statements): New function.
423         (lang_process): Call it.
424         (lang_add_insert): New function.
425         * ldlang.h (lang_insert_statement_enum): New.
426         (lang_insert_statement_type): New.
427         (lang_statement_union_type): Add insert_statement.
428         (lang_add_insert): Declare.
430 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
432         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
433         changes from elf.sc.
435 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
437         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
439 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
441         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
442         (lang_afile_asection_pair_statement_type): Delete.
443         (lang_statement_union_type): Delete afile_asection_pair_statement.
444         * ldlang.c (lang_insert_orphan): Delete case handling the above.
445         (map_input_to_output_sections, print_statement): Likewise.
447 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
449         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
450         with __data_start.
451         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
453 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
455         PR 5604
456         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
457         syms to _bfd_elf_gc_keep.
458         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
459         ppc64_elf_edit_opd if no_opd_opt.
461 2008-01-11  Tristan Gingold  <gingold@adacore.com>
462             Eric Botcazou  <ebotcazou@adacore.com>
464         * ldlang.c (lang_end): Warns if the entry point is not found when
465         --gc-sections.
466         Emit an error if no root is specified when --gc-sections -r.
467         * ld.texinfo (Options): Document that --gc-sections is compatible
468         with -r and -q.
469         * ldmain.c (main): Do not error out if -r and --gc-sections.
470         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
472 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
474         PR ld/5533
475         * ldlang.c (lang_end): Issue a warning for a missing start symbol
476         of a shared library if the symbol was specified on the command
477         line.
479 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
481         * ld.texinfo (--gc-sections): Describe linker behaviour.
483 For older changes see ChangeLog-2007
485 Local Variables:
486 mode: change-log
487 left-margin: 8
488 fill-column: 74
489 version-control: never
490 End: