ld/
[binutils-gdb.git] / ld / ChangeLog
1 2009-05-15 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (lang_output_section_statement_lookup): Add function
4 comment. Make "name" non-const. Ensure duplicate entries use
5 the same string, allowing simple comparison in hash bucket loop.
6 Tweak constraint check.
7 (next_matching_output_section_statement): New function.
8 * ldlang.h (lang_output_section_statement_lookup): Update.
9 (next_matching_output_section_statement): Declare.
10 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
11 combine orphan sections when input sections flags differ in
12 alloc or load.
13 * emultempl/pe.em: Formatting throughout.
14 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
15 * emultempl/pep.em: Formatting throughout.
16 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
17
18 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
19
20 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
21 compact stubs with software i-cache.
22
23 2009-05-14 Alan Modra <amodra@bigpond.net.au>
24
25 * emultempl/spuelf.em (spu_before_allocation): Call
26 spu_elf_place_overlay_data.
27
28 2009-05-14 Alan Modra <amodra@bigpond.net.au>
29
30 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
31 assignment inside output section statement. Ensure only one
32 set of symbols per output section.
33 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
34 dollar sections before dollar sections. Correct add_child
35 list insertion.
36 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
37
38 2009-05-05 Paul Brook <paul@codesourcery.com>
39
40 * emultempl/armelf.em (compare_output_sec_vma): New function.
41 (gld${EMULATION_NAME}_finish): Add exidx munging code.
42
43 2009-05-05 Anatoly Sokolov <aesok@post.ru>
44
45 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
46 * emulparams/avr1.sh (DATA_ORIGIN): Add.
47 * emulparams/avr2.sh (DATA_ORIGIN): Add.
48 * emulparams/avr25.sh (DATA_ORIGIN): Add.
49 * emulparams/avr3.sh (DATA_ORIGIN): Add.
50 * emulparams/avr31.sh (DATA_ORIGIN): Add.
51 * emulparams/avr35.sh (DATA_ORIGIN): Add.
52 * emulparams/avr4.sh (DATA_ORIGIN): Add.
53 * emulparams/avr5.sh (DATA_ORIGIN): Add.
54 * emulparams/avr51.sh (DATA_ORIGIN): Add.
55 (DATA_LENGTH): Update.
56 * emulparams/avr6.sh (DATA_ORIGIN): Add.
57 (DATA_LENGTH): Update.
58
59 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
60
61 * NEWS: Mention new feature.
62 * ld.texinfo (--version-script): Document extent of PE support.
63 (WIN32): Mention --version-script. Extend auto-export description.
64 * pe-dll.c (process_def_file): Use version script info to filter
65 symbols from auto-export.
66 * testsuite/ld-pe/vers-script-1.d: New file.
67 * testsuite/ld-pe/vers-script-2.d: New file.
68 * testsuite/ld-pe/vers-script-3.d: New file.
69 * testsuite/ld-pe/vers-script-4.d: New file.
70 * testsuite/ld-pe/vers-script-1.ver: New file.
71 * testsuite/ld-pe/vers-script-2.ver: New file.
72 * testsuite/ld-pe/vers-script-3.ver: New file.
73 * testsuite/ld-pe/vers-script-4.ver: New file.
74 * testsuite/ld-pe/vers-script-dll.c: New file.
75 * testsuite/ld-pe/vers-script.exp: New test script.
76
77 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
78
79 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
80
81 2009-04-30 Nick Clifton <nickc@redhat.com>
82
83 * NEWS: Mention support for IFUNC symbols.
84
85 2009-04-29 Anthony Green <green@moxielogic.com>
86
87 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
88 position out to accommodate larger programs.
89
90 2009-04-29 Chris Demetriou <cgd@google.com>
91
92 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
93 (ld_options): Likewise.
94 (parse_args): Likewise.
95 * ld.texinfo: Document --no-export-dynamic.
96 * NEWS: Mention --no-export-dynamic.
97
98 2009-04-29 Alan Modra <amodra@bigpond.net.au>
99
100 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
101
102 2009-04-25 Alan Modra <amodra@bigpond.net.au>
103
104 PR 10061
105 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
106 param.
107
108 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
109
110 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
111 (arm_elf_set_bfd_for_interworking): Delete.
112 (arm_elf_before_allocation): Do not set the interworking BFD.
113 Move allocation inside not-dynamic block.
114 (arm_elf_create_output_section_statements): Create glue sections
115 and set the interworking BFD here.
116 (LDEMUL_AFTER_OPEN): Delete.
117
118 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
119
120 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
121
122 2009-04-15 Anthony Green <green@moxielogic.com>
123
124 * configure.tgt: Add moxie support.
125 * Makefile.am: Add moxie files.
126 * Makefile.in: Rebuilt.
127 * emulparams/elf32moxie.sh: New file.
128 * scripttempl/moxie.sc: New file.
129
130 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
131
132 * ldlang.c: Do not include limits.h.
133
134 2009-04-14 Alan Modra <amodra@bigpond.net.au>
135
136 PR ld/10047
137 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
138 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
139
140 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
141
142 * ldfile.c (ldfile_find_command_file): Revert the last change.
143
144 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR ld/10047
147 * ldfile.c (ldfile_find_command_file): First try raw name.
148
149 2009-04-09 Nick Clifton <nickc@redhat.com>
150
151 PR 9824
152 * ld.texinfo (Output Section Constraint): New node. Documents the
153 ONLY_IF_RO and ONLY_IF_RW constraints.
154 (Symbolic Constants): New node. Documents the CONSTANT operator.
155
156 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
157
158 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
159 of fork/execvp.
160
161 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
162
163 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
164 (ld_options): Likewise.
165 (parse_args): Likewise.
166
167 * ld.texinfo: Document --warn-alternate-em.
168
169 * NEWS: Mention --warn-alternate-em.
170
171 2009-04-07 DJ Delorie <dj@redhat.com>
172
173 * emulparams/elf32mep.sh: Change default endian to little.
174
175 2009-04-07 Nick Clifton <nickc@redhat.com>
176
177 * ld.texinfo (Output Section Address): Note that specifying an
178 address for an output section will only change the location
179 counter if the output section is used.
180
181 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
182
183 * ldfile.c (ldfile_find_command_file): Initialize result.
184
185 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
186
187 * ld.texinfo (-L): Mention that -L options do not affect how ld
188 searches for a linker script unless -T option is specified.
189 * ldfile.c (ldfile_find_command_file): Append the path obtained
190 from the program name to the search path instead of
191 prepending. Add a new parameter "default_only". Restrict the
192 search to the default script location if the new parameter is
193 true.
194 (ldfile_open_command_file_1): New.
195 (ldfile_open_command_file): Call ldfile_open_command_file_1.
196 (ldfile_open_default_command_file): New.
197
198 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
199
200 * ldlang.c (lang_leave_output_section_statement): Set lma_region
201 if it is not overridden and section is for the same vma region as
202 the previous section.
203
204 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
205
206 PR ld/6744
207 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
208 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
209 warning if --export-dynamic was passed on command-line.
210 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
211
212 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
213
214 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
215 function.
216 (ld_${EMULATION_NAME}_emulation): Use it.
217
218 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR ld/9970
221 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
222
223 2009-03-19 Alan Modra <amodra@bigpond.net.au>
224
225 * emultempl/spuelf.em (spu_before_allocation): Report errors from
226 spu_elf_find_overlays.
227
228 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
229
230 PR ld/6766
231 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
232
233 2009-03-18 Alan Modra <amodra@bigpond.net.au>
234
235 * ld.h: Remove alloca handling.
236
237 2009-03-17 Alan Modra <amodra@bigpond.net.au>
238
239 * emultempl/spu_icache.S: Add new entry to dummy handler.
240 * emultempl/spu_icache.o_c: Regenerate.
241 * emultempl/spuelf.em (params): Init new field.
242 (no_overlays): New static var.
243 (spu_before_allocation): Use it.
244 (OPTION_SPU_COMPACT_STUBS): Define.
245 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
246 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
247 handling.
248
249 2009-03-17 Alan Modra <amodra@bigpond.net.au>
250
251 * configure.host (HOSTING_LIBS): Two dollars on shell variable
252 expansion to suit make.
253
254 2009-03-17 Alan Modra <amodra@bigpond.net.au>
255
256 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
257 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
258 * aclocal.m4: Regenerate.
259 * configure: Regenerate.
260 * Makefile.in: Regenerate.
261
262 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
263
264 * emultempl/aix.em (auto_export_flags): New variable.
265 (explicit_auto_export_flags): Likewise.
266 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
267 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
268 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
269 -bnoexpall and -bnoexpfull.
270 (gld${EMULATION_NAME}_handle_option): Handle them.
271 (gld${EMULATION_NAME}_before_allocation): Update the call to
272 bfd_size_dynamic_sections.
273
274 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
275
276 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
277 -berok and -bernotok control link_info.unresolved_syms_in_objects
278 and link_info.unresolved_syms_in_shared_libs instead of
279 force_make_executable.
280
281 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
282
283 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
284 config.dynamic_link to TRUE.
285
286 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
287
288 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
289 .text, .data and .bss output sections as SEC_KEEP.
290
291 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
292
293 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
294
295 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
296 Danny Smith <dannysmith@users.sourceforge.net>
297
298 * emultmpl/pe.em (pe_dll_characteristics): New variable.
299 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
300 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
301 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
302 New macros for options to set DllCharacteristics flag bits.
303 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
304 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
305 (init): Add DllCharacteristics field.
306 (gld_${EMULATION_NAME}_list_options): List new options.
307 (gld${EMULATION_NAME}_handle_option): Handle new options.
308 * emultmpl/pep.em (pe_dll_characteristics): New variable.
309 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
310 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
311 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
312 New macros for options to set DllCharacteristics flags.
313 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
314 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
315 (init): Add DllCharacteristics field.
316 (gld_${EMULATION_NAME}_list_options): List new options.
317 (gld${EMULATION_NAME}_handle_option): Handle new options.
318 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
319 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
320
321 2009-03-06 Nick Clifton <nickc@redhat.com>
322
323 * po/es.po: Updated Spanish translation.
324
325 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
326
327 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
328 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
329 of all input BFDs, looking for debug info. Enable long section names
330 if any found.
331 * emultempl/pe.em (debug_section_p): Likewise.
332 (gld_${EMULATION_NAME}_after_open): Likewise.
333 * NEWS: Retrospectively adjust news announcement.
334 * ld.texinfo: Update documentation to mention new behaviour.
335
336 2009-03-03 Alan Modra <amodra@bigpond.net.au>
337
338 * Makefile.am: Run "make dep-am".
339 * Makefile.in: Regenerate.
340
341 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
342
343 * ldgram.y: Add support for REGION_ALIAS operator.
344 * ldlang.c: Likewise.
345 * ldlang.h: Likewise.
346 * ldlex.l: Likewise.
347 * NEWS: Mention the new feature.
348 * ld.texinfo: Document the new feature.
349
350 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
351
352 * Makefile.am: Replace score elf emulation with score3 and score7
353 emulations.
354 * Makefile.in: Regenerate,
355 * NEWS: Mention support for Score7 architecture.
356 * configure.tgt: Add score7 emulation to score-elf target.
357 * emulparams/scoreelf.sh: Add score7 support.
358 * emultempl/scoreelf.em: Likewise.
359
360 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
361
362 * configure.tgt: Only use elf64hppa target emulation for hpux.
363 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
364 (SCRIPT_NAME): Use new script elf64hppa.
365 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
366 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
367 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
368 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
369 TEXT_DYNAMIC): Define.
370 * emulparams/hppa64linux.sh: Adjust comments.
371 * scripttempl/elf64hppa.sc: New file.
372
373 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
374
375 * configure: Regenerate.
376
377 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
378
379 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
380 default state of auto-import flag based on $target.
381
382 2009-02-24 Joseph Myers <joseph@codesourcery.com>
383
384 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
385 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
386 (elf32_arm_add_stub_section): Update comment.
387 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
388
389 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
390
391 * ld.texinfo (Options): Correct typos in example. Recommend
392 using joined forms of syntax for passing options with arguments
393 from a driver.
394 (-a): Use consistent syntax for documenting option arguments.
395 Clean up indexing and markup.
396 (-A/--architecture): Likewise.
397 (-f/--auxiliary): Likewise.
398 (-F/--filter): Likewise.
399 (-fini): Likewise.
400 (-G/--gpsize): Likewise.
401 (-h/-soname):Likewise.
402 (-init): Likewise.
403 (-l/--library): Likewise.
404 (-L/--library-path): Likewise.
405 (-m): Likewise.
406 (--defsym): Likewise.
407 (-I/--dynamic-linker): Likewise.
408 (-Map): Likewise.
409 (--oformat): Likewise.
410 (--retain-symbols-file): Likewise.
411 (-rpath): Likewise.
412 (-rpath-link): Likewise.
413 (--sort-common): Likewise.
414 (--sort-section): Likewise.
415 (--split-by-file): Likewise.
416 (--split-by-reloc): Likewise.
417 (--sysroot): Likewise.
418 (--section-start): Likewise.
419 (-Tbss, -Tdata, -Ttext): Likewise.
420 (-Ttext-segment): Likewise.
421 (--version-script): Likewise.
422 (--wrap): Likewise.
423
424 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
425
426 * ld.texinfo: Update to mention long section name options.
427 * NEWS: Mention new behaviour and command-line options.
428 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
429 (pe_output_file_set_long_section_names): New function.
430 (pe_dll_build_sections): Call it on output BFDs.
431 (pe_exe_build_sections): Likewise.
432 (pe_dll_fill_sections): Likewise.
433 (pe_exe_fill_sections): Likewise.
434 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
435 (pe_output_file_set_long_section_names): Add prototype.
436 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
437 (pe_output_file_set_long_section_names): Likewise.
438 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
439 (pep_output_file_set_long_section_names): Add prototype.
440 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
441 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
442 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
443 (gld_${EMULATION_NAME}_list_options): Describe them.
444 (gld${EMULATION_NAME}_handle_option): Set or clear global
445 pe_use_coff_long_section_names flag when options recognised.
446 (gld_${EMULATION_NAME}_after_open): En/disable long section names
447 for main output bfd by calling pe_output_file_set_long_section_names.
448 * pep.em (enum options): Extend enum with new getopt option values.
449 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
450 (gld_${EMULATION_NAME}_list_options): Describe them.
451 (gld${EMULATION_NAME}_handle_option): Set or clear global
452 pe_use_coff_long_section_names flag when options recognised.
453 (gld_${EMULATION_NAME}_after_open): En/disable long section names
454 for main output bfd by calling pep_output_file_set_long_section_names.
455
456 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
457
458 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
459 inadvertent .reloc sections caused by refactoring accident.
460
461 2009-02-16 Alan Modra <amodra@bigpond.net.au>
462
463 * ldlang.c (process_insert_statements): ASSERT that output section
464 statements are in order.
465
466 2009-02-16 Alan Modra <amodra@bigpond.net.au>
467
468 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
469 (stat_save, stat_save_ptr): New variables.
470 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
471 (load_symbols): Likewise. Delete dead "bad_load" code.
472 (open_input_bfds): Warn on script containing output sections.
473 (lang_enter_output_section_statement): Use push_stat_ptr.
474 (lang_enter_group): Likewise.
475 (lang_leave_output_section_statement): Use pop_stat_ptr.
476 (lang_leave_group): Likewise.
477 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
478 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
479 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
480 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
481 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
482 * emultempl/spuelf.em (spu_place_special_section): Likewise.
483 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
484
485 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
486
487 Missing piece of 2009-01-26 commit
488 * ldlang.c (lang_process): Don't consider relocatable flag when
489 checking for overlap.
490
491 2009-02-05 Joseph Myers <joseph@codesourcery.com>
492
493 * emulparams/m68kelf.sh: Add newline at end of file.
494
495 2009-02-04 Nick Clifton <nickc@redhat.com>
496
497 PR 9805
498 * ld.texinfo (--allow-shlib-undefined): Correct description of
499 default settings and tidy up the rest of the entry.
500
501 2009-02-04 Alan Modra <amodra@bigpond.net.au>
502
503 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
504 during relocatable link.
505
506 2009-02-03 Nick Clifton <nickc@redhat.com>
507
508 PR 9797
509 * ld.texinfo (Constants): Document the base-encoding suffixes
510 supported in linker scripts.
511
512 2009-02-03 Alan Modra <amodra@bigpond.net.au>
513
514 * NEWS: Mention --as-needed change.
515
516 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
517
518 * configure.in: AC_SUBST pdfdir.
519 * Makefile.am: Add install-pdf, install-pdf-am,
520 and install-pdf-recursive targets. Define pdf__strip_dir.
521 * po/Make-in: Add install-pdf target.
522 * configure: Regenerate.
523 * Makefile.in: Regenerate.
524
525 2009-01-31 Alan Modra <amodra@bigpond.net.au>
526
527 * ld.texinfo (--as-needed): Update.
528
529 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
530
531 * emultempl/armelf.em: Correct formatting of help text for
532 --no-enum-size-warning option.
533
534 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
535
536 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
537 * ld.h (args_type): Make check_section_addresses a char.
538 * ldmain.c (main): Default check_section_addresses to -1. Check it
539 for relocatable links.
540 * ld.texinfo (--check-sections): Update documentation.
541
542 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
543
544 * pe-dll.c (tmp_seq2): New static variable.
545 (make_singleton_name_imp): New.
546 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
547 avoid duplicate import table generation for same symbol.
548 (pe_create_runtime_relocator_reference): Make reference for
549 64-bit 8 bytes.
550
551 2009-01-21 Alan Modra <amodra@bigpond.net.au>
552
553 * emultempl/spuelf.em (params): Init new field.
554 (OPTION_SPU_NON_IA_TEXT): Define.
555 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
556 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
557
558 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
559
560 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
561 (ld_options): Add -Ttext-segment.
562 (parse_args): Handle OPTION_TTEXT_SEGMENT.
563
564 * ld.texinfo: Document -Ttext-segment.
565
566 * NEWS: Mention -Ttext-segment.
567
568 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
569 (SHLIB_TEXT_START_ADDR): Likewise.
570
571 2009-01-13 Alan Modra <amodra@bigpond.net.au>
572
573 * emultempl/spu_icache.o_c: Regenerate.
574
575 2009-01-12 Alan Modra <amodra@bigpond.net.au>
576
577 * emultempl/spuelf.em (params): Init new fields.
578 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
579 (spu_place_special_section): Adjust placement for soft-icache. Pad
580 soft-icache section to a fixed size. Clear addr_tree.
581 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
582 sections a little more intelligently.
583 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
584 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
585 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
586 (OPTION_SPU_LRLIVE): Define.
587 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
588 (PARSE_AND_LIST_OPTIONS): Likewise.
589 (PARSE_AND_LIST_ARGS_CASES): Handle them.
590 * emultempl/spu_icache.S: Dummy file.
591 * emultempl/spu_icache.o_c: Regenerate.
592 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
593 (spu_icache.o_c): Add rule to build.
594 (CLEANFILES): Zap temp files.
595 (EXTRA_DIST): Add spu_icache.o_c.
596 * Makefile.in: Regenerate.
597
598 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
599
600 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
601 (gld..._add_options): Add new option
602 --use-nul-prefixed-import-tables.
603 (gld..._handle_option): Likewise.
604 * pep.em: Same as for pe.em.
605 * ld.texinfo: Add new option documentation for
606 --use-nul-prefixed-import-tables.
607 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
608 (make_head): Make prefix leading zero prefix element for
609 idata$4 and idata$5 dependent to new flag.
610 (make_import_fixup_entry): Remove idata4/5 prefix.
611 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
612 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
613 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
614 * NEWS: Add new option.
615
616 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
617
618 * emultempl/pe.em: Prefix dollar characters to be outputed in
619 generated C file.
620 * emultempl/pep.em: Likewise.
621
622 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
623
624 * NEWS: Mention new feature --exclude-modules-for-implib.
625 * ld.texinfo: Document new --exclude-modules-for-implib option.
626 * pe-dll.c (exclude_list_struct): Change type member from int to
627 new enumeration exclude_type.
628 (pe_dll_add_excludes): Accept exclude_type instead of int param.
629 (auto_export): Replace magic constants by exclude_type values and
630 handle new choice EXCLUDEFORIMPLIB.
631 (pe_dll_generate_implib): Accept a pointer to the link_info and
632 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
633 fresh BFDs for any found and link into import lib archive chain.
634 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
635 constants previously used for exclude_list_struct type member.
636 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
637 * pep-dll.h (exclude_type, pe_dll_add_excludes,
638 pe_dll_generate_implib): Likewise to all the above.
639 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
640 getopts long option code for new --exclude-modules-for-implib option.
641 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
642 (gld_${EMULATION_NAME}_list_options): List usage for it.
643 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
644 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
645 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
646 calling pe_dll_generate_implib.
647 * emultempl/pep.em (options): Define new enumerated value for getopts
648 long option code for new --exclude-modules-for-implib option.
649 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
650 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
651 Again, likewise to all the above.
652
653 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
654
655 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
656 (libnamencmp): New function.
657 (auto_export): Use it in place of strncmp when filtering libraries.
658
659 For older changes see ChangeLog-2008
660 \f
661 Local Variables:
662 mode: change-log
663 left-margin: 8
664 fill-column: 74
665 version-control: never
666 End: