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