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