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