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