* scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2009-08-21 Richard Guenther <rguenther@suse.de>
2
3 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
4
5 2009-08-12 Tristan Gingold <gingold@adacore.com>
6
7 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
8 * ldlang.c (hash_entry_addr_cmp): New function.
9 (print_all_symbols): Sort the symbols by address before printing them.
10
11 2009-08-10 Alan Modra <amodra@bigpond.net.au>
12
13 PR 10474
14 * ldemul.c (after_allocation_default): Run lang_relax_sections.
15 * ldlang.h (lang_relax_sections): Declare.
16 * ldlang.c (relax_sections): Delete.
17 (lang_relax_sections): New function.
18 (lang_process): Don't relax directly from here.
19 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
20 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
21 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
22 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
23 (LDEMUL_AFTER_ALLOCATION): Update.
24 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
25 (avr_elf_after_allocation): New function.
26 (LDEMUL_AFTER_ALLOCATION): Define.
27 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
28 lang_relax_sections.
29 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
30 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
31 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
32 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
33 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
34 (LDEMUL_FINISH): Delete.
35 (LDEMUL_AFTER_ALLOCATION): Define.
36 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
37 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
38 (LDEMUL_FINISH): Delete.
39 (LDEMUL_AFTER_ALLOCATION): Define.
40 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
41 (m68hc11elf_after_allocation): ..to here. New function.
42 (LDEMUL_FINISH): Delete.
43 (LDEMUL_AFTER_ALLOCATION): Define.
44 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
45 gld${EMULATION_NAME}_after_allocation.
46 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
47 gld${EMULATION_NAME}_after_allocation.
48 * emultempl/mmo.em (mmo_finish): Delete. Move body..
49 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
50 (LDEMUL_FINISH): Define.
51 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
52 (gld${EMULATION_NAME}_finish): Move code sizing sections..
53 (gld${EMULATION_NAME}_after_allocation): ..to here.
54 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
55 Call gld${EMULATION_NAME}_after_allocation.
56 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
57 bfd_elf_discard_info and map_segments call.
58
59 2009-08-06 Michael Eager <eager@eagercon.com>
60
61 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
62 ALL_EMULATIONS, targets.
63 * Makefile.in: Regenerate.
64 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
65 * emulparams/elf32mb_linux.sh: New.
66 * emulparams/elf32microblaze.sh. New.
67 * scripttempl/elfmicroblaze.sc: New.
68
69 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
70
71 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
72 section and __fixup_start symbol.
73 * emultempl/spuelf.em (params): Initialize emit_fixups member.
74 (spu_before_allocation): Call spu_elf_size_sections.
75 (OPTION_SPU_EMIT_FIXUPS): Define.
76 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
77 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
78 * ld.texinfo (--emit-fixups): Document.
79
80 2009-08-04 Alan Modra <amodra@bigpond.net.au>
81
82 PR 10474
83 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
84 not size, after lang_reset_memory_regions.
85
86 2009-07-30 Alan Modra <amodra@bigpond.net.au>
87
88 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
89 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
90 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
91 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
92 when !IREL_IN_PLT.
93
94 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
95
96 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
97 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
98 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
99 (ENTRY): Don't emit for relocateable links.
100 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
101 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
102 elf64-mmix.
103 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
104 provide "Main" or set "_start.", for relocateable links.
105
106 2009-07-27 Nick Clifton <nickc@redhat.com>
107
108 * (po/fi.po): Updated Finnish translation.
109
110 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
111
112 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
113 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
114 (targ_extra_emuls): Likewise.
115
116 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
117 eelf_l1om_fbsd.o
118 (eelf_l1om.c): New.
119 (eelf_l1om_fbsd.c): Likewise.
120 * Makefile.in: Regenerated.
121
122 * emulparams/elf_l1om.sh: New.
123 * emulparams/elf_l1om_fbsd.sh: Likewise.
124
125 2009-07-23 Ulrich Drepper <drepper@redhat.com>
126
127 * NEWS: Mention the linker's support for symbols with a binding of
128 STB_GNU_UNIQUE.
129
130 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
131
132 PR ld/10429
133 * ldlang.c (insert_os_after): Tie assignments to non-alloc
134 output sections if there is no-input section.
135
136 2009-07-11 Alan Modra <amodra@bigpond.net.au>
137
138 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
139 output sections.
140
141 2009-07-10 Alan Modra <amodra@bigpond.net.au>
142
143 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
144 linker relaxation if it might be necessary.
145
146 2009-07-10 Alan Modra <amodra@bigpond.net.au>
147
148 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
149
150 2009-07-06 Matthias Klose <doko@ubuntu.com>
151
152 * ld.texinfo: Fix typo.
153
154 2009-07-03 Tristan Gingold <gingold@adacore.com>
155
156 * scripttempl/pep.sc: Put .eh_frame in its own section.
157 * scripttempl/pe.sc: Ditto.
158
159 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
160
161 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
162 * scripttempl/pep.sc: Likewise.
163
164 2009-06-25 Tristan Gingold <gingold@adacore.com>
165
166 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
167 prototype.
168 (lang_map): Print the size of discarded sections.
169 (print_statement): Adjust call to print_input_section.
170
171 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
172
173 Merge cegcc and mingw32ce target name changes from CeGCC project:
174
175 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
176
177 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
178 ${tooldir}/lib/w32api.
179
180 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
181
182 * configure.tgt: Add arm*-*-cegcc* target.
183
184 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
185
186 * configure.tgt: Add arm-*-mingw32ce* target.
187
188 2009-06-10 Philip Blundell <philb@gnu.org>
189
190 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
191 if section has no ELF data.
192
193 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
194
195 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
196
197 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
198
199 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
200
201 2009-06-04 Alan Modra <amodra@bigpond.net.au>
202
203 * dep-in.sed: Don't use \n in replacement part of s command.
204 * Makefile.am (DEP1): LC_ALL for uniq.
205 * Makefile.in: Regenerate.
206
207 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
208
209 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
210 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
211 (GOTPLT): Add "*(.igot)".
212 (__rel_iplt_start): New.
213 (__rel_iplt_end): Likewise.
214 (__rela_iplt_start): Likewise.
215 (__rela_iplt_end): Likewise.
216
217 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
218
219 * deffilep.y (%union): Add new string-type semantic value 'digits'.
220 (%token): Remove NUMBER as token, add DIGITS.
221 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
222 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
223 (anylang_id): New production.
224 (opt_digits): Likewise.
225 (opt_id): Likewise.
226 (NUMBER): Likewise.
227 (def_lex): Return strings of digits in raw string form as DIGITS
228 token, instead of converting to numeric integer type.
229
230 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
231
232 * ldmain.c (main): Don't reject --relax -r.
233 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
234 partial links.
235
236 2009-05-26 Nick Clifton <nickc@redhat.com>
237
238 * po/id.po: Updated Indonesian translation.
239 * po/ld.pot: Updated template file.
240
241 2009-05-26 Alan Modra <amodra@bigpond.net.au>
242
243 * dep-in.sed: Output one filename per line with all lines having
244 continuation backslash. Prefix first line with "A", following
245 lines with "B".
246 * Makefile.am (DEP): Don't use dep.sed here.
247 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
248 sort and uniq.
249 * Makefile.in: Regenerate.
250
251 2009-05-26 Alan Modra <amodra@bigpond.net.au>
252
253 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
254
255 2009-05-22 Julian Brown <julian@codesourcery.com>
256
257 * emultempl/armelf.em (fix_cortex_a8): New.
258 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
259 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
260 bfd_elf32_arm_set_target_relocs.
261 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
262 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
263 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
264 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
265 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
266
267 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
268
269 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
270 sections when checking for overlap. Clarify error message
271 concerns load address.
272
273 2009-05-22 Alan Modra <amodra@bigpond.net.au>
274
275 * Makefile.am: Run "make dep-am".
276 * Makefile.in: Regenerate.
277
278 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
279
280 * NEWS: Mention new feature.
281 * deffile.h (def_file_aligncomm): Add new struct definition.
282 (def_file): Add new def_file_aligncomm member.
283 * deffilep.y (%token): Add new ALIGNCOMM token.
284 (command): Add production rule for ALIGNCOMM.
285 (def_file_free): Free any chained def_file_aligncomm structs.
286 (diropts[]): Add entry for '-aligncomm' .drectve command.
287 (def_aligncomm): New grammar function.
288 * ld.texinfo: Document new feature.
289 * pe-dll.c (process_def_file): Rename from this ...
290 (process_def_file_and_drectve): ... to this, updating all callers,
291 and process any aligncomms chained to the def file after scanning
292 all .drectve sections.
293 (generate_edata): Updated to match.
294 (pe_dll_build_sections): Likewise.
295
296 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
297
298 * pe-dll.c (process_def_file): Do not create empty export table.
299
300 2009-05-15 Alan Modra <amodra@bigpond.net.au>
301
302 * ldlang.c (lang_output_section_statement_lookup): Add function
303 comment. Make "name" non-const. Ensure duplicate entries use
304 the same string, allowing simple comparison in hash bucket loop.
305 Tweak constraint check.
306 (next_matching_output_section_statement): New function.
307 * ldlang.h (lang_output_section_statement_lookup): Update.
308 (next_matching_output_section_statement): Declare.
309 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
310 combine orphan sections when input sections flags differ in
311 alloc or load.
312 * emultempl/pe.em: Formatting throughout.
313 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
314 * emultempl/pep.em: Formatting throughout.
315 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
316
317 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
318
319 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
320 compact stubs with software i-cache.
321
322 2009-05-14 Alan Modra <amodra@bigpond.net.au>
323
324 * emultempl/spuelf.em (spu_before_allocation): Call
325 spu_elf_place_overlay_data.
326
327 2009-05-14 Alan Modra <amodra@bigpond.net.au>
328
329 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
330 assignment inside output section statement. Ensure only one
331 set of symbols per output section.
332 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
333 dollar sections before dollar sections. Correct add_child
334 list insertion.
335 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
336
337 2009-05-05 Paul Brook <paul@codesourcery.com>
338
339 * emultempl/armelf.em (compare_output_sec_vma): New function.
340 (gld${EMULATION_NAME}_finish): Add exidx munging code.
341
342 2009-05-05 Anatoly Sokolov <aesok@post.ru>
343
344 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
345 * emulparams/avr1.sh (DATA_ORIGIN): Add.
346 * emulparams/avr2.sh (DATA_ORIGIN): Add.
347 * emulparams/avr25.sh (DATA_ORIGIN): Add.
348 * emulparams/avr3.sh (DATA_ORIGIN): Add.
349 * emulparams/avr31.sh (DATA_ORIGIN): Add.
350 * emulparams/avr35.sh (DATA_ORIGIN): Add.
351 * emulparams/avr4.sh (DATA_ORIGIN): Add.
352 * emulparams/avr5.sh (DATA_ORIGIN): Add.
353 * emulparams/avr51.sh (DATA_ORIGIN): Add.
354 (DATA_LENGTH): Update.
355 * emulparams/avr6.sh (DATA_ORIGIN): Add.
356 (DATA_LENGTH): Update.
357
358 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
359
360 * NEWS: Mention new feature.
361 * ld.texinfo (--version-script): Document extent of PE support.
362 (WIN32): Mention --version-script. Extend auto-export description.
363 * pe-dll.c (process_def_file): Use version script info to filter
364 symbols from auto-export.
365 * testsuite/ld-pe/vers-script-1.d: New file.
366 * testsuite/ld-pe/vers-script-2.d: New file.
367 * testsuite/ld-pe/vers-script-3.d: New file.
368 * testsuite/ld-pe/vers-script-4.d: New file.
369 * testsuite/ld-pe/vers-script-1.ver: New file.
370 * testsuite/ld-pe/vers-script-2.ver: New file.
371 * testsuite/ld-pe/vers-script-3.ver: New file.
372 * testsuite/ld-pe/vers-script-4.ver: New file.
373 * testsuite/ld-pe/vers-script-dll.c: New file.
374 * testsuite/ld-pe/vers-script.exp: New test script.
375
376 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
377
378 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
379
380 2009-04-30 Nick Clifton <nickc@redhat.com>
381
382 * NEWS: Mention support for IFUNC symbols.
383
384 2009-04-29 Anthony Green <green@moxielogic.com>
385
386 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
387 position out to accommodate larger programs.
388
389 2009-04-29 Chris Demetriou <cgd@google.com>
390
391 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
392 (ld_options): Likewise.
393 (parse_args): Likewise.
394 * ld.texinfo: Document --no-export-dynamic.
395 * NEWS: Mention --no-export-dynamic.
396
397 2009-04-29 Alan Modra <amodra@bigpond.net.au>
398
399 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
400
401 2009-04-25 Alan Modra <amodra@bigpond.net.au>
402
403 PR 10061
404 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
405 param.
406
407 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
408
409 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
410 (arm_elf_set_bfd_for_interworking): Delete.
411 (arm_elf_before_allocation): Do not set the interworking BFD.
412 Move allocation inside not-dynamic block.
413 (arm_elf_create_output_section_statements): Create glue sections
414 and set the interworking BFD here.
415 (LDEMUL_AFTER_OPEN): Delete.
416
417 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
418
419 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
420
421 2009-04-15 Anthony Green <green@moxielogic.com>
422
423 * configure.tgt: Add moxie support.
424 * Makefile.am: Add moxie files.
425 * Makefile.in: Rebuilt.
426 * emulparams/elf32moxie.sh: New file.
427 * scripttempl/moxie.sc: New file.
428
429 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
430
431 * ldlang.c: Do not include limits.h.
432
433 2009-04-14 Alan Modra <amodra@bigpond.net.au>
434
435 PR ld/10047
436 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
437 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
438
439 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
440
441 * ldfile.c (ldfile_find_command_file): Revert the last change.
442
443 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
444
445 PR ld/10047
446 * ldfile.c (ldfile_find_command_file): First try raw name.
447
448 2009-04-09 Nick Clifton <nickc@redhat.com>
449
450 PR 9824
451 * ld.texinfo (Output Section Constraint): New node. Documents the
452 ONLY_IF_RO and ONLY_IF_RW constraints.
453 (Symbolic Constants): New node. Documents the CONSTANT operator.
454
455 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
456
457 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
458 of fork/execvp.
459
460 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
461
462 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
463 (ld_options): Likewise.
464 (parse_args): Likewise.
465
466 * ld.texinfo: Document --warn-alternate-em.
467
468 * NEWS: Mention --warn-alternate-em.
469
470 2009-04-07 DJ Delorie <dj@redhat.com>
471
472 * emulparams/elf32mep.sh: Change default endian to little.
473
474 2009-04-07 Nick Clifton <nickc@redhat.com>
475
476 * ld.texinfo (Output Section Address): Note that specifying an
477 address for an output section will only change the location
478 counter if the output section is used.
479
480 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
481
482 * ldfile.c (ldfile_find_command_file): Initialize result.
483
484 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
485
486 * ld.texinfo (-L): Mention that -L options do not affect how ld
487 searches for a linker script unless -T option is specified.
488 * ldfile.c (ldfile_find_command_file): Append the path obtained
489 from the program name to the search path instead of
490 prepending. Add a new parameter "default_only". Restrict the
491 search to the default script location if the new parameter is
492 true.
493 (ldfile_open_command_file_1): New.
494 (ldfile_open_command_file): Call ldfile_open_command_file_1.
495 (ldfile_open_default_command_file): New.
496
497 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
498
499 * ldlang.c (lang_leave_output_section_statement): Set lma_region
500 if it is not overridden and section is for the same vma region as
501 the previous section.
502
503 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
504
505 PR ld/6744
506 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
507 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
508 warning if --export-dynamic was passed on command-line.
509 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
510
511 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
512
513 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
514 function.
515 (ld_${EMULATION_NAME}_emulation): Use it.
516
517 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
518
519 PR ld/9970
520 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
521
522 2009-03-19 Alan Modra <amodra@bigpond.net.au>
523
524 * emultempl/spuelf.em (spu_before_allocation): Report errors from
525 spu_elf_find_overlays.
526
527 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR ld/6766
530 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
531
532 2009-03-18 Alan Modra <amodra@bigpond.net.au>
533
534 * ld.h: Remove alloca handling.
535
536 2009-03-17 Alan Modra <amodra@bigpond.net.au>
537
538 * emultempl/spu_icache.S: Add new entry to dummy handler.
539 * emultempl/spu_icache.o_c: Regenerate.
540 * emultempl/spuelf.em (params): Init new field.
541 (no_overlays): New static var.
542 (spu_before_allocation): Use it.
543 (OPTION_SPU_COMPACT_STUBS): Define.
544 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
545 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
546 handling.
547
548 2009-03-17 Alan Modra <amodra@bigpond.net.au>
549
550 * configure.host (HOSTING_LIBS): Two dollars on shell variable
551 expansion to suit make.
552
553 2009-03-17 Alan Modra <amodra@bigpond.net.au>
554
555 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
556 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
557 * aclocal.m4: Regenerate.
558 * configure: Regenerate.
559 * Makefile.in: Regenerate.
560
561 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
562
563 * emultempl/aix.em (auto_export_flags): New variable.
564 (explicit_auto_export_flags): Likewise.
565 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
566 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
567 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
568 -bnoexpall and -bnoexpfull.
569 (gld${EMULATION_NAME}_handle_option): Handle them.
570 (gld${EMULATION_NAME}_before_allocation): Update the call to
571 bfd_size_dynamic_sections.
572
573 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
574
575 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
576 -berok and -bernotok control link_info.unresolved_syms_in_objects
577 and link_info.unresolved_syms_in_shared_libs instead of
578 force_make_executable.
579
580 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
581
582 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
583 config.dynamic_link to TRUE.
584
585 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
586
587 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
588 .text, .data and .bss output sections as SEC_KEEP.
589
590 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
591
592 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
593
594 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
595 Danny Smith <dannysmith@users.sourceforge.net>
596
597 * emultmpl/pe.em (pe_dll_characteristics): New variable.
598 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
599 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
600 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
601 New macros for options to set DllCharacteristics flag bits.
602 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
603 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
604 (init): Add DllCharacteristics field.
605 (gld_${EMULATION_NAME}_list_options): List new options.
606 (gld${EMULATION_NAME}_handle_option): Handle new options.
607 * emultmpl/pep.em (pe_dll_characteristics): New variable.
608 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
609 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
610 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
611 New macros for options to set DllCharacteristics flags.
612 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
613 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
614 (init): Add DllCharacteristics field.
615 (gld_${EMULATION_NAME}_list_options): List new options.
616 (gld${EMULATION_NAME}_handle_option): Handle new options.
617 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
618 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
619
620 2009-03-06 Nick Clifton <nickc@redhat.com>
621
622 * po/es.po: Updated Spanish translation.
623
624 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
625
626 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
627 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
628 of all input BFDs, looking for debug info. Enable long section names
629 if any found.
630 * emultempl/pe.em (debug_section_p): Likewise.
631 (gld_${EMULATION_NAME}_after_open): Likewise.
632 * NEWS: Retrospectively adjust news announcement.
633 * ld.texinfo: Update documentation to mention new behaviour.
634
635 2009-03-03 Alan Modra <amodra@bigpond.net.au>
636
637 * Makefile.am: Run "make dep-am".
638 * Makefile.in: Regenerate.
639
640 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
641
642 * ldgram.y: Add support for REGION_ALIAS operator.
643 * ldlang.c: Likewise.
644 * ldlang.h: Likewise.
645 * ldlex.l: Likewise.
646 * NEWS: Mention the new feature.
647 * ld.texinfo: Document the new feature.
648
649 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
650
651 * Makefile.am: Replace score elf emulation with score3 and score7
652 emulations.
653 * Makefile.in: Regenerate,
654 * NEWS: Mention support for Score7 architecture.
655 * configure.tgt: Add score7 emulation to score-elf target.
656 * emulparams/scoreelf.sh: Add score7 support.
657 * emultempl/scoreelf.em: Likewise.
658
659 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
660
661 * configure.tgt: Only use elf64hppa target emulation for hpux.
662 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
663 (SCRIPT_NAME): Use new script elf64hppa.
664 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
665 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
666 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
667 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
668 TEXT_DYNAMIC): Define.
669 * emulparams/hppa64linux.sh: Adjust comments.
670 * scripttempl/elf64hppa.sc: New file.
671
672 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
673
674 * configure: Regenerate.
675
676 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
677
678 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
679 default state of auto-import flag based on $target.
680
681 2009-02-24 Joseph Myers <joseph@codesourcery.com>
682
683 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
684 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
685 (elf32_arm_add_stub_section): Update comment.
686 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
687
688 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
689
690 * ld.texinfo (Options): Correct typos in example. Recommend
691 using joined forms of syntax for passing options with arguments
692 from a driver.
693 (-a): Use consistent syntax for documenting option arguments.
694 Clean up indexing and markup.
695 (-A/--architecture): Likewise.
696 (-f/--auxiliary): Likewise.
697 (-F/--filter): Likewise.
698 (-fini): Likewise.
699 (-G/--gpsize): Likewise.
700 (-h/-soname):Likewise.
701 (-init): Likewise.
702 (-l/--library): Likewise.
703 (-L/--library-path): Likewise.
704 (-m): Likewise.
705 (--defsym): Likewise.
706 (-I/--dynamic-linker): Likewise.
707 (-Map): Likewise.
708 (--oformat): Likewise.
709 (--retain-symbols-file): Likewise.
710 (-rpath): Likewise.
711 (-rpath-link): Likewise.
712 (--sort-common): Likewise.
713 (--sort-section): Likewise.
714 (--split-by-file): Likewise.
715 (--split-by-reloc): Likewise.
716 (--sysroot): Likewise.
717 (--section-start): Likewise.
718 (-Tbss, -Tdata, -Ttext): Likewise.
719 (-Ttext-segment): Likewise.
720 (--version-script): Likewise.
721 (--wrap): Likewise.
722
723 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
724
725 * ld.texinfo: Update to mention long section name options.
726 * NEWS: Mention new behaviour and command-line options.
727 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
728 (pe_output_file_set_long_section_names): New function.
729 (pe_dll_build_sections): Call it on output BFDs.
730 (pe_exe_build_sections): Likewise.
731 (pe_dll_fill_sections): Likewise.
732 (pe_exe_fill_sections): Likewise.
733 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
734 (pe_output_file_set_long_section_names): Add prototype.
735 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
736 (pe_output_file_set_long_section_names): Likewise.
737 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
738 (pep_output_file_set_long_section_names): Add prototype.
739 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
740 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
741 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
742 (gld_${EMULATION_NAME}_list_options): Describe them.
743 (gld${EMULATION_NAME}_handle_option): Set or clear global
744 pe_use_coff_long_section_names flag when options recognised.
745 (gld_${EMULATION_NAME}_after_open): En/disable long section names
746 for main output bfd by calling pe_output_file_set_long_section_names.
747 * pep.em (enum options): Extend enum with new getopt option values.
748 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
749 (gld_${EMULATION_NAME}_list_options): Describe them.
750 (gld${EMULATION_NAME}_handle_option): Set or clear global
751 pe_use_coff_long_section_names flag when options recognised.
752 (gld_${EMULATION_NAME}_after_open): En/disable long section names
753 for main output bfd by calling pep_output_file_set_long_section_names.
754
755 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
756
757 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
758 inadvertent .reloc sections caused by refactoring accident.
759
760 2009-02-16 Alan Modra <amodra@bigpond.net.au>
761
762 * ldlang.c (process_insert_statements): ASSERT that output section
763 statements are in order.
764
765 2009-02-16 Alan Modra <amodra@bigpond.net.au>
766
767 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
768 (stat_save, stat_save_ptr): New variables.
769 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
770 (load_symbols): Likewise. Delete dead "bad_load" code.
771 (open_input_bfds): Warn on script containing output sections.
772 (lang_enter_output_section_statement): Use push_stat_ptr.
773 (lang_enter_group): Likewise.
774 (lang_leave_output_section_statement): Use pop_stat_ptr.
775 (lang_leave_group): Likewise.
776 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
777 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
778 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
779 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
780 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
781 * emultempl/spuelf.em (spu_place_special_section): Likewise.
782 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
783
784 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
785
786 Missing piece of 2009-01-26 commit
787 * ldlang.c (lang_process): Don't consider relocatable flag when
788 checking for overlap.
789
790 2009-02-05 Joseph Myers <joseph@codesourcery.com>
791
792 * emulparams/m68kelf.sh: Add newline at end of file.
793
794 2009-02-04 Nick Clifton <nickc@redhat.com>
795
796 PR 9805
797 * ld.texinfo (--allow-shlib-undefined): Correct description of
798 default settings and tidy up the rest of the entry.
799
800 2009-02-04 Alan Modra <amodra@bigpond.net.au>
801
802 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
803 during relocatable link.
804
805 2009-02-03 Nick Clifton <nickc@redhat.com>
806
807 PR 9797
808 * ld.texinfo (Constants): Document the base-encoding suffixes
809 supported in linker scripts.
810
811 2009-02-03 Alan Modra <amodra@bigpond.net.au>
812
813 * NEWS: Mention --as-needed change.
814
815 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
816
817 * configure.in: AC_SUBST pdfdir.
818 * Makefile.am: Add install-pdf, install-pdf-am,
819 and install-pdf-recursive targets. Define pdf__strip_dir.
820 * po/Make-in: Add install-pdf target.
821 * configure: Regenerate.
822 * Makefile.in: Regenerate.
823
824 2009-01-31 Alan Modra <amodra@bigpond.net.au>
825
826 * ld.texinfo (--as-needed): Update.
827
828 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
829
830 * emultempl/armelf.em: Correct formatting of help text for
831 --no-enum-size-warning option.
832
833 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
834
835 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
836 * ld.h (args_type): Make check_section_addresses a char.
837 * ldmain.c (main): Default check_section_addresses to -1. Check it
838 for relocatable links.
839 * ld.texinfo (--check-sections): Update documentation.
840
841 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
842
843 * pe-dll.c (tmp_seq2): New static variable.
844 (make_singleton_name_imp): New.
845 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
846 avoid duplicate import table generation for same symbol.
847 (pe_create_runtime_relocator_reference): Make reference for
848 64-bit 8 bytes.
849
850 2009-01-21 Alan Modra <amodra@bigpond.net.au>
851
852 * emultempl/spuelf.em (params): Init new field.
853 (OPTION_SPU_NON_IA_TEXT): Define.
854 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
855 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
856
857 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
858
859 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
860 (ld_options): Add -Ttext-segment.
861 (parse_args): Handle OPTION_TTEXT_SEGMENT.
862
863 * ld.texinfo: Document -Ttext-segment.
864
865 * NEWS: Mention -Ttext-segment.
866
867 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
868 (SHLIB_TEXT_START_ADDR): Likewise.
869
870 2009-01-13 Alan Modra <amodra@bigpond.net.au>
871
872 * emultempl/spu_icache.o_c: Regenerate.
873
874 2009-01-12 Alan Modra <amodra@bigpond.net.au>
875
876 * emultempl/spuelf.em (params): Init new fields.
877 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
878 (spu_place_special_section): Adjust placement for soft-icache. Pad
879 soft-icache section to a fixed size. Clear addr_tree.
880 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
881 sections a little more intelligently.
882 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
883 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
884 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
885 (OPTION_SPU_LRLIVE): Define.
886 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
887 (PARSE_AND_LIST_OPTIONS): Likewise.
888 (PARSE_AND_LIST_ARGS_CASES): Handle them.
889 * emultempl/spu_icache.S: Dummy file.
890 * emultempl/spu_icache.o_c: Regenerate.
891 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
892 (spu_icache.o_c): Add rule to build.
893 (CLEANFILES): Zap temp files.
894 (EXTRA_DIST): Add spu_icache.o_c.
895 * Makefile.in: Regenerate.
896
897 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
898
899 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
900 (gld..._add_options): Add new option
901 --use-nul-prefixed-import-tables.
902 (gld..._handle_option): Likewise.
903 * pep.em: Same as for pe.em.
904 * ld.texinfo: Add new option documentation for
905 --use-nul-prefixed-import-tables.
906 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
907 (make_head): Make prefix leading zero prefix element for
908 idata$4 and idata$5 dependent to new flag.
909 (make_import_fixup_entry): Remove idata4/5 prefix.
910 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
911 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
912 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
913 * NEWS: Add new option.
914
915 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
916
917 * emultempl/pe.em: Prefix dollar characters to be outputed in
918 generated C file.
919 * emultempl/pep.em: Likewise.
920
921 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
922
923 * NEWS: Mention new feature --exclude-modules-for-implib.
924 * ld.texinfo: Document new --exclude-modules-for-implib option.
925 * pe-dll.c (exclude_list_struct): Change type member from int to
926 new enumeration exclude_type.
927 (pe_dll_add_excludes): Accept exclude_type instead of int param.
928 (auto_export): Replace magic constants by exclude_type values and
929 handle new choice EXCLUDEFORIMPLIB.
930 (pe_dll_generate_implib): Accept a pointer to the link_info and
931 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
932 fresh BFDs for any found and link into import lib archive chain.
933 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
934 constants previously used for exclude_list_struct type member.
935 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
936 * pep-dll.h (exclude_type, pe_dll_add_excludes,
937 pe_dll_generate_implib): Likewise to all the above.
938 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
939 getopts long option code for new --exclude-modules-for-implib option.
940 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
941 (gld_${EMULATION_NAME}_list_options): List usage for it.
942 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
943 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
944 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
945 calling pe_dll_generate_implib.
946 * emultempl/pep.em (options): Define new enumerated value for getopts
947 long option code for new --exclude-modules-for-implib option.
948 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
949 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
950 Again, likewise to all the above.
951
952 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
953
954 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
955 (libnamencmp): New function.
956 (auto_export): Use it in place of strncmp when filtering libraries.
957
958 For older changes see ChangeLog-2008
959 \f
960 Local Variables:
961 mode: change-log
962 left-margin: 8
963 fill-column: 74
964 version-control: never
965 End:
This page took 0.051588 seconds and 5 git commands to generate.