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