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