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