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