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