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