Don't add the trailing `\n' for LDPL_ERROR.
[binutils-gdb.git] / ld / ChangeLog
1 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/12288
4 * plugin.c (message): Don't add the trailing `\n' for
5 LDPL_ERROR.
6
7 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR ld/12288
10 * testplug.c: Remove the trailing `\n' from TV_MESSAGE.
11
12 2010-12-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
13
14 PR ld/12288
15 * plugin.c (message): Use putchar for the trailing `\n'.
16
17 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
18 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
19
20 PR ld/12289
21 * ldmain.c (main): Don't call plugin_call_cleanup.
22
23 * plugin.c (plugin_call_cleanup): Make it static.
24 (message): Don't call plugin_call_cleanup.
25 (plugin_load_plugins): Call xatexit with plugin_call_cleanup.
26
27 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR ld/12289
30 * plugin.c (message): Call plugin_call_cleanup on fatal
31 error.
32
33 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
34
35 * plugin.c (message): Add a space after `:' in error message.
36
37 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
38
39 * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
40 to einfo.
41 (get_symbols): Likewise.
42 (plugin_notice): Likewise.
43 (plugin_multiple_definition): Likewise.
44
45 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
46
47 PR ld/12288
48 * plugin.c (message): Add the trailing `\n'.
49
50 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
51
52 * ldfile.c (ldfile_open_file_search): Check maybe_archive instead
53 of is_archive.
54 * emultempl/aix.em: Likewise.
55 * emultempl/elf32.em: Likewise.
56 * emultempl/linux.em: Likewise.
57 * emultempl/pe.em: Likewise.
58 * emultempl/pep.em: Likewise.
59 * emultempl/sunos.em: Likewise.
60 * emultempl/vms.em: Likewise.
61
62 * ldlang.c (new_afile): Set maybe_archive instead of is_archive..
63
64 * ldlang.h (lang_input_statement_struct): Replace is_archive
65 with maybe_archive.
66
67 2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
68
69 PR ld/12277
70 * plugin.c (asymbol_from_plugin_symbol): Properly convert LTO
71 plugin visibility to ELF visibility.
72 (is_visible_from_outside): Re-indent.
73
74 2010-12-04 Alan Modra <amodra@gmail.com>
75
76 * ldlang.c (lang_size_sections_1): Align lma using same alignment
77 as for vma.
78
79 2010-12-03 H.J. Lu <hongjiu.lu@intel.com>
80
81 * lexsup.c (ld_options): Fix a typo in comments.
82
83 2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
84
85 * plugin.h: Re-indent.
86
87 2010-11-30 Joel Sherrill <joel.sherrill@oarcorp.com>
88
89 * configure.tgt: Add sparc64-rtems.
90
91 2010-11-26 Alan Modra <amodra@gmail.com>
92
93 * po/ja.po: Update.
94
95 2010-11-25 Alan Modra <amodra@gmail.com>
96
97 * po/bg.po: Update.
98 * po/es.po: Update.
99 * po/fi.po: Update.
100 * po/ja.po: New.
101 * po/zh_CN.po: Update.
102
103 2010-11-25 Jan Hubicka <hubicka@ucw.cz>
104
105 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot
106 sections.
107
108 2010-11-23 Matthias Klose <doko@ubuntu.com>
109
110 * configure.ac: For --enable-gold, handle value `default' instead of
111 `both*'. Always install ld as ld.gold, install as ld if gold is
112 the default.
113 * configure: Regenerate.
114
115 2010-11-21 H.J. Lu <hongjiu.lu@intel.com>
116
117 * ldfile.c: Re-indent plugin code.
118 * ldlang.c: Likewise.
119 * ldmain.c: Likewise.
120 * plugin.c: Likewise.
121
122 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
123
124 PR ld/12246
125 * plugin.c (asymbol_from_plugin_symbol): Set alignment of
126 common symbol to 1 for For ELF targets.
127
128 2010-11-20 H.J. Lu <hongjiu.lu@intel.com>
129
130 PR ld/12247
131 * lexsup.c (parse_args): Properly report loading plugin error.
132
133 2010-11-19 Dave Korn <dave.korn.cygwin@gmail.com>
134
135 * plugin.c (is_visible_from_outside): New function.
136 (get_symbols): Use it.
137
138 2010-11-16 Jie Zhang <jie.zhang@analog.com>
139
140 * Makefile.am (eelf32bfinfd.c, eelf32bfin.c): Depend on bfin.em.
141 * Makefile.in: Regenerated.
142 * emulparams/bfin.sh (EXTRA_EM_FILE): Set.
143 * emulparams/elf32bfinfd.sh (EXTRA_EM_FILE): Likewise.
144 * emultempl/bfin.em: New.
145
146 2010-11-16 Yasuaki Taniguchi <taniguchi.yasua@jp.fujitsu.com>
147
148 * emultempl/pe.em (_list_options): Correct typo.
149 * emultempl/pep.em (_list_options): Likewise.
150
151 2010-11-08 Thomas Schwinge <thomas@schwinge.name>
152
153 * configure.host: Add stanza for *-*-gnu*.
154
155 2010-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
156
157 * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
158
159 2010-11-05 Tristan Gingold <gingold@adacore.com>
160
161 * po/ld.pot: Regenerate
162 * po/POTFILES.in: Regenerate
163
164 2010-11-05 Tristan Gingold <gingold@adacore.com>
165
166 * NEWS: Add marker for 2.21.
167
168 2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
169
170 * plugin.h (plugin_active_plugins_p): New prototype.
171 (is_ir_dummy_bfd): Delete prototype.
172 * plugin.c: Fix formatting issues.
173 (is_ir_dummy_bfd): Make static.
174 (plugin_active_plugins_p): New function.
175 * ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
176 are loaded. Always close file descriptor after claim handler returns.
177 * ldmain.c (add_archive_element): Likewise.
178
179 2010-11-05 Alan Modra <amodra@gmail.com>
180
181 * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD.
182 (map_input_to_output_sections): Likewise.
183 (lang_size_sections_1): Likewise.
184 (IGNORE_SECTION): Don't test SEC_NEVER_LOAD.
185 (lang_check_section_addresses): Likewise.
186
187 2010-11-04 Kai Tietz <kai.tietz@onevision.com>
188
189 * scripttempl/pe.sc (.debug_types): New.
190 * scripttempl/pep.sc: Likewise.
191
192 2010-11-04 Alan Modra <amodra@gmail.com>
193
194 * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
195
196 2010-11-03 Nick Clifton <nickc@redhat.com>
197
198 PR ld/12001
199 * ldlang.c (ldlang_def_chain_list): New variable. Contains a list
200 of symbols defined via the --defsym command line option and
201 currently waiting assignment.
202 (insert_defined): Add a defined symbol to the symbol table.
203 (ldlang_add_def): Add a entry to the ldlang_def_chain_list.
204 (lang_place_defineds): Walk ldlang_def_chain_list defining the
205 symbols.
206 (lang_process): Call lang_place_defineds.
207 (lang_add_assignment): If the assignment has come from a --defsym
208 command line option then call lang_add_def.
209
210 2010-11-03 Alan Modra <amodra@gmail.com>
211
212 * Makefile.am (eelf64hppa.c): Correct dependencies.
213 * Makefile.in: Regenerate.
214
215 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
216
217 * scripttempl/armbpabi.sc: Include compressed DWARF debug
218 sections.
219 * scripttempl/avr.sc: Likewise.
220 * scripttempl/elf32cr16.sc: Likewise.
221 * scripttempl/elf32crx.sc: Likewise.
222 * scripttempl/elf32msp430.sc: Likewise.
223 * scripttempl/elf32msp430_3.sc: Likewise.
224 * scripttempl/elf32sh-symbian.sc: Likewise.
225 * scripttempl/elf64hppa.sc: Likewise.
226 * scripttempl/elf_chaos.sc: Likewise.
227 * scripttempl/elfd10v.sc: Likewise.
228 * scripttempl/elfd30v.sc: Likewise.
229 * scripttempl/elfi370.sc: Likewise.
230 * scripttempl/elfm68hc11.sc: Likewise.
231 * scripttempl/elfm68hc12.sc: Likewise.
232 * scripttempl/elfxtensa.sc: Likewise.
233 * scripttempl/ip2k.sc: Likewise.
234 * scripttempl/iq2000.sc: Likewise.
235 * scripttempl/mep.sc: Likewise.
236 * scripttempl/mmo.sc: Likewise.
237 * scripttempl/v850.sc: Likewise.
238 * scripttempl/xstormy16.sc: Likewise.
239
240 2010-10-29 H.J. Lu <hongjiu.lu@intel.com>
241
242 * ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
243 bfd_openr returns.
244 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
245
246 * scripttempl/elf.sc: Include compressed DWARF debug sections.
247
248 2010-10-28 Alan Modra <amodra@gmail.com>
249
250 * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
251
252 2010-10-28 Matthias Klose <doko@ubuntu.com>
253
254 * ld.texinfo: Add directory section for info document.
255 * ldint.texinfo: Likewise.
256
257 2010-10-28 Alan Modra <amodra@gmail.com>
258
259 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
260 --no-undefined-version, don't report dot sym versions added by ld.
261
262 2010-10-28 Alan Modra <amodra@gmail.com>
263
264 * ldlang.h (ldlang_add_undef): Add cmdline param.
265 * ldlang.c (undef_from_cmdline): New var.
266 (ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
267 (lang_end): Really require -e or -u from command line on
268 relocatable --gc-sections.
269 * ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
270 * ldgram.y (extern_name_list_body): Likewise.
271 * lexsup.c (parse_args): Likewise.
272 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
273
274 2010-10-25 Alan Modra <amodra@gmail.com>
275
276 * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
277 Formatting.
278
279 2010-10-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
280
281 * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
282 elf32-sparc-sol2.
283 * emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
284 elf64-sparc-sol2.
285
286 2010-10-22 Alan Modra <amodra@gmail.com>
287
288 * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
289 output when section has no contents.
290 (build_link_order <lang_reloc_statement_enum>): Likewise.
291
292 2010-10-21 Joseph Myers <joseph@codesourcery.com>
293
294 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
295 .c6xabi.attributes, not __TI_build_attributes.
296
297 2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
298
299 * plugin.c (get_symbols): Check symbol type correctly.
300
301 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
302
303 * configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
304 * configure: Regenerate.
305 * config.in: Likewise.
306 * plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
307 trival LoadLibrary-based replacement for Windows systems.
308 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
309 replacement based on GetProcAddress.
310 [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
311 * sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
312 anymore, use its own guard.
313
314 2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
315
316 * plugin.c (add_input_file): Take copy of input string.
317 (add_input_library): Likewise.
318 (set_extra_library_path): Likewise.
319
320 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
321
322 Apply LD plugin patch series (part 6/6).
323 * ldlang.c (load_symbols): Handle bfd subsitution when calling the
324 add_archive_element callback.
325 * ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
326 member to the plugins and if claimed set "subsbfd" output parameter to
327 point to the dummy IR-only BFD.
328
329 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
330
331 Apply LD plugin patch series (part 5/6).
332 * plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
333 find the elf symbol data and set the visibility in the st_other field.
334
335 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
336
337 Apply LD plugin patch series (part 4/6).
338 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
339 plugin_call_all_symbols_read to before setting of gc_sym_list, and
340 open any new input files that may have been added during it.
341 * ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
342 plugin_multiple_definition and let it have first say over what to do
343 with the clashing definitions.
344 * plugin.c (no_more_claiming): New boolean variable.
345 (plugin_cached_allow_multiple_defs): Likewise.
346 (add_input_file): Implement.
347 (add_input_library): Likewise.
348 (set_extra_library_path): Likewise.
349 (plugin_call_claim_file): Don't do anything when no_more_claiming set.
350 (plugin_call_all_symbols_read): Set it. Disable link info
351 "allow_multiple_definition" flag, but cache its value.
352 (plugin_multiple_definition): New function.
353 * plugin.h (plugin_multiple_definition): Add prototype.
354 * testplug.c (addfile_enum_t): New enumerated typedef.
355 (add_file_t): New struct typedef.
356 (addfiles_list): New variable.
357 (addfiles_tail_chain_ptr): Likewise.
358 (record_add_file): New function.
359 (parse_option): Parse "add:", "lib:" and "dir:" options and call it.
360 (onall_symbols_read): Iterate the list of new files, libs and dirs,
361 adding them.
362
363 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
364
365 Apply LD plugin patch series (part 3/6).
366 * ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
367 * plugin.c (non_ironly_hash): Add new bfd hash table.
368 (plugin_load_plugins): Exit early if no plugins to load. If plugins
369 do load successfully, set notice_all flag in link info.
370 (get_symbols): Implement.
371 (plugin_load_plugins): Exit early if no plugins to load, else after
372 loading plugins successfully enable notice_all mode.
373 (init_non_ironly_hash): Lazily init non_ironly_hash table.
374 (plugin_notice): Record symbols referenced from non-IR files in the
375 non_ironly_hash. Suppress tracing, cref generation and nocrossrefs
376 tracking for symbols from dummy IR bfds.
377 * plugin.h: Fix formatting.
378 (plugin_notice): Add prototype.
379 * testplug.c (dumpresolutions): New global var.
380 (parse_options): Accept "dumpresolutions".
381 (onall_symbols_read): Get syms and dump resolutions if it was given.
382
383 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
384
385 Apply LD plugin patch series (part 2/6).
386 * ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
387 during compat checks if they pass, instead offer any successfully
388 opened and accepted file to the plugin claim file hooks chain. Create
389 a dummy bfd to accept symbols added by the plugin, if the plugin
390 claims the file.
391 * ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
392 read hook chain before ldemul_after_open.
393 * ldlang.h (struct lang_input_statement_struct): Add new single-bit
394 'claimed' flag.
395 * plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
396 (IRONLY_SUFFIX_LEN): Length of the above string.
397 (plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
398 to store symbols for ir-only files.
399 (is_ir_dummy_bfd): New function to check if a bfd is ir-only.
400 (asymbol_from_plugin_symbol): New function converts symbol formats.
401 (add_symbols): Call it to convert plugin syms to bfd syms and add
402 them to the dummy bfd.
403 * plugin.h: Add missing include guards.
404 (plugin_get_ir_dummy_bfd): Add prototype.
405 (is_ir_dummy_bfd): Likewise.
406 * testplug.c (TV_MESSAGE): New helper macro.
407 (struct claim_file): New struct.
408 (claim_file_t): New typedef.
409 (tag_names[]): Make static and const.
410 (claimfiles_list): New variable.
411 (claimfiles_tail_chain_ptr): Likewise.
412 (last_claimfile): Likewise.
413 (record_claim_file): Record a file to claim on a singly-linked list.
414 (parse_symdefstr): Parse an ASCII representation of a symbol from a
415 plugin option into the fields of a struct ld_plugin_symbol.
416 (record_claimed_file_symbol): Use it to parse plugin option for
417 adding a symbol.
418 (parse_option): Parse claim file and add symbol options.
419 (dump_tv_tag): Use TV_MESSAGE.
420 (onload): Likewise.
421 (onclaim_file): Make static. Use TV_MESSAGE. Scan list of files to
422 claim and claim this file if required, adding any symbols specified.
423 (onall_symbols_read): Make static and use TV_MESSAGE.
424 (oncleanup): Likewise.
425
426 2010-10-14 Dave Korn <dave.korn.cygwin@gmail.com>
427
428 Apply LD plugin patch series (part 1/6).
429 * configure.in: Add AC_CHECKs for file io and dlfcn headers and
430 functions and AC_SEARCH for -ldl.
431 (enable_plugins): New shell variable set if above tests find dlopen
432 functionality.
433 (ENABLE_PLUGINS): Add related automake conditional.
434 * configure: Regenerate.
435 * config.in: Likewise.
436 * Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
437 on ENABLE_PLUGINS being defined.
438 (PLUGIN_H): Likewise for header file.
439 (PLUGIN_OBJECT): Likewise for object file.
440 (PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
441 (AM_CPPFLAGS): Use PLUGIN_CFLAGS.
442 (CFILES): Use PLUGIN_C.
443 (HFILES): Use PLUGIN_H.
444 (OFILES): Use PLUGIN_OBJECT.
445 (ld_new_SOURCES): Use PLUGIN_C.
446 (noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
447 (libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
448 for test plugin.
449 (libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
450 (libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
451 * Makefile.in: Regenerate.
452 * sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
453 sys/file.h where available. Include dlfcn.h when ENABLE_PLUGINS.
454 (O_RDONLY): Supply default definition likewise to bfd's sysdep.h
455 (O_WRONLY): Likewise.
456 (O_RDWR): Likewise.
457 (O_ACCMODE): Likewise.
458 (O_BINARY): Likewise.
459 (SEEK_SET): Likewise.
460 (SEEK_CUR): Likewise.
461 (SEEK_END): Likewise.
462 * ldmisc.c (vfinfo): Make non-static. Add %p format char.
463 * ldmisc.h (vfinfo): Declare extern prototype.
464 * lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
465 OPTION_PLUGIN and OPTION_PLUGIN_OPT.
466 (ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
467 (parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
468 option parsing is complete.
469 * ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
470 after lang_finish.
471 * plugin.c: New source file.
472 * plugin.h: Likewise new header.
473 * testplug.c: New source file.
474
475 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
476
477 * emultempl/solaris2.em (elf_solaris2_before_allocation): Renamed
478 basever_syms to global_syms.
479 Emit global_syms into .dynamic section for all executables and
480 shared objects.
481 (elf_solaris2_after_allocation): New function.
482 (LDEMUL_AFTER_ALLOCATION): Use it.
483 * emulparams/solaris2.sh: New file.
484 * emulparams/elf32_sparc_sol2.sh: Use it.
485 * emulparams/elf64_sparc_sol2.sh: Likewise.
486 * emulparams/elf_i386_sol2.sh: Likewise.
487 * emulparams/elf_x86_64_sol2.sh: Likewise.
488 * Makefile.am (eelf32_sparc_sol2.c): Depend on
489 $(srcdir)/emulparams/solaris2.sh.
490 (eelf64_sparc_sol2.c): Likewise.
491 (eelf_x86_64_sol2.c): Likewise.
492 (eelf_i386_sol2.c): Likewise.
493 * Makefile.in: Regenerate.
494
495 2010-10-06 Nick Clifton <nickc@redhat.com>
496
497 * ld.texinfo: Update description of computation of VMA and LMA
498 addresses for output sections.
499
500 2010-10-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
501
502 * Makefile.am (ALL_64_EMULATIONS): Fix typo in last commit.
503 * Makefile.in: Regenerate.
504
505 * Makefile.am (ALL_EMULATIONS): Rewrite in terms of ...
506 (ALL_EMULATION_SOURCES): ... this new variable.
507 (ALL_64_EMULATIONS): Rewrite in terms of ...
508 (ALL_64_EMULATION_SOURCES): ... this new variable.
509 (EXTRA_ld_new_SOURCES): Rewrite in terms of the _SOURCES
510 variables.
511 (eelf32microblaze.c): Fix indentation.
512 * Makefile.in: Regenerate.
513
514 2010-10-04 Bernd Schmidt <bernds@codesourcery.com>
515
516 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use
517 _bfd_elf_single_rel_hdr.
518
519 2010-10-01 Alan Modra <amodra@gmail.com>
520
521 PR ld/12066
522 * ldexp.c (fold_name): Treat absolute symbols as plain numbers.
523 * ld.texinfo (Expression Section): Don't say absolute symbols
524 are addresses.
525
526 2010-09-29 Alan Modra <amodra@gmail.com>
527
528 * ldlang.c (lang_place_orphans): Zero vma when relocatable or non-load
529 section for orphans handled here.
530
531 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
532
533 * configure: Regenerate.
534
535 2010-09-23 Dave Korn <dave.korn.cygwin@gmail.com>
536
537 * scripttempl/armcoff.sc: Revert 2010-09-22 change.
538
539 2010-09-23 Alan Modra <amodra@gmail.com>
540
541 * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
542 to output section on a final link.
543
544 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
545
546 * ldlang.c (lang_add_section): Allow for debugging
547 section to be marked as noload but to keep content.
548 (IGNORE_SECTION): Likewise.
549 (lang_check_section_addresses): Likewise.
550 * ldwrite.c (build_link_order): Likewise.
551
552 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add
553 idata to orphan set.
554 * emultempl/pep.em: Likewise.
555 * scripttempl/armcoff.sc: Separate idata
556 and add __IAT_start__ and __IAT_end__ labels.
557 * scripttempl/pe.sc: Likewise.
558 * scripttempl/pep.sc: Likewise.
559
560 2010-09-20 David S. Miller <davem@davemloft.net>
561
562 * emulparams/elf32_sparc.sh: Set NOP to 0x01000000
563
564 2010-09-16 Alan Modra <amodra@gmail.com>
565
566 * ld.texinfo (NOLOAD): Do not erroneously state that contents will
567 appear in output file.
568 * ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
569 unless SEC_COFF_SHARED_LIBRARY.
570 (map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
571 output sections.
572 (lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
573 to update dot in region. Ditto when setting SEC_ALLOC if dot
574 advanced due to assignment.
575 * ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
576
577 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
578
579 * scripttempl/pep.sc: Add .xdata segment and
580 put into .pdata all segments beginning with .pdata.
581
582 2010-09-10 Alan Modra <amodra@gmail.com>
583
584 PR ld/11931
585 * ldlang.h (lang_for_each_statement_worker): Declare.
586 * ldlang.c (lang_for_each_statement_worker): Make global. Don't
587 recurse into children of output_section_statement with constraint
588 set to -1.
589 (print_assignment): Handle NULL output_section->bfd_section.
590 (lang_size_sections_1): Ignore output section statement address
591 when constraint is -1.
592 * emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.
593
594 2010-09-09 Tristan Gingold <gingold@adacore.com>
595
596 * NEWS: Add a entry for alpha-vms.
597
598 2010-09-07 Andrew Burgess <aburgess@broadcom.com>
599
600 * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
601 newly cloned section.
602
603 2010-09-02 Richard Henderson <rth@redhat.com>
604
605 * configure.tgt (x86_64-*-mingw*): Add 32-bit pe emulations too.
606
607 2010-08-31 Nick Clifton <nickc@redhat.com>
608
609 * ldlex.l (WILDCHAR): Add the caret and exclamation point
610 characters, so that they can be used inside globs.
611
612 2010-08-31 Nick Clifton <nickc@redhat.com>
613
614 * ld.texinfo (MEMORY): Clarify the behaviour of the ! character in
615 a region's attributes.
616
617 2010-08-31 Alan Modra <amodra@gmail.com>
618
619 * scripttempl/mmo.sc: Move assignment to "Main" inside .text
620 output section statement.
621
622 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR ld/11946
625 * emultempl/elf32.em (_before_allocation): Check audit entry
626 only on ELF input.
627
628 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
629
630 PR ld/11937
631 * emultempl/elf32.em (_after_open): Find one .eh_frame section
632 for --eh-frame-hdr.
633
634 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
635
636 PR ld/11937
637 * emultempl/elf32.em (_after_open): Find an ELF input for
638 --build-id and --eh-frame-hdr.
639
640 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
641
642 * Makefile.am (eshlelf_fd.c): Correct the name of the tool
643 directory.
644 * Makefile.in: Regenerate.
645
646 2010-08-20 Nick Clifton <nickc@redhat.com>
647
648 * emultempl/elf32.em (_after_open): Check for get_elf_backend_data
649 returning NULL.
650
651 2010-08-19 Alan Modra <amodra@gmail.com>
652
653 * NEWS: Mention change in linker script expression evaluation.
654
655 2010-08-19 Alan Modra <amodra@gmail.com>
656
657 * ld.texinfo (Expression Section): Detail expression evaluation.
658 (Builtin Functions <ADDR>): Correct.
659 (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
660 the same as ADDR.
661 (Builtin Functions <SEGMENT_START>): Typo fix.
662 * ldexp.c (new_number): New function.
663 (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
664 (fold_unary <'~', '!', '-'>): Don't make_abs.
665 (fold_binary): Simplify result section logic. Return NULL section
666 for logical ops.
667 (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
668 a consistent result.
669 (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
670 (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
671 (fold_name <NAME>): No need to handle absolute symbols differently
672 from relative ones.
673 (fold_name <ORIGIN>): Don't return valid result when
674 lang_first_phase_enum. Return new_rel_from_abs, not new_abs.
675 (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
676 (exp_fold_tree_1): Ajust for NULL expld.result.section. When assigning
677 a plain number to dot, assume the value is relative to expld.section.
678 Make terms not in an output section, absolute.
679 * ldlang.c (print_assignment): Fix style nit.
680 (lang_size_sections_1): Cope with NULL expld.result.section.
681 (lang_do_assignments_1): Likewise.
682
683 2010-08-12 Alan Modra <amodra@gmail.com>
684
685 * ldexp.c (new_rel): Remove "str". Update all call sites.
686 (exp_fold_tree_1): When assigning to dot, calculate nextdot
687 using expld.result.section rather than expld.section.
688
689 2010-08-06 Alan Modra <amodra@gmail.com>
690
691 PR ld/11887
692 * ldlang.c (lang_add_vers_depend): Don't leave version_needed
693 uninitialised.
694
695 2010-07-28 Alan Modra <amodra@gmail.com>
696
697 * ldexp.c (exp_print_tree): Print function-like binary nodes as
698 functions rather than in-fix operators. Use fputs and fputc
699 where appropriate.
700
701 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
702 Ina Pandit <ina.pandit@kpitcummins.com>
703
704 * configure.tgt: Match all v850 targets.
705
706 2010-07-20 Mike Frysinger <vapier@gentoo.org>
707
708 * ld.texinfo (VERSION): Remove "int" from example script and add ";".
709 Declare the default language as C.
710
711 2010-07-17 Alan Modra <amodra@gmail.com>
712
713 * ldlang.c (lang_check_section_addresses): Catch overlap for
714 sections that wrap around the address space.
715
716 2010-06-29 Nick Clifton <nickc@redhat.com>
717
718 * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
719 with the .gcc_except_table. prefix.
720
721 2010-06-29 Alan Modra <amodra@gmail.com>
722
723 * emulparams/maxqcoff.sh: Delete file.
724 * scripttempl/maxqcoff.sc: Delete file.
725 * Makefile.am: Remove references to maxq.
726 * configure.tgt: Likewise.
727 * Makefile.in: Regenerate.
728 * configure: Regenerate.
729 * po/POTFILES.in: Regenerate.
730
731 2010-06-27 Alan Modra <amodra@gmail.com>
732
733 * pe-dll.c (fill_edata): Avoid set but unused warning.
734 (pe_walk_relocs_of_symbol): Delete set but unused variables.
735 (generate_reloc, pe_implied_import_dll): Likewise.
736 * emultempl/aix.em (open_dynamic_archive): Likewise.
737 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
738 (xtensa_layout_wild): Likewise.
739 (xtensa_colocate_output_literals_callback): Likewise.
740
741 2010-06-25 Alan Modra <amodra@gmail.com>
742
743 * emultempl/ppc64elf.em (prelim_size_sections): New function.
744 (ppc_before_allocation): Use it. Size sections before toc edit too.
745
746 2010-06-25 Alan Modra <amodra@gmail.com>
747
748 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
749
750 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
751
752 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
753 auto-import and merge-rdata defaults same for i[3-7]86 and
754 x86_64 mingw.
755
756 2010-06-15 Joseph Myers <joseph@codesourcery.com>
757
758 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
759
760 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
761
762 PR ld/11603
763 * pe-dll.c (process_def_file_and_drectve): Reorder check for
764 forwarded export name after check for ordinary export.
765
766 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
767
768 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
769
770 2010-06-08 Nick Clifton <nickc@redhat.com>
771
772 * fdl.texi: Replace with v1.3 text.
773 * ld.texinfo: Replace abbreviated 20th century year numbers with
774 full versions.
775 * ldint.texinfo: Likewise.
776 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
777 include of the fdl.texi file.
778
779 2010-06-01 Tristan Gingold <gingold@adacore.com>
780
781 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
782 readonly output-section. Handle LIB$INITIALIZE and sections
783 created by gcc.
784 * emultempl/vms.em (vms_place_orphan): Add comments.
785
786 2010-05-28 Nick Clifton <nickc@redhat.com>
787
788 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
789 * Makefile.in: Regenerate.
790
791 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
792
793 PR ld/11628
794 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
795 multiple of maximum page size.
796
797 2010-05-25 Nick Clifton <nickc@redhat.com>
798
799 * Makefile.am: Fix typo.
800 * Makefile.in: Regenerate.
801
802 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
803 Joseph Myers <joseph@codesourcery.com>
804 Andrew Stubbs <ams@codesourcery.com>
805
806 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
807 (eshelf_fd.c, eshlelf_fd.c): New rules.
808 * Makefile.in: Regenerate.
809 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
810 emulations.
811 * emulparams/shelf_fd.sh: New file.
812 * emulparams/shlelf_fd.sh: New file.
813 * emulparams/shlelf_linux.sh: Update comment.
814
815 2010-05-25 Jay Krell <jay.krell@cornell.edu>
816
817 PR ld/11621
818 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
819 * Makefile.in: Regenerate.
820
821 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
822
823 * deffilep.y (opt_name): Allow leading dot.
824 (dot_name): Likewise.
825 (anylang_id): Likewise.
826 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
827 default auto_import.
828 (gld${EMULATION_NAME}_handle_option): Warn about v1.
829 (pep_find_data_imports): Remove superflous warnings about
830 auto-import.
831 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
832 and active pseudo-relocation-v2 rdata into data section.
833 * emultempl/pe.em (default_merge_rdata): New shell variable.
834 (MERGE_RDATA_V2): New macro.
835 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
836 selected script.
837
838 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
839
840 * emultempl/pe.em (is_underscoring): New helper function.
841 (gld_${EMULATION_NAME}_before_parse): Replace code
842 for pe(p)_leading_underscore detection by is_underscoring.
843 (U): Likewise.
844 (GET_INIT_SYMBOL_NAME): Likewise.
845 (U_SIZE): Likewise.
846 (set_pe_name):
847 (set_entry_point):
848 (gld_${EMULATION_NAME}_set_symbols):
849 * emultempl/pep.em: Likewise.
850 * pe-dll.c (pe_detail_list): Set default
851 underscoring for x64 target.
852 (pe_dll_id_target): Add initialization of
853 pe(p)_leading_underscore.
854
855 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
856
857 * pe-dll.c: Removed trailing whitespaces.
858
859 2010-05-14 Alan Modra <amodra@gmail.com>
860
861 PR ld/11583
862 * ldexp.c (exp_fold_tree_1): If assignment source expression is
863 invalid, make the destination symbol undefined.
864
865 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
866
867 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
868 Initialize pe(p)_leading_underscore variable.
869 (set_pe_name): Likewise.
870 * emultempl/pep.em: Likewise.
871 Additional change default to non-underscore for
872 pep_leading_underscore equal to -1.
873
874 2010-05-07 Tristan Gingold <gingold@adacore.com>
875
876 * Makefile.in: Regenerate with automake 1.11.1.
877 * aclocal.m4: Ditto.
878
879 2010-05-05 Nick Clifton <nickc@redhat.com>
880
881 * po/es.po: Updated Spanish translation.
882
883 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
884
885 * pe-dll.c (_nm_-symbols): Use always underscored variant
886 for symbols.
887 (__imp_-symbols): Likewise.
888 (___imp_-symbols): Likewise.
889 * NEWS: Mention ABI change for x64 PE-COFF.
890
891 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
892
893 * Makefile.am (install-exec-local): Properly install ld as
894 default cross linker.
895 * Makefile.in: Regenerated.
896
897 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
898 Nick Clifton <nickc@redhat.com>
899
900 * configure.in (install_as_default): Define and set to true
901 unless --enable-gold=both/gold has been specified.
902 * configure: Regenerate.
903
904 * Makefile.am (transform): Use ld.bfd as the default name of
905 the linker.
906 (install-exec-local): Also install the executable as a binary
907 named 'ld' if install_as_default is true.
908 * Makefile.in: Regenerate.
909
910 2010-04-22 Nick Clifton <nickc@redhat.com>
911
912 * po/ld.pot: Updated by the Translation project.
913 * po/vi.po: Updated Vietnamese translation.
914 * po/bg.po: Updated Bulgarian translation.
915
916 2010-04-15 Andrew Haley <aph@redhat.com>
917
918 * emultempl/armelf.em (merge_exidx_entries): New variable.
919 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
920 ("no-merge-exidx-entries"): New option.
921 * ld.texinfo (merge-exidx-entries): Document this option.
922
923 2010-04-14 Tristan Gingold <gingold@adacore.com>
924
925 * emulparams/alphavms.sh: New file.
926 * emultempl/vms.em: New file.
927 * scripttempl/alphavms.sc: New file.
928 * configure.tgt (alpha*-*-*vms*): Added.
929 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
930 (ealphavms.c): New target.
931 * Makefile.in: Regenerate.
932
933 2010-04-09 Nick Clifton <nickc@redhat.com>
934
935 * ldlang.c (wild_sort): Remove unused variable section_name.
936
937 2010-04-07 Alan Modra <amodra@gmail.com>
938
939 * configure: Regenerate.
940
941 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
942
943 PR ld/11434
944 * ld/testsuite/ld-x86-64/unique1.d: New.
945 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
946
947 * ld-x86-64/x86-64.exp: Run unique1.
948
949 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
950
951 * emultempl/pep.em (U): Macro modified.
952 (U_SIZE): New helper macro.
953 (GET_INIT_SYMBOL_NAME): Likewise.
954 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
955 and OPTION_LEADING_UNDERSCORE enumerator-values.
956 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
957 option.
958 (definfo): Add new member is_c_symbol.
959 (D): Add to macro underscore mode parameter.
960 (init): Add definition for is_c_symbol.
961 (gld_${EMULATION_NAME}_list_options): Display new options.
962 (set_pep_name): Adjust underscoring dependent fixed
963 symbol handling.
964 (gld_${EMULATION_NAME}_set_symbols): Likewise.
965 (saw_option): Likewise.
966 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
967 (set_entry_point): Initial initial_symbol_char dependent to
968 target's default and new option flag pep_leading_underscore.
969 * emultempl/pe.em (U): Macro modified.
970 (U_SIZE): New helper macro.
971 (GET_INIT_SYMBOL_NAME): Likewise.
972 (OPTION_LEADING_UNDERSCORE): Add new option define.
973 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
974 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
975 option.
976 (definfo): Add new member is_c_symbol.
977 (D): Add to macro underscore mode parameter.
978 (init): Add definition for is_c_symbol.
979 (gld_${EMULATION_NAME}_list_options): Display new options.
980 (set_pep_name): Adjust underscoring dependent fixed
981 symbol handling.
982 (gld_${EMULATION_NAME}_set_symbols): Likewise.
983 (saw_option): Likewise.
984 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
985 (set_entry_point): Initial initial_symbol_char dependent to
986 target's default and new option flag pep_leading_underscore.
987 * pe-dll.c (pe_leading_underscore): New flag variable.
988 (pe_detail_list): Remove const to allow modify of
989 member underscore.
990 (pe_dll_id_target): Initialize pe_details' underscore variable
991 dependent to target's default and flag pe_leading_underscore.
992 * pe-dll.h (pe_leading_underscore): Add extern declaration of
993 option flag.
994 * pep-dll.c (pe_leading_underscore): Add alias define for
995 pep_leading_underscore.
996 * pep-dll.h (pep_leading_underscore) Add extern declaration of
997 option flag.
998 * ld.texinfo: Add documentation for --(no-)leading-underscore
999 option.
1000
1001 2010-03-26 Alan Modra <amodra@gmail.com>
1002
1003 PR ld/11426
1004 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
1005 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
1006
1007 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1008
1009 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
1010 eelf32_tic6x_le.o.
1011 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
1012 * NEWS: Add news entry for TI C6X support.
1013 * configure.tgt (tic6x-*-*): New.
1014 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
1015
1016 2010-03-23 Joseph Myers <joseph@codesourcery.com>
1017
1018 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
1019 BSS_NAME): Define if not already defined. Use in place of some
1020 hardcoded section names.
1021
1022 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
1025
1026 2010-03-18 Aymeric Vincent <vincent@labri.fr>
1027
1028 PR ld/11384
1029 * emultempl/sh64elf.em: Add missing EOF.
1030
1031 2010-03-18 Doug Semler <dougsemler@gmail.com>
1032
1033 * pe-dll.c (make_one): Make text section readonly.
1034 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
1035 the jump stub on X86 as /SAFESEH compatible for
1036 native toolchains.
1037
1038 2010-03-17 Alan Modra <amodra@gmail.com>
1039
1040 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
1041 *prev instead. Update all callers.
1042
1043 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
1044
1045 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
1046 region and phdrs as their placement section.
1047
1048 2010-03-15 Alan Modra <amodra@gmail.com>
1049
1050 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
1051 (ppc_before_allocation): Call sort_toc_sections.
1052 (no_toc_sort, OPTION_NO_TOC_SORT): New.
1053 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1054 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
1055
1056 2010-03-14 Alan Modra <amodra@gmail.com>
1057
1058 PR ld/11378
1059 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
1060 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
1061
1062 2010-03-11 George Gensure <werkt0@gmail.com>
1063
1064 PR ld/11367
1065 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
1066
1067 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1068
1069 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
1070 eelf_i386_sol2.o.
1071 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
1072 (eelf32_sparc_sol2.c): New rule.
1073 (eelf64_sparc_sol2.c): Likewise.
1074 (eelf_x86_64_sol2.c): Likewise.
1075 (eelf_i386_sol2.c): Likewise.
1076 * Makefile.in: Regenerate.
1077 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
1078 elf_i386_sol2.
1079 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
1080 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
1081 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
1082 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
1083 Add target_extra_emuls.
1084 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
1085 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
1086 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
1087 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
1088 * emulparams/elf32_sparc_sol2.sh: New file.
1089 * emulparams/elf64_sparc_sol2.sh: New file.
1090 * emulparams/elf_i386_sol2.sh: New file.
1091 * emulparams/elf_x86_64_sol2.sh: New file.
1092 * emultempl/solaris2.em: New file.
1093
1094 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
1095
1096 PR ld/11330
1097 * ld.texinfo: Replace explicitely with explicitly.
1098
1099 2010-02-27 Jie Zhang <jie@codesourcery.com>
1100
1101 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
1102 .fini_array.* when do relocatable linking.
1103 * scripttempl/elf.sc: Likewise.
1104 * scripttempl/elf32sh-symbian.sc: Likewise.
1105 * scripttempl/elf64hppa.sc: Likewise.
1106 * scripttempl/elfxtensa.sc: Likewise.
1107
1108 2010-02-26 Alan Modra <amodra@gmail.com>
1109
1110 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
1111 .fini_array.*.
1112 * scripttempl/armbpabi.sc: Likewise.
1113 * scripttempl/elf32sh-symbian.sc: Likewise.
1114 * scripttempl/elf64hppa.sc: Likewise.
1115 * scripttempl/elfxtensa.sc: Likewise.
1116
1117 2010-02-25 Alan Modra <amodra@gmail.com>
1118
1119 PR ld/11304
1120 * ldlang.c (init_os): Remove isec param. Don't check for
1121 bfd_section already set or call bfd_init_private_section_data
1122 here.
1123 (exp_init_os): Update init_os call.
1124 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
1125 flags. Call bfd_init_private_section_data here.
1126 (map_input_to_output_sections): Tidy. Update init_os calls.
1127 Use os->sectype to select sec flags for lang_data_statement.
1128
1129 2010-02-23 Alan Modra <amodra@gmail.com>
1130
1131 PR ld/11304
1132 * ldlang.c: Revert last patch.
1133
1134 2010-02-23 Nick Clifton <nickc@redhat.com>
1135
1136 * po/bg.po: Updated Bulgarian translation.
1137
1138 2010-02-22 Alan Modra <amodra@gmail.com>
1139
1140 PR ld/11304
1141 * ldlang.c (exp_init_os): Delete forward declaration.
1142 (init_os): Don't check for bfd_section already created and don't
1143 init addr_tree and load_base expressions here.
1144 (map_input_to_output_sections): Only map input to output sections
1145 and set constraints here, and as an exception, create output
1146 sections which have their address set. Move all the other code to..
1147 (create_other_output_sections): ..here. New function. Handle init
1148 of addr_tree and load_base here too.
1149 (lang_process): Call create_other_output_sections.
1150
1151 2010-02-19 Alan Modra <amodra@gmail.com>
1152
1153 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
1154 * Makefile.in: Regenerate.
1155
1156 2010-02-19 Alan Modra <amodra@gmail.com>
1157
1158 * ldlang.c (unique_section_p): Add os param. Allow group
1159 sections to match /DISCARD/. Update all callers.
1160 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
1161 (LDEMUL_BEFORE_ALLOCATION): Define.
1162
1163 2010-02-15 Nick Clifton <nickc@redhat.com>
1164
1165 * po/vi.po: Updated Vietnamese translation.
1166
1167 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1168
1169 * Makefile.am (CFILES): Add ldlex-wrapper.c.
1170 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
1171 (ldlex.o): Replace with...
1172 (ldlex-wrapper.o): ...this new rule.
1173 (EXTRA_ld_new_SOURCES): Add ldlex.l.
1174 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
1175 * Makefile.in: Regenerate.
1176 * ldlex.l (sysdep.h): Don't include here.
1177 * ldlex-wrapper.c: New file.
1178
1179 2010-02-09 Alan Modra <amodra@gmail.com>
1180
1181 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
1182 function parameters.
1183
1184 2010-02-05 Nick Clifton <nickc@redhat.com>
1185
1186 * configure.in (ALL_LIBGUAS): Add bg.
1187 * configure: Regenerate.
1188 * po/bg.po: New Bulgarian translation.
1189
1190 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
1191
1192 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
1193 --target1-abs and --target1-rel options.
1194
1195 2010-02-03 Nick Clifton <nickc@redhat.com>
1196
1197 * emultempl/alphaelf.em: Update value expected from elf_object_id.
1198 * emultempl/hppaelf.em: Likewise.
1199 * emultempl/mipself.em: Likewise.
1200 * emultempl/ppc32elf.em: Likewise.
1201 * emultempl/ppc64elf.em: Likewise.
1202
1203 2010-02-03 Alan Modra <amodra@gmail.com>
1204
1205 * emultempl/ppc64elf.em (build_toc_list): Report errors from
1206 ppc64_elf_next_toc_section.
1207 (after_allocation): Update for changed function names and params.
1208 Run second pass of multitoc partitioning.
1209
1210 2010-01-21 Jon Grant <jg@jguk.org>
1211 Nick Clifton <nickc@redhat.com>
1212
1213 PR 4437
1214 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
1215 a missing file or library. Instead mark the entry as missing and
1216 set the global flag to indicate that missing files were
1217 encountered.
1218 * ldlang.c (missing_files): New exported variable.
1219 (load_symbols): Skip loading if the file is missing.
1220 (open_input_bfds): Terminate link if any input files were
1221 missing.
1222 * ldlang.h (struct lang_input_statement_struct): Add missing_file
1223 field.
1224 Add export of missing_file variable.
1225
1226 2010-01-13 DJ Delorie <dj@redhat.com>
1227
1228 * emultempl/elf32.em (_place_orphan): If an input section doesn't
1229 match an existing output section, but an unused output section
1230 statement does match, use it.
1231 * emultempl/pe.em (_place_orphan): Likewise.
1232 * emultempl/pep.em (_place_orphan): Likewise.
1233
1234 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1235
1236 * configure: Regenerate.
1237 * Makefile.in: Regenerate.
1238
1239 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 * ldver.c (ldversion): Change to "Copyright 2010".
1242
1243 2010-01-08 Alan Modra <amodra@gmail.com>
1244
1245 PR 11107
1246 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
1247
1248 For older changes see ChangeLog-2009
1249 \f
1250 Local Variables:
1251 mode: change-log
1252 left-margin: 8
1253 fill-column: 74
1254 version-control: never
1255 End: