* ldlang.c (lang_check_section_addresses): Catch overlap for
[platform/upstream/binutils.git] / ld / ChangeLog
1 2010-07-17  Alan Modra  <amodra@gmail.com>
2
3         * ldlang.c (lang_check_section_addresses): Catch overlap for
4         sections that wrap around the address space.
5
6 2010-06-29  Nick Clifton  <nickc@redhat.com>
7
8         * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
9         with the .gcc_except_table. prefix.
10
11 2010-06-29  Alan Modra  <amodra@gmail.com>
12
13         * emulparams/maxqcoff.sh: Delete file.
14         * scripttempl/maxqcoff.sc: Delete file.
15         * Makefile.am: Remove references to maxq.
16         * configure.tgt: Likewise.
17         * Makefile.in: Regenerate.
18         * configure: Regenerate.
19         * po/POTFILES.in: Regenerate.
20
21 2010-06-27  Alan Modra  <amodra@gmail.com>
22
23         * pe-dll.c (fill_edata): Avoid set but unused warning.
24         (pe_walk_relocs_of_symbol): Delete set but unused variables.
25         (generate_reloc, pe_implied_import_dll): Likewise.
26         * emultempl/aix.em (open_dynamic_archive): Likewise.
27         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
28         (xtensa_layout_wild): Likewise.
29         (xtensa_colocate_output_literals_callback): Likewise.
30
31 2010-06-25  Alan Modra  <amodra@gmail.com>
32
33         * emultempl/ppc64elf.em (prelim_size_sections): New function.
34         (ppc_before_allocation): Use it.  Size sections before toc edit too.
35
36 2010-06-25  Alan Modra  <amodra@gmail.com>
37
38         * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
39
40 2010-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
41
42         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
43         auto-import and merge-rdata defaults same for i[3-7]86 and
44         x86_64 mingw.
45
46 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
47
48         * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
49
50 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
51
52         PR ld/11603
53         * pe-dll.c (process_def_file_and_drectve): Reorder check for
54         forwarded export name after check for ordinary export.
55
56 2010-06-08  Bernd Schmidt  <bernds@codesourcery.com>
57
58         * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
59
60 2010-06-08  Nick Clifton  <nickc@redhat.com>
61
62         * fdl.texi: Replace with v1.3 text.
63         * ld.texinfo: Replace abbreviated 20th century year numbers with
64         full versions.
65         * ldint.texinfo: Likewise.
66         Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
67         include of the fdl.texi file.
68
69 2010-06-01  Tristan Gingold  <gingold@adacore.com>
70
71         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
72         readonly output-section. Handle LIB$INITIALIZE and sections
73         created by gcc.
74         * emultempl/vms.em (vms_place_orphan): Add comments.
75
76 2010-05-28  Nick Clifton  <nickc@redhat.com>
77
78         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
79         * Makefile.in: Regenerate.
80
81 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
82
83         PR ld/11628
84         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
85         multiple of maximum page size.
86
87 2010-05-25  Nick Clifton  <nickc@redhat.com>
88
89         * Makefile.am: Fix typo.
90         * Makefile.in: Regenerate.
91
92 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
93             Joseph Myers  <joseph@codesourcery.com>
94             Andrew Stubbs  <ams@codesourcery.com>
95
96         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
97         (eshelf_fd.c, eshlelf_fd.c): New rules.
98         * Makefile.in: Regenerate.
99         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
100         emulations.
101         * emulparams/shelf_fd.sh: New file.
102         * emulparams/shlelf_fd.sh: New file.
103         * emulparams/shlelf_linux.sh: Update comment.
104
105 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
106
107         PR ld/11621
108         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
109         * Makefile.in: Regenerate.
110
111 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
112
113         * deffilep.y (opt_name): Allow leading dot.
114         (dot_name): Likewise.
115         (anylang_id): Likewise.
116         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
117         default auto_import.
118         (gld${EMULATION_NAME}_handle_option): Warn about v1.
119         (pep_find_data_imports): Remove superflous warnings about
120         auto-import.
121         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
122         and active pseudo-relocation-v2 rdata into data section.
123         * emultempl/pe.em (default_merge_rdata): New shell variable.
124         (MERGE_RDATA_V2): New macro.
125         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
126         selected script.
127
128 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
129
130         * emultempl/pe.em (is_underscoring): New helper function.
131         (gld_${EMULATION_NAME}_before_parse): Replace code
132         for pe(p)_leading_underscore detection by is_underscoring.
133         (U): Likewise.
134         (GET_INIT_SYMBOL_NAME): Likewise.
135         (U_SIZE): Likewise.
136         (set_pe_name):
137         (set_entry_point):
138         (gld_${EMULATION_NAME}_set_symbols):
139         * emultempl/pep.em: Likewise.
140         * pe-dll.c (pe_detail_list): Set default
141         underscoring for x64 target.
142         (pe_dll_id_target): Add initialization of
143         pe(p)_leading_underscore.
144
145 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
146
147         * pe-dll.c: Removed trailing whitespaces.
148
149 2010-05-14  Alan Modra  <amodra@gmail.com>
150
151         PR ld/11583
152         * ldexp.c (exp_fold_tree_1): If assignment source expression is
153         invalid, make the destination symbol undefined.
154
155 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
156
157         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
158         Initialize pe(p)_leading_underscore variable.
159         (set_pe_name): Likewise.
160         * emultempl/pep.em: Likewise.
161         Additional change default to non-underscore for
162         pep_leading_underscore equal to -1.
163
164 2010-05-07  Tristan Gingold  <gingold@adacore.com>
165
166         * Makefile.in: Regenerate with automake 1.11.1.
167         * aclocal.m4: Ditto.
168
169 2010-05-05  Nick Clifton  <nickc@redhat.com>
170
171         * po/es.po: Updated Spanish translation.
172
173 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
174
175         * pe-dll.c (_nm_-symbols): Use always underscored variant
176         for symbols.
177         (__imp_-symbols): Likewise.
178         (___imp_-symbols): Likewise.
179         * NEWS: Mention ABI change for x64 PE-COFF.
180
181 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
182
183         * Makefile.am (install-exec-local): Properly install ld as
184         default cross linker.
185         * Makefile.in: Regenerated.
186
187 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
188             Nick Clifton  <nickc@redhat.com>
189
190         * configure.in (install_as_default): Define and set to true
191         unless --enable-gold=both/gold has been specified.
192         * configure: Regenerate.
193
194         * Makefile.am (transform): Use ld.bfd as the default name of
195         the linker.
196         (install-exec-local): Also install the executable as a binary
197         named 'ld' if install_as_default is true.
198         * Makefile.in: Regenerate.
199
200 2010-04-22  Nick Clifton  <nickc@redhat.com>
201
202         * po/ld.pot: Updated by the Translation project.
203         * po/vi.po: Updated Vietnamese translation.
204         * po/bg.po: Updated Bulgarian translation.
205
206 2010-04-15  Andrew Haley  <aph@redhat.com>
207
208         * emultempl/armelf.em (merge_exidx_entries): New variable.
209         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
210         ("no-merge-exidx-entries"): New option.
211         * ld.texinfo (merge-exidx-entries): Document this option.
212
213 2010-04-14  Tristan Gingold  <gingold@adacore.com>
214
215         * emulparams/alphavms.sh: New file.
216         * emultempl/vms.em: New file.
217         * scripttempl/alphavms.sc: New file.
218         * configure.tgt (alpha*-*-*vms*): Added.
219         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
220         (ealphavms.c): New target.
221         * Makefile.in: Regenerate.
222
223 2010-04-09  Nick Clifton  <nickc@redhat.com>
224
225         * ldlang.c (wild_sort): Remove unused variable section_name.
226
227 2010-04-07  Alan Modra  <amodra@gmail.com>
228
229         * configure: Regenerate.
230
231 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
232
233         PR ld/11434
234         * ld/testsuite/ld-x86-64/unique1.d: New.
235         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
236
237         * ld-x86-64/x86-64.exp: Run unique1.
238
239 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
240
241         * emultempl/pep.em (U): Macro modified.
242         (U_SIZE): New helper macro.
243         (GET_INIT_SYMBOL_NAME): Likewise.
244         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
245         and OPTION_LEADING_UNDERSCORE enumerator-values.
246         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
247         option.
248         (definfo): Add new member is_c_symbol.
249         (D): Add to macro underscore mode parameter.
250         (init): Add definition for is_c_symbol.
251         (gld_${EMULATION_NAME}_list_options): Display new options.
252         (set_pep_name): Adjust underscoring dependent fixed
253         symbol handling.
254         (gld_${EMULATION_NAME}_set_symbols): Likewise.
255         (saw_option): Likewise.
256         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
257         (set_entry_point): Initial initial_symbol_char dependent to
258         target's default and new option flag pep_leading_underscore.
259         * emultempl/pe.em (U): Macro modified.
260         (U_SIZE): New helper macro.
261         (GET_INIT_SYMBOL_NAME): Likewise.
262         (OPTION_LEADING_UNDERSCORE): Add new option define.
263         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
264         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
265         option.
266         (definfo): Add new member is_c_symbol.
267         (D): Add to macro underscore mode parameter.
268         (init): Add definition for is_c_symbol.
269         (gld_${EMULATION_NAME}_list_options): Display new options.
270         (set_pep_name): Adjust underscoring dependent fixed
271         symbol handling.
272         (gld_${EMULATION_NAME}_set_symbols): Likewise.
273         (saw_option): Likewise.
274         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
275         (set_entry_point): Initial initial_symbol_char dependent to
276         target's default and new option flag pep_leading_underscore.
277         * pe-dll.c (pe_leading_underscore): New flag variable.
278         (pe_detail_list): Remove const to allow modify of
279         member underscore.
280         (pe_dll_id_target): Initialize pe_details' underscore variable
281         dependent to target's default and flag pe_leading_underscore.
282         * pe-dll.h (pe_leading_underscore): Add extern declaration of
283         option flag.
284         * pep-dll.c (pe_leading_underscore): Add alias define for
285         pep_leading_underscore.
286         * pep-dll.h (pep_leading_underscore) Add extern declaration of
287         option flag.
288         * ld.texinfo: Add documentation for --(no-)leading-underscore
289         option.
290
291 2010-03-26  Alan Modra  <amodra@gmail.com>
292
293         PR ld/11426
294         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
295         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
296
297 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
298
299         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
300         eelf32_tic6x_le.o.
301         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
302         * NEWS: Add news entry for TI C6X support.
303         * configure.tgt (tic6x-*-*): New.
304         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
305
306 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
307
308         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
309         BSS_NAME): Define if not already defined.  Use in place of some
310         hardcoded section names.
311
312 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
313
314         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
315
316 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
317
318         PR ld/11384
319         * emultempl/sh64elf.em: Add missing EOF.
320
321 2010-03-18  Doug Semler  <dougsemler@gmail.com>
322
323         * pe-dll.c (make_one): Make text section readonly.
324         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
325         the jump stub on X86 as /SAFESEH compatible for
326         native toolchains.
327
328 2010-03-17  Alan Modra  <amodra@gmail.com>
329
330         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
331         *prev instead.  Update all callers.
332
333 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
334
335         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
336         region and phdrs as their placement section.
337
338 2010-03-15  Alan Modra  <amodra@gmail.com>
339
340         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
341         (ppc_before_allocation): Call sort_toc_sections.
342         (no_toc_sort, OPTION_NO_TOC_SORT): New.
343         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
344          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
345
346 2010-03-14  Alan Modra  <amodra@gmail.com>
347
348         PR ld/11378
349         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
350         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
351
352 2010-03-11  George Gensure  <werkt0@gmail.com>
353
354         PR ld/11367
355         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
356
357 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
358
359         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
360         eelf_i386_sol2.o.
361         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
362         (eelf32_sparc_sol2.c): New rule.
363         (eelf64_sparc_sol2.c): Likewise.
364         (eelf_x86_64_sol2.c): Likewise.
365         (eelf_i386_sol2.c): Likewise.
366         * Makefile.in: Regenerate.
367         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
368         elf_i386_sol2.
369         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
370         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
371         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
372         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
373         Add target_extra_emuls.
374         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
375         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
376         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
377         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
378         * emulparams/elf32_sparc_sol2.sh: New file.
379         * emulparams/elf64_sparc_sol2.sh: New file.
380         * emulparams/elf_i386_sol2.sh: New file.
381         * emulparams/elf_x86_64_sol2.sh: New file.
382         * emultempl/solaris2.em: New file.
383
384 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
385
386         PR ld/11330
387         * ld.texinfo: Replace explicitely with explicitly.
388
389 2010-02-27  Jie Zhang  <jie@codesourcery.com>
390
391         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
392         .fini_array.* when do relocatable linking.
393         * scripttempl/elf.sc: Likewise.
394         * scripttempl/elf32sh-symbian.sc: Likewise.
395         * scripttempl/elf64hppa.sc: Likewise.
396         * scripttempl/elfxtensa.sc: Likewise.
397
398 2010-02-26  Alan Modra  <amodra@gmail.com>
399
400         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
401         .fini_array.*.
402         * scripttempl/armbpabi.sc: Likewise.
403         * scripttempl/elf32sh-symbian.sc: Likewise.
404         * scripttempl/elf64hppa.sc: Likewise.
405         * scripttempl/elfxtensa.sc: Likewise.
406
407 2010-02-25  Alan Modra  <amodra@gmail.com>
408
409         PR ld/11304
410         * ldlang.c (init_os): Remove isec param.  Don't check for
411         bfd_section already set or call bfd_init_private_section_data
412         here.
413         (exp_init_os): Update init_os call.
414         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
415         flags.  Call bfd_init_private_section_data here.
416         (map_input_to_output_sections): Tidy.  Update init_os calls.
417         Use os->sectype to select sec flags for lang_data_statement.
418
419 2010-02-23  Alan Modra  <amodra@gmail.com>
420
421         PR ld/11304
422         * ldlang.c: Revert last patch.
423
424 2010-02-23  Nick Clifton  <nickc@redhat.com>
425
426         * po/bg.po: Updated Bulgarian translation.
427
428 2010-02-22  Alan Modra  <amodra@gmail.com>
429
430         PR ld/11304
431         * ldlang.c (exp_init_os): Delete forward declaration.
432         (init_os): Don't check for bfd_section already created and don't
433         init addr_tree and load_base expressions here.
434         (map_input_to_output_sections): Only map input to output sections
435         and set constraints here, and as an exception, create output
436         sections which have their address set.  Move all the other code to..
437         (create_other_output_sections): ..here.  New function.  Handle init
438         of addr_tree and load_base here too.
439         (lang_process): Call create_other_output_sections.
440
441 2010-02-19  Alan Modra  <amodra@gmail.com>
442
443         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
444         * Makefile.in: Regenerate.
445
446 2010-02-19  Alan Modra  <amodra@gmail.com>
447
448         * ldlang.c (unique_section_p): Add os param.  Allow group
449         sections to match /DISCARD/.  Update all callers.
450         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
451         (LDEMUL_BEFORE_ALLOCATION): Define.
452
453 2010-02-15  Nick Clifton  <nickc@redhat.com>
454
455         * po/vi.po: Updated Vietnamese translation.
456
457 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
458
459         * Makefile.am (CFILES): Add ldlex-wrapper.c.
460         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
461         (ldlex.o): Replace with...
462         (ldlex-wrapper.o): ...this new rule.
463         (EXTRA_ld_new_SOURCES): Add ldlex.l.
464         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
465         * Makefile.in: Regenerate.
466         * ldlex.l (sysdep.h): Don't include here.
467         * ldlex-wrapper.c: New file.
468
469 2010-02-09  Alan Modra  <amodra@gmail.com>
470
471         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
472         function parameters.
473
474 2010-02-05  Nick Clifton  <nickc@redhat.com>
475
476         * configure.in (ALL_LIBGUAS): Add bg.
477         * configure: Regenerate.
478         * po/bg.po: New Bulgarian translation.
479
480 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
481
482         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
483         --target1-abs and --target1-rel options.
484
485 2010-02-03  Nick Clifton  <nickc@redhat.com>
486
487         * emultempl/alphaelf.em: Update value expected from elf_object_id.
488         * emultempl/hppaelf.em: Likewise.
489         * emultempl/mipself.em: Likewise.
490         * emultempl/ppc32elf.em: Likewise.
491         * emultempl/ppc64elf.em: Likewise.
492
493 2010-02-03  Alan Modra  <amodra@gmail.com>
494
495         * emultempl/ppc64elf.em (build_toc_list): Report errors from
496         ppc64_elf_next_toc_section.
497         (after_allocation): Update for changed function names and params.
498         Run second pass of multitoc partitioning.
499
500 2010-01-21  Jon Grant  <jg@jguk.org>
501             Nick Clifton  <nickc@redhat.com>
502
503         PR 4437
504         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
505         a missing file or library.  Instead mark the entry as missing and
506         set the global flag to indicate that missing files were
507         encountered.
508         * ldlang.c (missing_files): New exported variable.
509         (load_symbols): Skip loading if the file is missing.
510         (open_input_bfds): Terminate link if any input files were
511         missing.
512         * ldlang.h (struct lang_input_statement_struct): Add missing_file
513         field.
514         Add export of missing_file variable.
515
516 2010-01-13  DJ Delorie  <dj@redhat.com>
517
518         * emultempl/elf32.em (_place_orphan): If an input section doesn't
519         match an existing output section, but an unused output section
520         statement does match, use it.
521         * emultempl/pe.em (_place_orphan): Likewise.
522         * emultempl/pep.em (_place_orphan): Likewise.
523
524 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
525
526         * configure: Regenerate.
527         * Makefile.in: Regenerate.
528
529 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
530
531         * ldver.c (ldversion): Change to "Copyright 2010".
532
533 2010-01-08  Alan Modra  <amodra@gmail.com>
534
535         PR 11107
536         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
537
538 For older changes see ChangeLog-2009
539 \f
540 Local Variables:
541 mode: change-log
542 left-margin: 8
543 fill-column: 74
544 version-control: never
545 End: