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