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