OSDN Git Service

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