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