d41dd9b9de2dcf0a0bfc103924a655ed052a9e9b
[platform/upstream/binutils.git] / ld / ChangeLog
1 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
2
3         * emultempl/aix.em (auto_export_flags): New variable.
4         (explicit_auto_export_flags): Likewise.
5         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
6         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
7         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
8         -bnoexpall and -bnoexpfull.
9         (gld${EMULATION_NAME}_handle_option): Handle them.
10         (gld${EMULATION_NAME}_before_allocation): Update the call to
11         bfd_size_dynamic_sections.
12
13 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
14
15         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
16         -berok and -bernotok control link_info.unresolved_syms_in_objects
17         and link_info.unresolved_syms_in_shared_libs instead of
18         force_make_executable.
19
20 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
21
22         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
23         config.dynamic_link to TRUE.
24
25 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
26
27         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
28         .text, .data and .bss output sections as SEC_KEEP.
29
30 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
31
32         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
33
34 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
35             Danny Smith  <dannysmith@users.sourceforge.net>
36
37         * emultmpl/pe.em (pe_dll_characteristics): New variable.
38         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
39         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
40         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
41         New macros for options to set DllCharacteristics flag bits.
42         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
43         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
44         (init): Add DllCharacteristics field.
45         (gld_${EMULATION_NAME}_list_options): List new options.
46         (gld${EMULATION_NAME}_handle_option): Handle new options.
47         * emultmpl/pep.em (pe_dll_characteristics): New variable.
48         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
49         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
50         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
51         New macros for options to set DllCharacteristics flags.
52         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
53         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
54         (init): Add DllCharacteristics field.
55         (gld_${EMULATION_NAME}_list_options): List new options.
56         (gld${EMULATION_NAME}_handle_option): Handle new options.
57         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
58         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
59
60 2009-03-06  Nick Clifton  <nickc@redhat.com>
61
62         * po/es.po: Updated Spanish translation.
63
64 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
65
66         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
67         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
68         of all input BFDs, looking for debug info.  Enable long section names
69         if any found.
70         * emultempl/pe.em (debug_section_p):  Likewise.
71         (gld_${EMULATION_NAME}_after_open):  Likewise.
72         * NEWS:  Retrospectively adjust news announcement.
73         * ld.texinfo:  Update documentation to mention new behaviour.
74
75 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
76
77         * Makefile.am: Run "make dep-am".
78         * Makefile.in: Regenerate.
79
80 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
81
82         * ldgram.y: Add support for REGION_ALIAS operator.
83         * ldlang.c: Likewise.
84         * ldlang.h: Likewise.
85         * ldlex.l: Likewise.
86         * NEWS: Mention the new feature.
87         * ld.texinfo: Document the new feature.
88
89 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
90
91         * Makefile.am: Replace score elf emulation with score3 and score7
92         emulations.
93         * Makefile.in: Regenerate,
94         * NEWS: Mention support for Score7 architecture.
95         * configure.tgt: Add score7 emulation to score-elf target.
96         * emulparams/scoreelf.sh: Add score7 support.
97         * emultempl/scoreelf.em: Likewise.
98
99 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
100
101         * configure.tgt: Only use elf64hppa target emulation for hpux.
102         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
103         (SCRIPT_NAME): Use new script elf64hppa.
104         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
105         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
106         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
107         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
108         TEXT_DYNAMIC): Define.
109         * emulparams/hppa64linux.sh: Adjust comments.
110         * scripttempl/elf64hppa.sc: New file.
111
112 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113
114         * configure: Regenerate.
115
116 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
117
118         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
119         default state of auto-import flag based on $target.
120
121 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
122
123         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
124         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
125         (elf32_arm_add_stub_section): Update comment.
126         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
127
128 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
129
130         * ld.texinfo (Options): Correct typos in example.  Recommend
131         using joined forms of syntax for passing options with arguments 
132         from a driver.
133         (-a): Use consistent syntax for documenting option arguments.
134         Clean up indexing and markup.
135         (-A/--architecture): Likewise.
136         (-f/--auxiliary): Likewise.
137         (-F/--filter): Likewise.
138         (-fini): Likewise.
139         (-G/--gpsize): Likewise.
140         (-h/-soname):Likewise.
141         (-init): Likewise.
142         (-l/--library): Likewise.
143         (-L/--library-path): Likewise.
144         (-m): Likewise.
145         (--defsym): Likewise.
146         (-I/--dynamic-linker): Likewise.
147         (-Map): Likewise.
148         (--oformat): Likewise.
149         (--retain-symbols-file): Likewise.
150         (-rpath): Likewise.
151         (-rpath-link): Likewise.
152         (--sort-common): Likewise.
153         (--sort-section): Likewise.
154         (--split-by-file): Likewise.
155         (--split-by-reloc): Likewise.
156         (--sysroot): Likewise.
157         (--section-start): Likewise.
158         (-Tbss, -Tdata, -Ttext): Likewise.
159         (-Ttext-segment): Likewise.
160         (--version-script): Likewise.
161         (--wrap): Likewise.
162
163 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
164
165         * ld.texinfo:  Update to mention long section name options.
166         * NEWS:  Mention new behaviour and command-line options.
167         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
168         (pe_output_file_set_long_section_names):  New function.
169         (pe_dll_build_sections):  Call it on output BFDs.
170         (pe_exe_build_sections):  Likewise.
171         (pe_dll_fill_sections):  Likewise.
172         (pe_exe_fill_sections):  Likewise.
173         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
174         (pe_output_file_set_long_section_names):  Add prototype.
175         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
176         (pe_output_file_set_long_section_names):  Likewise.
177         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
178         (pep_output_file_set_long_section_names):  Add prototype.
179         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
180         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
181         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
182         (gld_${EMULATION_NAME}_list_options):  Describe them.
183         (gld${EMULATION_NAME}_handle_option):  Set or clear global
184         pe_use_coff_long_section_names flag when options recognised.
185         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
186         for main output bfd by calling pe_output_file_set_long_section_names.
187         * pep.em (enum options):  Extend enum with new getopt option values.
188         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
189         (gld_${EMULATION_NAME}_list_options):  Describe them.
190         (gld${EMULATION_NAME}_handle_option):  Set or clear global
191         pe_use_coff_long_section_names flag when options recognised.
192         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
193         for main output bfd by calling pep_output_file_set_long_section_names.
194
195 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
196
197         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
198         inadvertent .reloc sections caused by refactoring accident.
199
200 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
201
202         * ldlang.c (process_insert_statements): ASSERT that output section
203         statements are in order.
204
205 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
206
207         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
208         (stat_save, stat_save_ptr): New variables.
209         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
210         (load_symbols): Likewise.  Delete dead "bad_load" code.
211         (open_input_bfds): Warn on script containing output sections.
212         (lang_enter_output_section_statement): Use push_stat_ptr.
213         (lang_enter_group): Likewise.
214         (lang_leave_output_section_statement): Use pop_stat_ptr.
215         (lang_leave_group): Likewise.
216         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
217         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
218         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
219         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
220         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
221         * emultempl/spuelf.em (spu_place_special_section): Likewise.
222         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
223
224 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
225
226         Missing piece of 2009-01-26 commit
227         * ldlang.c (lang_process): Don't consider relocatable flag when
228         checking for overlap.
229
230 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
231
232         * emulparams/m68kelf.sh: Add newline at end of file.
233
234 2009-02-04  Nick Clifton  <nickc@redhat.com>
235
236         PR 9805
237         * ld.texinfo (--allow-shlib-undefined): Correct description of
238         default settings and tidy up the rest of the entry.
239
240 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
241
242         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
243         during relocatable link.
244
245 2009-02-03  Nick Clifton  <nickc@redhat.com>
246
247         PR 9797
248         * ld.texinfo (Constants): Document the base-encoding suffixes
249         supported in linker scripts.
250
251 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
252
253         * NEWS: Mention --as-needed change.
254
255 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
256
257         * configure.in: AC_SUBST pdfdir.
258         * Makefile.am: Add install-pdf, install-pdf-am,
259         and install-pdf-recursive targets. Define pdf__strip_dir.
260         * po/Make-in: Add install-pdf target.
261         * configure: Regenerate.
262         * Makefile.in: Regenerate.
263
264 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
265
266         * ld.texinfo (--as-needed): Update.
267
268 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
269
270         * emultempl/armelf.em: Correct formatting of help text for
271         --no-enum-size-warning option.
272
273 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
274
275         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
276         * ld.h (args_type): Make check_section_addresses a char.
277         * ldmain.c (main): Default check_section_addresses to -1. Check it
278         for relocatable links.
279         * ld.texinfo (--check-sections): Update documentation.
280
281 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
282
283         * pe-dll.c (tmp_seq2): New static variable.
284         (make_singleton_name_imp): New.
285         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
286         avoid duplicate import table generation for same symbol.
287         (pe_create_runtime_relocator_reference): Make reference for
288         64-bit 8 bytes.
289
290 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
291
292         * emultempl/spuelf.em (params): Init new field.
293         (OPTION_SPU_NON_IA_TEXT): Define.
294         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
295         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
296
297 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
298
299         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
300         (ld_options): Add -Ttext-segment.
301         (parse_args): Handle OPTION_TTEXT_SEGMENT.
302
303         * ld.texinfo: Document -Ttext-segment.
304
305         * NEWS: Mention -Ttext-segment.
306
307         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
308         (SHLIB_TEXT_START_ADDR): Likewise.
309
310 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
311
312         * emultempl/spu_icache.o_c: Regenerate.
313
314 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
315
316         * emultempl/spuelf.em (params): Init new fields.
317         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
318         (spu_place_special_section): Adjust placement for soft-icache.  Pad
319         soft-icache section to a fixed size.  Clear addr_tree.
320         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
321         sections a little more intelligently.
322         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
323         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
324         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
325         (OPTION_SPU_LRLIVE): Define.
326         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
327         (PARSE_AND_LIST_OPTIONS): Likewise.
328         (PARSE_AND_LIST_ARGS_CASES): Handle them.
329         * emultempl/spu_icache.S: Dummy file.
330         * emultempl/spu_icache.o_c: Regenerate.
331         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
332         (spu_icache.o_c): Add rule to build.
333         (CLEANFILES): Zap temp files.
334         (EXTRA_DIST): Add spu_icache.o_c.
335         * Makefile.in: Regenerate.
336
337 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
338
339         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
340         (gld..._add_options): Add new option
341         --use-nul-prefixed-import-tables.
342         (gld..._handle_option): Likewise.
343         * pep.em: Same as for pe.em.
344         * ld.texinfo: Add new option documentation for
345         --use-nul-prefixed-import-tables.
346         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
347         (make_head): Make prefix leading zero prefix element for
348         idata$4 and idata$5 dependent to new flag.
349         (make_import_fixup_entry): Remove idata4/5 prefix.
350         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
351         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
352         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
353         * NEWS: Add new option.
354
355 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
356
357         * emultempl/pe.em: Prefix dollar characters to be outputed in
358         generated C file.
359         * emultempl/pep.em: Likewise.
360
361 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
362
363         * NEWS:  Mention new feature --exclude-modules-for-implib.
364         * ld.texinfo:  Document new --exclude-modules-for-implib option.
365         * pe-dll.c (exclude_list_struct):  Change type member from int to
366         new enumeration exclude_type.
367         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
368         (auto_export):  Replace magic constants by exclude_type values and
369         handle new choice EXCLUDEFORIMPLIB.
370         (pe_dll_generate_implib):  Accept a pointer to the link_info and
371         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
372         fresh BFDs for any found and link into import lib archive chain.
373         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
374         constants previously used for exclude_list_struct type member.
375         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
376         * pep-dll.h (exclude_type, pe_dll_add_excludes,
377         pe_dll_generate_implib):  Likewise to all the above.
378         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
379         getopts long option code for new --exclude-modules-for-implib option.
380         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
381         (gld_${EMULATION_NAME}_list_options):  List usage for it.
382         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
383         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
384         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
385         calling pe_dll_generate_implib.
386         * emultempl/pep.em (options):  Define new enumerated value for getopts
387         long option code for new --exclude-modules-for-implib option.
388         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
389         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
390         Again, likewise to all the above.
391
392 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
393
394         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
395         (libnamencmp):  New function.
396         (auto_export):  Use it in place of strncmp when filtering libraries.
397
398 For older changes see ChangeLog-2008
399 \f
400 Local Variables:
401 mode: change-log
402 left-margin: 8
403 fill-column: 74
404 version-control: never
405 End: