]> Git Repo - binutils.git/blob - ld/ChangeLog
Add support for --subsystem:xbox as well as --subsystem:<number>.
[binutils.git] / ld / ChangeLog
1 2004-11-26  Melissa Mears  <[email protected]>
2
3         * emultempl/pe.em: Add --subsystem:xbox as well as
4         --subsystem:%d.
5         * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
6         and numeric subsystems.
7
8 2004-11-24  Alan Modra  <[email protected]>
9
10         * ldexp.c (fold_name): Correct PR 338 fix.
11
12 2004-11-19  Mark Mitchell  <[email protected]>
13
14         * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
15         (earmelf_linux_eabi.c): New target.
16         * configure.tgt (arm*-*-linux-gnueabi): Handle it.
17         * emulparams/armelf_linux_eabi.sh: New file.
18         * Makefile.in: Regenerated.
19
20 2004-11-19  Nick Clifton  <[email protected]>
21
22         PR 518
23         * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
24         LENGTH fields in the MEMORY command, to explicitly state that
25         symbols cannot be used in their expressions.
26
27 2004-11-19  Jon Beniston <[email protected]>
28
29         * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
30         * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
31         * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions 
32         which return the length and origin of a memory.
33         * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
34         * NEWS: Mention support for ORIGIN and LENGTH operators.
35
36 2004-11-17  Daniel Jacobowitz  <[email protected]>
37
38         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
39         a dynamic object for stubs.
40
41 2004-11-04  Paul Brook  <[email protected]>
42
43         * ld.texinfo: Document --default-imported-symver.
44         * ldmain.c (main): Set link_info.default_imported_symver.
45         * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
46         (ld_options): Add --default-imported-symver.
47         (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
48
49 2004-11-08  Inderpreet Singh   <[email protected]>
50             Vineet Sharma      <[email protected]>
51
52         * Makefile.am: Add entries for new maxq-coff target.
53         * Makefile.in: Regenerate.
54         * configure.tgt: Add support for maxq.
55         * emulparams/maxqcoff.sh: New File.
56         * scripttempl/maxqcoff.sc: New linker script for target maxq.
57         * NEWS: Mention the new target.
58
59 2004-11-08  Aaron W. LaFramboise <[email protected]>
60
61         * testsuite/ld-scripts/weak.exp: Enable test on PE,
62         XFAIL non-i386 PE.
63         * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
64         XFAIL non-i386 PE.
65         * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
66
67 2004-11-04  Daniel Jacobowitz  <[email protected]>
68
69         * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
70         (earmelf_oabi.c): Remove rule.
71         * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
72         * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
73         * Makefile.in: Regenerated.
74
75 2004-11-04  Hans-Peter Nilsson  <[email protected]>
76
77         * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
78         * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
79         (FINI_START): Ditto.
80         (INIT_END): Remove emitted "jump [sp+]".
81         (FINI_END): Ditto.
82
83 2004-11-04  Alan Modra  <[email protected]>
84
85         * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
86         (no_opd_opt, no_toc_opt): New static vars.
87         (ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
88         ppc64_elf_edit_toc.
89         (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
90         (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
91         (PARSE_AND_LIST_OPTIONS): Describe new options.
92         (PARSE_AND_LIST_ARGS_CASES): Handle them.
93
94 2004-10-27  Nick Clifton  <[email protected]>
95
96         * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
97         parameter to invocation of lang_section_start.
98         * emultempl/aix.em (_handle_option): Likewise.
99
100         * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
101         eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
102         * Makefile.in: Regenerate.
103
104 2004-10-26  Mark Mitchell  <[email protected]>
105
106         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
107         __exidx_{start,end} when not relocating.
108
109 2004-10-25  Mark Mitchell  <[email protected]>
110
111         * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
112         * ldexp.h (segment_type): New type.
113         (segments): New variable.
114         * ldexp.c (segments): New variable.
115         (exp_print_token): Handle SEGMENT_START.
116         (fold_binary): Likewise.
117         * ldgram.y (SEGMENT_START): Declare it as a token.
118         (exp): Handle SEGMENT_START.
119         * ldlang.h (lang_address_statement_type): Add segment field.
120         (lang_section_start): Change prototype.
121         * ldlang.c (map_input_to_output_sections): Do not process section
122         assignments if a corresponding SEGMENT_START has already been
123         seen.
124         (lang_section_start): Add segment parameter.
125         * ldlex.l (SEGMENT_START): Add it.
126         * lexsup.c (seg_segment_start): New function.
127         (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
128         * ld.texinfo (SEGMENT_START): Document it.
129         * emulparams/armsymbian.sh (EMBEDDED): Set it.
130         * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
131         base addresses.  Do not map relocations.
132         * NEWS: Mention SEGMENT_START.
133
134 2004-10-26  Paul Brook  <[email protected]>
135
136         * ld.texinfo: Document --default-symver.
137         * ldmain.c (main): Set link_info.create_default_symver.
138         * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
139         (ld_options): Add default-symver.
140         (parse_args): Handle OPTION_DEFAULT_SYMVER.
141
142 2004-10-24 Danny Smith  <[email protected]>
143
144         * pe-dll.c (process_def_file): Don't export all symbols by default if
145         building a position-independent executable.
146
147 2004-10-21  H.J. Lu  <[email protected]>
148
149         PR 463
150         * ldmain.c (reloc_overflow): Accept a pointer to struct
151         bfd_link_hash_entry. Report symbol location for relocation
152         overflow.
153
154 2004-10-21  H.J. Lu  <[email protected]>
155
156         * genscripts.sh (libpath.exp): Really generate for first
157         emulation only.
158
159 2004-10-19  Danny Smith  <[email protected]>
160
161         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
162         comparison and replacement of filenames.
163
164 2004-10-19  H.J. Lu  <[email protected]>
165
166         PR 459
167         * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
168         option on linker script as the one for linker script.
169
170 2004-10-16  Daniel Jacobowitz  <[email protected]>
171
172         * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
173         (check_excluded_libs): New.
174         (load_symbols): Call check_excluded_libs.
175         * ldlang.h (add_excluded_libs): New prototype.
176         * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
177         (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
178         (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
179         * ld.texinfo (Command Line Variables): Document --exclude-libs.
180         (Options Specific to i386 PE Targets): Remove --exclude-libs.
181
182 2004-10-15  Alan Modra  <[email protected]>
183
184         * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
185         failing link script assert.
186
187         * ldctor.c (ldctor_add_set_entry): Fix comment typo.
188
189 2004-10-14  H.J. Lu  <[email protected]>
190
191         PR 445
192         * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
193         (SMALL_DATA_DTOR): Set.
194         * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
195         (SMALL_DATA_DTOR): Unset.
196         * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
197         after .data. If SMALL_DATA_DTOR is set, move .dtors after
198         .data.
199
200 2004-10-14  Alan Modra  <[email protected]>
201
202         PR 63
203         * ldlang.h (lang_output_section_statement_type): Make "next" a
204         struct lang_output_section_statement_struct *.
205         (struct orphan_save): Move from elf32.em.  Add "name" and "flags".
206         (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
207         * ldlang.c (lang_output_section_find_1): Adjust for changed
208         output_section_statement "next".
209         (strip_excluded_output_sections): Likewise.
210         (lang_record_phdrs): Likewise.
211         (lang_output_section_find_by_flags): New function.
212         (output_prev_sec_find): Move from pe.em.  Adjust iterator.
213         (lang_insert_orphan): New function.  Tail end of elf32.em's
214         place_orphan merged with that from pe.em.  Allow bfd_section to
215         be placed first.  New heuristic for placing new output section
216         statement in existing script, and accompanying split of __start
217         symbol alignment into a separate assignment to dot.
218         (lang_add_section): Consistently use output->bfd_section rather than
219         an alias, section->output_section.
220         (map_input_to_output_sections): Rename overly long arg.  Move
221         initialization of data_statement output section to here..
222         (lang_check_section_addresses): ..from here.
223         (print_assignment): Correct printing of etree_assert.
224         (print_all_symbols): Don't bomb if userdata is NULL.
225         (IGNORE_SECTION): Rearrange.
226         * emultempl/elf32.em (output_rel_find): Adjust interator.
227         (output_prev_sec_find): Delete.
228         (struct orphan_save): Delete.
229         (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
230         flags without creating a duplicate output section statement.
231         Revise code holding history of various orphan section placements.
232         Allow orphan sections to place before script specified output
233         sections.  Call lang_output_section_find_by_flags when placement
234         by name fails.  Use lang_insert_orphan.
235         * emultempl/mmo.em (output_prev_sec_find): Delete.
236         (struct orphan_save): Delete.
237         (mmo_place_orphan): Revise code holding history of orphan placement.
238         Allow orphans to place before existing output sections.  Use
239         lang_insert_orphan.
240         * emultempl/pe.em (output_prev_sec_find): Delete.
241         (struct orphan_save): Delete.
242         (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
243         lang_insert_orphan.
244
245 2004-10-13  Mark Mitchell  <[email protected]>
246
247         * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
248         loadable segment.
249
250 2004-10-13  Alan Modra  <[email protected]>
251
252         PR 44
253         * ldcref.c (check_section_sym_xref): Delete.
254         (check_local_sym_xref): New function.
255         (check_nocrossrefs): Adjust call.
256         * emultempl/pe.em (struct orphan_save): Add os_tail.
257         (place_orphan): Backport assorted fixes from elf32.em.
258
259 2004-10-12  Bob Wilson  <[email protected]>
260
261         * emultempl/xtensaelf.em: Use ISO C90 formatting.
262
263 2004-10-11  Jakub Jelinek  <[email protected]>
264
265         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
266         getline for portability.
267
268         * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
269         (gld${EMULATION_NAME}_parse_ld_so_conf,
270         gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
271         (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
272
273 2004-10-11  Alan Modra  <[email protected]>
274
275         PR 423
276         * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
277         rejected when linking statically.
278
279 2004-10-08  Daniel Jacobowitz  <[email protected]>
280
281         * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
282
283 2004-10-07  Bob Wilson  <[email protected]>
284
285         * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
286         assembler-generated longcall sequences.  Describe new --size-opt
287         option.
288         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
289         * emultempl/xtensaelf.em (remove_section,
290         replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
291         elf_xtensa_after_open): New.
292         (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
293         OPTION_NO_LITERAL_MOVEMENT): Define.
294         (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
295         (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
296         (PARSE_AND_LIST_OPTIONS): Add --size-opt.
297         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
298         OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
299         (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
300         * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
301         * Makefile.am (eelf32xtensa.c): Update dependencies.
302         * Makefile.in: Regenerate.
303
304 2004-10-07  Jeff Baker  <[email protected]>
305
306         * lexsup.c: Handle --warn-shared-textrel option.
307         (ld_options): Restore alpha sorting of options.
308         * ldmain.c (main): Initialise warn_shared_info field to FALSE.
309         * ld.texinfo: Add documentation for --warn-shared-textrel.
310         * NEWS: Added mention of --warn-shared-textrel option.
311
312 2004-10-05  Tomer Levi  <[email protected]>
313
314         * emultempl/crxelf.em (disable_relaxation): Add.
315         (crxelf_before_allocation): Enable --relax option by default.
316         (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
317         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
318         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
319
320 2004-10-04  H.J. Lu  <[email protected]>
321
322         * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
323         --sort-section name|alignment.
324
325         * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
326         --sort-section name|alignment.
327
328         * ld.h (sort_type): New enum.
329         (wildcard_spec): Change the type of `sorted' to sort_type.
330
331         * ldgram.y (SORT): Removed.
332         (SORT_BY_NAME): Added.
333         (SORT_BY_ALIGNMENT): Added.
334         (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
335         SORT_BY_ALIGNMENT.
336         (input_section_spec_no_keep): Updated `sorted'.
337         (statement): Replace SORT with SORT_BY_NAME.
338
339         * ldlang.c (compare_section): New function to compare 2
340         sections with different sorting schemes.
341         (wild_sort): Updated. Use compare_section.
342         (update_wild_statements): New function.
343         (lang_process): Call update_wild_statements before
344         map_input_to_output_sections.
345
346         * ldlex.l (SORT_BY_NAME): New.
347         (SORT_BY_ALIGNMENT): New.
348         (SORT): Return SORT_BY_NAME.
349
350         * ldmain.c (sort_section): New. Defined.
351         (main): Initialize it to none.
352
353         * lexsup.c (option_values): Add OPTION_SORT_SECTION.
354         (ld_options): Add an entry for OPTION_SORT_SECTION.
355         (parse_args): Handle OPTION_SORT_SECTION.
356
357         * mri.c (mri_draw_tree): Updated `sorted'.
358
359 2004-10-04  Jakub Jelinek  <[email protected]>
360
361         * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
362         * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
363         argument.
364         (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
365         and . as second argument.
366         (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
367         * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
368         (fold_binary): Add it here.  Insert padding to make relro_end
369         COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
370         exp_dataseg_relro_adjust phase just use previously computed
371         exp_data_seg.base.
372         * ldlang.c (lang_size_sections): Set exp_data_seg.base for
373         relro_adjust here.  Call lang_size_sections_1 once more if there
374         was too big padding at DATA_SEGMENT_RELRO_END.
375         * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
376
377 2004-10-01  Paul Brook  <[email protected]>
378
379         * emulparams/armelf.sh: Add unwinding table sections.
380
381 2004-09-30  Filip Navara  <[email protected]>
382
383         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
384         correct base address for position independant executables.
385         * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
386         executables as DLLs.
387
388 2004-09-30  Paul Brook  <[email protected]>
389
390         * ld.texinfo: Document --target2=abs.
391         * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
392
393 2004-09-29  Nick Clifton  <[email protected]>
394
395         * scripttempl/xstormy16.sc: Only perform the assignments to the
396         ROM region when not performing a relocatable link.  The ROM region
397         does not start at address 0, but the sections will.
398         * Makefile.am: Fix linker script dependency for the generation of
399         eelf32xstormy16.c.
400         * Makefile.in: Regenerate.
401
402 2004-09-18  Filip Navara  <[email protected]>
403
404         * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
405         emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
406         emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
407         TARGET_PAGE_SIZE.
408         * scripttempl/pe.sc: Make the virtual address and file offset synced if
409         the alignment is lower than the target page size.
410
411 2004-09-27  Filip Navara  <[email protected]>
412
413         * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
414         def_file_parse to handle pe_def_file if NULL and prevent crash with
415         invalid .def files.
416
417 2004-09-27  Alan Modra  <[email protected]>
418
419         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
420         --emit-stub-syms automatically when --emit-relocs.
421
422 2004-09-24  Paul Brook  <[email protected]>
423
424         * scripttempl/elf.sc: Keep .preinit_array, .init_array and
425         .fini_array sections.
426
427 2004-09-19  Andreas Schwab  <[email protected]>
428
429         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
430         base so that relro end is suitably aligned.
431
432 2004-09-17  Paul Brook  <[email protected]>
433
434         * ld.texinfo: Rename arm-specific section.  Document --target*
435         * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
436         * emulparams/armelf_linux.sh: Ditto.
437         * emulparams/armelf_nbsd.sh: Ditto.
438         * emultempl/armelf.em: Set default for TARGET2_TYPE.
439         (target2_type): New variable.
440         (arm_elf_before_allocation): Don't pass target1_type.
441         (arm_elf_create_output_section_statements): New function.
442         (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
443         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
444         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
445         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
446         * emultempl/armelf_oabi.em (_before_allocation): Remove extra
447         argument to bfd_elf32_arm_process_before_allocation.
448
449 2004-09-17  Alan Modra  <[email protected]>
450
451         * ldexp.c (fold_name): Update u.undef.next refs.
452         * emultempl/pe.em: Likewise.
453         * emultempl/sunos.em: Likewise.
454
455 2004-09-17  Alan Modra  <[email protected]>
456
457         * Makefile.am: Run "make dep-am".
458         * Makefile.in: Regenerate.
459         * config.in: Regenerate.
460         * configure: Regenerate.
461         * aclocal.m4: Regenerate.
462         * po/ld.pot: Regenerate.
463
464 2004-09-16  Tomer Levi  <[email protected]>
465
466         * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
467         (.fini): Likewise.
468         (.jcr): Likewise.
469
470 2004-09-16  Alan Modra  <[email protected]>
471
472         * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
473         to bfd_elf32_arm_process_before_allocation call.
474
475 2004-09-13  Paul Brook  <[email protected]>
476
477         * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
478         * emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
479
480 2004-09-07  H.J. Lu  <[email protected]>
481
482         * configure: Regenerated with autconfig 2.13.
483
484 2004-09-07  Andreas Schwab  <[email protected]>
485
486         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
487         alignment before adjusting DATA_SEGMENT_RELRO_END.
488
489 2004-09-06  Mark Mitchell  <[email protected]>
490
491         * emulparams/armsymbian.sh: Use armbpabi script.
492         * scripttempl/armbpabi.sc: New script.
493
494 2004-09-02  Mark Mitchell  <[email protected]>
495
496         * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
497         (earmsymbian.c): New target.
498         * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
499         * Makefile.in: Regenerated.
500         * aclocal.m4: Likewise.
501         * configure: Likewise.
502         * emulparams/armsymbian.sh: New file.
503
504 2004-09-03  Tomer Levi  <[email protected]>
505
506         * scripttempl/elf32crx.sc: Edit file with comments.
507         (.init): Add new section.
508         (.fini): Likewise.
509         (.ctor): Control the linkage order.
510         (.dtor): Likewise.
511
512 2004-08-27  Nick Clifton  <[email protected]>
513
514         * emultempl/pe.em (after_open): Do not assume that either bfd is
515         an archive.
516
517 2004-08-26  Alan Modra  <[email protected]>
518
519         * ldlang.c (lang_init): Don't compare with TRUE.
520
521 2004-08-25  Dmitry Diky  <[email protected]>
522
523         * emulparams/msp430all.sh: Fix RAM sizes for all targets.
524         * scripttempl/elf32msp430.sc: Add .profiler section definition.
525
526 2004-08-24  H.J. Lu  <[email protected]>
527
528         * ldlang.c (wildcardp): Defined as a macro with strpbrk.
529
530 2004-08-19  Mark Mitchell  <[email protected]>
531
532         * configure.tgt (arm*-*-symbianelf*): New target.
533         (arm*-*-eabi*): Likewise.
534
535 2004-08-19  Jakub Jelinek  <[email protected]>
536
537         * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
538         (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
539         (OPTION_NON_OVERLAPPING_OPD): Define.
540         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
541         --non-overlapping-opd option.
542
543 2004-08-18  Alan Modra  <[email protected]>
544
545         PR 338
546         * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
547         was already on the undefs list.
548
549 2004-08-17  Alan Modra  <[email protected]>
550
551         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
552         prefix the symbol field too.
553
554 2004-08-13  Alan Modra  <[email protected]>
555
556         * ldmain.c (link_callbacks): Remove "error_handler".
557         * ldmisc.c: Include elf-bfd.h.
558         (vfinfo): Sort comment.  Handle %A.  Use %A instead of
559         bfd_get_section_indent.
560         (error_handler): Delete.
561         * ldmisc.h (error_handler): Delete declaration.
562
563 2004-08-10  Alan Modra  <[email protected]>
564
565         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
566         ppc64_elf_restore_symbols.
567
568 2004-08-09  Alan Modra  <[email protected]>
569
570         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
571         .toc is too large on relocatable linking.
572
573 2004-08-09  Alan Modra  <[email protected]>
574
575         * emultempl/ppc64elf.em (ppc_after_open): Delete.
576         (LDEMUL_AFTER_OPEN): Don't define.
577
578 2004-08-02  Stephane Carrez  <[email protected]>
579
580         * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
581
582 2004-08-01  Stephane Carrez  <[email protected]>
583
584         * scripttempl/elfm68hc12.sc: Align text, rodata and data section
585         on power of 2.
586
587 2004-07-27  Jason Thorpe  <[email protected]>
588
589         * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
590
591 2004-07-26  Dmitry Diky  <[email protected]>
592
593         * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
594         msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
595         msp430xG439.
596         * configure.tgt: Likewise.
597         * emulparams/msp430all.sh: Likewise.
598         * Makefile.in: Regenerate.
599
600 2004-07-23  Nick Clifton  <[email protected]>
601
602         * emultempl/elf32.em (_place_orphan): Use an already existing
603         section name if that section does not have any flags set.
604
605 2004-07-21  H.J. Lu  <[email protected]>
606
607         * ldlang.c (already_linked_hash_entry): Removed.
608         (already_linked): Likewise.
609         (already_linked_table): Likewise.
610         (section_already_linked): Call bfd_section_already_linked.
611         (lang_process): Replace already_linked_table_init with
612         bfd_section_already_linked_table_init and check return. Replace
613         already_linked_table_free with bfd_section_already_linked_table_free.
614
615 2004-07-21  Nick Clifton  <[email protected]>
616
617         * ldlang.c (init_os): Make sure that the newly allocated userdata
618         structure is zeroed out.
619
620 2004-07-19  H.J. Lu  <[email protected]>
621
622         * NEWS: Mention the new --add-needed/--no-add-needed and
623         --as-needed/--no-as-needed options.
624
625 2004-07-19  H.J. Lu  <[email protected]>
626
627         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
628         check the add_needed field.
629         (dt_needed): New struct.
630         (gld${EMULATION_NAME}_try_needed): Change the first argument
631         to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
632         bit in the file where the DT_NEEDED entry comes from.
633         (gld${EMULATION_NAME}_search_needed): Change the second
634         argument to a pointer to struct dt_needed.
635         (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
636         (gld${EMULATION_NAME}_after_open): Likewise.
637
638         * ld.texinfo: Add --add-needed document.
639         * ldlang.c (new_afile): Set p->add_needed.
640         * ldlang.h (lang_input_statement_type): Add add_needed field.
641         * ldmain.h (add_needed): Declare.
642         * ldmain.c (add_needed): New global var.
643         * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
644         OPTION_NO_ADD_NEEDED.
645         (ld_options): Likewise.
646         (parse_args): Handle them.
647
648 2004-07-13  Christof Petig  <[email protected]>
649
650         * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
651         for endian-ness of extracted addend.
652
653 2004-07-13  Danny Smith  <[email protected]>
654
655         * pe-dll.c (auto_export):  Filter on just the import prefix,
656         "_imp_", not "_imp__".
657
658 2004-07-09  Nick Clifton  <[email protected]>
659
660         * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
661
662 2004-07-06  Tomer Levi  <[email protected]>
663
664         * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
665         (eelf32crx.c): New target.
666         * Makefile.in: Regenerate.
667         * configure.tgt: Handle crx-*-elf*.
668         * emulparams/elf32crx.sh: New file.
669         * emultempl/crxelf.em: New file.
670         * scripttempl/elf32crx.sc: New file.
671         * NEWS: Mention new target.
672
673 2004-07-06  Nick Clifton  <[email protected]>
674
675         * Makefile.am: Add eshlsymbian.c.
676         * Makefile.in: Regenerate.
677         * configure.tgt: Add sh*-symbian-elf target.
678         * emulparams/shlsymbian.sh: New file.  Configure the
679         sh-symbian-elf linker scripts.
680         * scripttemp/elf32sh-symbian.sc: New file.  Linker script
681         template for the sh-symbian-elf target.
682
683 2004-07-05  John David Anglin  <[email protected]>
684
685         * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
686         * emulparams/hppalinux.sh: Likewise.
687         * scripttempl/elf.sc: Place .plt just before .got when .plt is in
688         data segment and PLT_BEFORE_GOT is defined.
689
690 2004-07-03  Aaron W. LaFramboise  <[email protected]>
691
692         * ld.texinfo (WIN32): Document PE weak symbols.
693
694 2004-07-02  Kaz Kojima  <[email protected]>
695
696         * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
697
698 2004-07-01  H.J. Lu  <[email protected]>
699
700         * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
701         the section.
702
703 2004-06-29  Alan Modra  <[email protected]>
704
705         * ldlang.c (lang_reset_memory_regions): Save last relax pass section
706         size in rawsize.
707
708 2004-06-24  Alan Modra  <[email protected]>
709
710         * ldlang.c (print_output_section_statement): Don't print size before
711         relaxation.
712         (IGNORE_SECTION): Remove bfd arg.  Update all callers.
713
714         * ldexp.c (fold_name): .. See below.
715         * ldlang.c (section_already_linked, print_output_section_statement,
716         print_input_section, insert_pad, size_input_section,
717         lang_check_section_addresses, lang_size_sections_1,
718         lang_size_sections, lang_do_assignments_1, lang_set_startof,
719         lang_one_common, lang_reset_memory_regions, lang_process,
720         lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
721         * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
722         * pe-dll.c (process_def_file, generate_reloc): ..
723         * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
724         gld${EMULATION_NAME}_before_allocation): ..
725         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
726         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
727         sh64_elf_${EMULATION_NAME}_after_allocation): ..
728         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
729         * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
730         ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
731         "size" instead of "_raw_size" and "_cooked_size".  Expand
732         bfd_section_size macro invocations.
733
734 2004-06-22  Aaron W. LaFramboise <[email protected]>
735
736         * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
737         ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
738         ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
739         ___crt_xt_end__.
740         (.tls): Define ___tls_start__ and ___tls_end__.
741
742 2004-06-21  Alexandre Oliva  <[email protected]>
743
744         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
745
746 2004-06-18  Adam Nemet  <[email protected]>
747
748         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
749         * configure: Regenerate.
750
751 2004-06-15  Jakub Jelinek  <[email protected]>
752
753         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
754         .gcc_except_table output sections lost accidentally with
755         -z relro patch.
756
757 2004-06-15  Alan Modra  <[email protected]>
758
759         * ldwrite.c (build_link_order): Use bfd_get_section_size
760         instead of bfd_get_section_size_before_reloc or _raw_size.
761         * pe-dll.c (process_def_file): Likewise.
762
763 2004-06-14  Alan Modra  <[email protected]>
764
765         From Richard Wirth <[email protected]>
766         * ldlang.c (lang_finish): Don't free lang_definedness_table.
767
768 2004-05-29  Alan Modra  <[email protected]>
769
770         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
771         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
772
773 2004-05-28  Andrew Stubbs <[email protected]>
774
775         * testsuite/ld-sh/arch/arch.exp: New test script.
776         * testsuite/ld-sh/arch/arch_expected.txt: New file.
777         * testsuite/ld-sh/arch/sh.s: New file.
778         * testsuite/ld-sh/arch/sh2.s: New file.
779         * testsuite/ld-sh/arch/sh-dsp.s: New file.
780         * testsuite/ld-sh/arch/sh2e.s: New file.
781         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
782         * testsuite/ld-sh/arch/sh3.s: New file.
783         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
784         * testsuite/ld-sh/arch/sh3e.s: New file.
785         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
786         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
787         * testsuite/ld-sh/arch/sh4.s: New file.
788         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
789         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
790         * testsuite/ld-sh/arch/sh4a.s: New file.
791
792 2004-05-28  Alan Modra  <[email protected]>
793
794         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
795         throughout file.
796         * lexsup.c: Formatting.  Wrap long lines.
797         * ldwrite.c: Update copyright date.
798
799         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
800         (output_section_callback): Nor SEC_KEEP here.
801         (gc_section_callback): Twiddle SEC_EXCLUDE here.
802         (lang_gc_wild): Delete.  Fold into..
803         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
804         collecting.
805         (lang_process): Always call lang_gc_sections.
806         (lang_place_orphans): Handle SEC_EXCLUDE sections.
807         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
808         SEC_EXCLUDE code.
809
810 2004-05-26  H.J. Lu  <[email protected]>
811
812         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
813         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
814         * ldlang.c (lang_add_section): Likewise.
815
816 2004-05-26  Alan Modra  <[email protected]>
817
818         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
819         sections when doing a final link.  Clear SEC_EXCLUDE when doing
820         a relocable link, except for SEC_DEBUGGING sections.
821         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
822         same condition here to drop SEC_EXCLUDE orphan sections.
823
824 2004-05-25  Alan Modra  <[email protected]>
825
826         * ldlang.c (lang_process): Call bfd_merge_sections later, and
827         only when not a relocatable link.
828         (print_input_section): Handle SEC_EXCLUDE sections.
829         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
830         (lang_do_assignments_1): Likewise.
831         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
832         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
833         * emultempl/hppaelf.em (build_section_lists): Likewise.
834         * emultempl/ppc64elf.em (build_toc_list): Likewise.
835         (build_section_lists): Likewise.
836
837 2004-05-23  Andreas Schwab  <[email protected]>
838
839         * ld.texinfo (Options): Fix typo in last change.
840
841 2004-05-21  Andy Chittenden  <[email protected]>
842
843         * ld.h (ld_config_type): Add new field: hash_table_size.
844         * ldmain.c: Initialise the new field to zero.  If it is non-zero
845         after parsing the linker's command line call
846         bfd_hash_set_default_size.
847         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
848         (ld_options): Add hash-size.
849         (parse_args): Parse --hash-size option.  Allow
850         --reduce-memory-overheads to set the default hash table size as
851         well.
852         * ld.texinfo: Document the new switch.  Also mention that
853         --reduce-memory-overheads can affect the hash table size.
854         * NEWS: Mention the new feature.
855
856 2004-05-19  J"orn Rennecke <[email protected]>
857
858         * NEWS: Mention new linker map file generation and the
859         --reduce-memory-overheads option.
860         * ld.texinfo: Document --reduce-memory-overheads option.
861         * ld.h (map_symbol_def): New struct.
862         (struct user_section_struct, section_userdata_type): Rename to:
863         (struct lean_user_section_struct, lean_section_userdata_type).
864         (struct fat_user_section_struct, fat_section_userdata_type): New.
865         (SECTION_USERDATA_SIZE): Define.
866         (args_type): New member reduce_memory_overheads.
867         * ldlang.c (map_obstack): New static variable.
868         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
869         (lang_map): Unless command_line.reduce_memory_overheads is set,
870         initialize lists of defined symbols for each section.
871         (print_input_section): Unless command_line.reduce_memory_overheads
872         is set, use print_all_symbols.
873         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
874         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
875         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
876         (ld_options): Add entry for --reduce-memory-overheads.
877         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
878
879 2004-05-19  Jakub Jelinek  <[email protected]>
880
881         * ldgram.y (sect_constraint): New.
882         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
883         (section): Add sect_constraint.  Pass additional argument
884         to lang_enter_output_section_statement.
885         * mri.c (mri_draw_tree): Pass additional argument to
886         lang_enter_output_section_statement.
887         * emultempl/pe.em (place_orphan): Likewise.
888         (output_prev_sec_find): Disregard output section statements with
889         constraint == -1.
890         * emultempl/mmo.em (output_prev_sec_find): Likewise.
891         (mmo_place_orphan): Pass additional argument to
892         lang_enter_output_section_statement.
893         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
894         statements with constraint == -1.
895         (place_orphan): Pass additional argument to
896         lang_enter_output_section_statement.
897         * ldlang.c (lang_enter_overlay_section): Likewise.
898         (lang_output_section_find_1): New.
899         (lang_output_section_find): Use it.
900         (lang_output_section_statement_lookup_1): New.
901         (lang_output_section_statement_lookup): Use it.
902         (check_section_callback, check_input_sections): New.
903         (map_input_to_output_sections): Check if all input sections
904         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
905         (strip_excluded_output_sections): Disregard output section statements
906         with constraint == -1.
907         (lang_record_phdrs): Likewise.
908         (lang_enter_output_section_statement): Add constraint argument.
909         Use lang_output_section_statement_lookup_1.
910         * ldlang.h (lang_output_section_statement_type): Add constraint
911         and all_input_readonly fields.
912         (lang_enter_output_section_statement): Adjust prototype.
913         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
914         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
915         segment if all input sections are readonly.
916
917 2004-05-19  Adam Nemet  <[email protected]>
918
919         * scripttempl/i386lynx.sc: Remove file.
920
921 2004-05-17  Bob Wilson  <[email protected]>
922
923         * ld.texinfo (Output Section Address): Correct subsection name.
924
925 2004-05-17  Adam Nemet  <[email protected]>
926
927         * configure.tgt (powerpc-*-lynxos* case): New case.
928         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
929         * emulparams/ppclynx.sh: New file.
930         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
931         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
932         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
933         (eppclynx.c): New rule.
934         * Makefile.in: Regenerate.
935
936 2004-05-13  Joel Sherrill <[email protected]>
937
938         * configure.tgt (or32-*-rtems*): Switch to elf and
939         support versioned targets.
940
941 2004-05-13  Nick Clifton  <[email protected]>
942
943         * po/fr.po: Updated French translation.
944
945 2004-05-11  Jakub Jelinek  <[email protected]>
946
947         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
948         for binaries, -shared and -pie.
949         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
950         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
951         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
952         (OTHER_RELRO_SECTIONS): ... this.
953         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
954         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
955         -z relro and -z norelro.
956         (gld${EMULATION_NAME}_list_options): Add it to usage.
957         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
958         -z relro scripts when appropriate.
959         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
960         Create separate .got.plt section if SEPARATE_GOTPLT.
961         Move sections which are only written during relocation handling
962         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
963         before .data.  Add DATA_SEGMENT_RELRO_END directive.
964         Include OTHER_RELRO_SECTIONS.
965         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
966         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
967         (fold_unary): Likewise.
968         (fold_binary): Handle -z relro.
969         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
970         exp_dataseg_relro_adjust phases.  Add relro_end field.
971         * ldmain.c (main): Initialize link_info.relro to FALSE.
972         * ldlang.c (lang_size_sections): Handle -z relro.
973
974 2004-05-08  Marek Michalkiewicz  <[email protected]>
975
976         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
977
978 2004-05-07  J"orn Rennecke <[email protected]>
979
980         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
981         before printing it with %W.
982
983 2004-05-07  Brian Ford  <[email protected]>
984             DJ Delorie  <[email protected]>
985
986         * emultempl/pe.em (real_flags): New static.
987         (OPTION_LARGE_ADDRESS_AWARE): New define.
988         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
989         (gld_${EMULATION_NAME}_list_options): Likewise.
990         (gld${EMULATION_NAME}_handle_option): Likewise.
991         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
992         * ld.texinfo: Document it.
993         * NEWS: Mention it.
994
995 2004-05-07  Brian Ford  <[email protected]>
996
997         * NEWS: Mention DWARF 2 support for i386pe.
998
999 2004-05-05  Alexandre Oliva  <[email protected]>
1000
1001         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1002         elf32-frvfdpic.
1003
1004 2004-04-30  Alan Modra  <[email protected]>
1005
1006         * ldlang.c (unique_section_p): Pass section parm, return true on
1007         group sections.
1008         (output_section_callback): Adjust.
1009         * ldlang.h (unique_section_p): Update prototype.
1010         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1011
1012 2004-04-30  Eric Botcazou  <[email protected]>
1013
1014         * ld.texinfo (--gc-sections): Remove restriction for
1015         dynamic linking.
1016
1017 2004-04-29  Brian Ford  <[email protected]>
1018
1019         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1020         for DWARF 2/3.  Update stab section's syntax.
1021
1022 2004-04-29  Alan Modra  <[email protected]>
1023
1024         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1025         (fill_edata): Correct pointer arithmetic.
1026
1027 2004-04-21  Chris Demetriou  <[email protected]>
1028
1029         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1030         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1031         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1032         (EXTRA_EM_FILE): Use mipsecoff.em
1033         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1034         (EXTRA_EM_FILE): Use mipsecoff.em
1035         * emultempl/mipsecoff.em: Restructure to be included as an
1036         extra emulation file.
1037         (check_sections, gld${EMULATION_NAME}_after_open)
1038         (gld${EMULATION_NAME}_after_allocation)
1039         (gld${EMULATION_NAME}_get_script)
1040         (ld_${EMULATION_NAME}_emulation): Remove
1041         (gld${EMULATION_NAME}_before_parse): Rename to...
1042         (mipsecoff_before_parse): This.
1043         (LDEMUL_BEFORE_PARSE): Define.
1044         * emultempl/mipself.em: Remove file.
1045         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1046         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1047         these symbols.
1048         * Makefile.am: Remove dependencies on emultempl/mipself.em.
1049         * Makefile.in: Regenerate.
1050
1051 2004-04-21      Anil Paranjpe   <[email protected]>
1052
1053         * ld.texinfo (synthesizing on H8/300): Information about linker
1054         relaxation support for bit manipulation instructions and system
1055         control instructions is added.
1056
1057 2004-04-21  Hans-Peter Nilsson  <[email protected]>
1058
1059         * NEWS: Mention change in DEFINED semantics.
1060
1061 2004-04-21  Eric Botcazou  <[email protected]>
1062
1063         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1064         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1065         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1066
1067 2004-04-21  Ben Elliston  <[email protected]>
1068
1069         * ld.texinfo (Simple Example): Add missing punctuation.
1070
1071 2004-04-20  Chris Demetriou  <[email protected]>
1072
1073         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1074
1075 2004-04-19  Jakub Jelinek  <[email protected]>
1076
1077         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1078         specially.
1079
1080 2004-04-18  Danny Smith  <[email protected]>
1081
1082         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1083         with default priority. Likewise for dtors.
1084
1085 2004-04-11  Thiemo Seufer  <[email protected]>
1086
1087         * configure.host: Remove mips*-dec-bsd* target.
1088         * configure.tgt: Likewise.
1089
1090 2004-04-08  Richard Sandiford  <[email protected]>
1091
1092         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1093         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1094         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1095         * emultempl/irix.em: New file.
1096         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1097         dependencies.
1098         * Makefile.in: Regenerate.
1099
1100 2004-04-01  Paul Brook  <[email protected]>
1101
1102         * emultempl/armelf.em (byteswap_code): Add.
1103         (arm_elf_before_allocation): Pass extra parameter.
1104         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1105         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1106         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1107         * emultempl/armelf_oabi.em: Pass extra parameter.
1108         * ld.texinfo: Document --be8.
1109
1110 2004-03-30  Stan Shebs  <[email protected]>
1111
1112         Remove long-obsolete MPW support.
1113         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1114         * Makefile.am (mpw): Remove file-presynthesizing actions.
1115         * Makefile.in: Likewise.
1116         * ldfile.c (slash): Remove MPW case.
1117         * ldlex.l [MPW]: Remove unused definition.
1118
1119 2004-03-30  Galit Heller  <[email protected]>
1120
1121         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1122         (eelf32cr16c.c): New target.
1123         * Makefile.in: Regenerate.
1124         * configure.tgt: Handle cr16c-*-elf*.
1125         * emulparams/elf32cr16c.sh: New file.
1126         * scripttempl/elfcr16c.sc: Likewise
1127         * NEWS: Mention support for new target.
1128
1129 2004-03-30  Nick Clifton  <[email protected]>
1130
1131         * po/sv.po: Updated Swedish translation.
1132
1133 2004-03-27  Alan Modra  <[email protected]>
1134
1135         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1136         * emultempl/hppaelf.em: Likewise.
1137         * emultempl/ppc64elf.em: Likewise.
1138         * emultempl/sh64elf.em: Likewise.
1139
1140 2004-03-25  Alan Modra  <[email protected]>
1141
1142         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1143         size_dynamic_sections call.
1144
1145 2004-03-23  Alan Modra  <[email protected]>
1146
1147         PR 51.
1148         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1149         link_info.wrap_char.
1150
1151 2004-03-20  H.J. Lu  <[email protected]>
1152
1153         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1154         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1155
1156 2004-03-20  Alexandre Oliva  <[email protected]>
1157
1158         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1159
1160 2004-03-19  Alan Modra  <[email protected]>
1161
1162         * config.in: Regenerate.
1163         * po/ld.pot: Regenerate.
1164
1165 2004-03-18  Alan Modra  <[email protected]>
1166
1167         * ld.texinfo: Add --as-needed doco.
1168         * ldmain.c (as_needed): New global var.
1169         * ldmain.h (as_needed): Declare.
1170         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1171         OPTION_NO_AS_NEEDED.
1172         (ld_options): Likewise.
1173         (parse_args): Handle them.
1174         * ldlang.h (lang_input_statement_type): Add as_needed field.
1175         * ldlang.c (new_afile): Set p->as_needed.
1176         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1177         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1178         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1179
1180         * ldlang.c (open_input_bfds): Remove useless cast.
1181         (lang_do_assignments_1): Likewise.
1182         (lang_for_each_input_section): Delete.
1183
1184 2004-03-17  Ralf Corsepius <[email protected]>
1185
1186         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1187
1188 2004-03-08  Danny Smith  <[email protected]>
1189
1190         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1191         private when building implib.
1192
1193 2004-03-05  Nathan Sidwell  <[email protected]>
1194
1195         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1196         SEC_THREAD_LOCAL.
1197         (IGNORE_SECTION): Ignore .tbss sections too.
1198         (lang_size_sections_1): .tbss sections do not advance dot.
1199
1200 2004-03-01  Andreas Schwab  <[email protected]>
1201
1202         * ld.texinfo (Options): Fix example for --wrap.
1203
1204 2004-02-25  Danny Smith  <[email protected]>
1205
1206         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1207         not NULL.
1208
1209 2004-02-23  Ian Lance Taylor  <[email protected]>
1210
1211         * ldlang.c (lang_check): Use %P, not %E, in error message.
1212
1213 2004-02-23  Nathan Sidwell  <[email protected]>
1214
1215         * ldlang.h (struct lang_output_section_state): Change processed
1216         field's type.
1217         * ldexp.c (check, invalid): Remove.
1218         (fold_name): Move valid_p assignments. Create undefined symbol
1219         when needed. Directly exampine section's processd flag.
1220         * ldlang.c (lang_output_section_statement_lookup): Adjust
1221         processed field init.
1222         (lang_size_sections_1): Allow LOADADDR when determining section's
1223         VMA. Adjust error message. Fold data statement's expr.
1224         (lang_size_sections): Correctly increment lang_statement_iteration.
1225
1226 2004-02-23  Alan Modra <[email protected]>
1227
1228         * ldexp.c (fold_tree): Follow indirect symbols.
1229
1230 2004-02-20  Nathan Sidwell  <[email protected]>
1231
1232         * ldgram.y (exp): Add two operand ALIGN.
1233         * ldexp.c (fold_binary): Add ALIGN_K case.
1234         * ld.texinfo (ALIGN): Document two operand version.
1235
1236 2004-02-19  Nathan Sidwell  <[email protected]>
1237
1238         * ldlang.c (map_input_to_output_sections): Initialize sections
1239         mentioned in a data statement expression.
1240         (lang_do_assignments_1): Add data statement's expression's
1241         section's vma.
1242
1243 2004-02-18  Nathan Sidwell  <[email protected]>
1244
1245         * ldgram.y (statement_anywhere): Add assert rule.
1246         * ldlang.c (exp_init_os): Add assert case.
1247
1248 2004-02-14  Andrew Cagney  <[email protected]>
1249
1250         * ldmain.c (remove_output): Call bfd_cache_close.
1251
1252 2004-02-14  Richard Sandiford  <[email protected]>
1253
1254         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1255         .MIPS.content* and .MIPS.events* sections.
1256
1257 2004-02-09  Daniel Jacobowitz  <[email protected]>
1258
1259         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1260         .note.gnu.arm.ident to after allocated sections.  Mark its
1261         address as 0.
1262
1263 2004-02-09  Daniel Jacobowitz  <[email protected]>
1264
1265         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1266         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1267         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1268         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1269         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1270
1271 2004-02-05  Nick Clifton  <[email protected]>
1272
1273         * emultempl/pe.em (_after_open): Fix typo in previous delta.
1274
1275 2004-02-04  Danny Smith  <[email protected]>
1276
1277         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1278
1279 2004-01-28  Alan Modra  <[email protected]>
1280
1281         * genscripts.sh: Fix typo.
1282
1283         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1284
1285 2004-01-24  Jakub Jelinek  <[email protected]>
1286
1287         * emulparams/elf64_ia64.sh: Put .rela.opd into
1288         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1289
1290 2004-01-20  Danny Smith  <[email protected]>
1291
1292         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1293         * ld.texinfo (--omagic): Note that writable text section
1294         does not conform to published PE-COFF specs.
1295         (--enable-auto-import): Likewise.
1296
1297 2004-01-15  Alan Modra  <[email protected]>
1298
1299         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1300
1301 2004-01-13  Nick Clifton  <[email protected]>
1302
1303         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1304         which if true will prevent the LMA region being used as a
1305         replacement for a default VMA region.
1306         (lang_leave_output_section_statement): Pass extra parameter.
1307         (lang_leave_overlay): Likewise.
1308         * ld.texinfo (Output Section LMA): Document that the LMA
1309         region can be set to the VMA region if no VMA has been set.
1310         * ldlang.h (struct lang_output_section_phdr_list): Create a
1311         typedef for this type.  Minor formatting fixes.
1312
1313 2004-01-13  Nick Clifton  <[email protected]>
1314
1315         * ldlang.c (lang_size_sections_1): If dot is advanced, then
1316         assume that the section should be allocated.
1317
1318 2004-01-13  Alan Modra  <[email protected]>
1319
1320         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1321         sections.  Do ignore SEC_NEVER_LOAD sections.
1322         (lang_size_sections_1): Remove test made redundant with the above.
1323
1324 2004-01-09  Alan Modra  <[email protected]>
1325
1326         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1327         program_header_size.
1328
1329 2004-01-06  Alexandre Oliva  <[email protected]>
1330
1331         2003-11-28  Alexandre Oliva  <[email protected]>
1332         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1333         2003-11-05  Alexandre Oliva  <[email protected]>
1334         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1335         (MAXPAGESIZE): Set to 64Kb.
1336         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1337         __ROFIXUP_END__.  Don't map .rofixup.got any more.
1338         * emulparams/elf32frv.sh (NOP): Set.
1339         2003-10-31  Alexandre Oliva  <[email protected]>
1340         * configure.tgt: Add frv-*-*linux*.
1341         2003-09-30  Alexandre Oliva  <[email protected]>
1342         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1343         (eelf32frvfd.c): New.
1344         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1345         * emulparams/elf32frv.sh: Reverted previous two patches.
1346         * emulparams/elf32frvfd.sh: New.
1347         * Makefile.in: Rebuilt.
1348         2003-09-18  Alexandre Oliva  <[email protected]>
1349         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1350         .rofixup.got to .rofixup.
1351         2003-09-15  Alexandre Oliva  <[email protected]>
1352         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1353         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1354
1355 2004-01-05  Jakub Jelinek  <[email protected]>
1356
1357         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1358         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1359
1360 2004-01-03  Alan Modra  <[email protected]>
1361
1362         * ldexp.c (align_n): Make static.
1363         * ldexp.h (align_n): Delete declaration.
1364         * ldlang.h (lang_enter_output_section_statement): Remove
1365         block_value param.
1366         * ldlang.c (lang_enter_output_section_statement): Likewise.
1367         (TO_ADDR, TO_SIZE): Define.
1368         (opb_shift): New var.
1369         (init_opb): New function.
1370         (print_input_section): Call init_opb and use TO_ADDR.
1371         (print_data_statement, print_reloc_statement): Likewise.
1372         (print_padding_statement): Likewise.
1373         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1374         (lang_check_section_addresses): Likewise.
1375         (lang_size_sections_1): Likewise.
1376         (lang_do_assignments_1): Likewise.
1377         (lang_set_startof): Likewise.
1378         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1379         (lang_process): Call init_opb.
1380         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1381         (lang_enter_overlay_section): Adjust
1382         lang_enter_output_section_statement call.
1383         * ldgram.y: Likewise.
1384         * mri.c (mri_draw_tree): Likewise.
1385         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1386         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1387         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1388
1389         * ldfile.c (ldfile_set_output_arch): Add defarch param.
1390         * ldfile.h (ldfile_set_output_arch): Ditto.
1391         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1392         ldfile_set_output_arch.
1393         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1394         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1395         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1396         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1397         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1398         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1399         * ldgram.y: Adjust ldfile_set_output_arch call.
1400         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1401         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1402         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1403         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1404         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1405         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1406         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1407
1408 2004-01-02  Bernardo Innocenti  <[email protected]>
1409
1410         * configure.tgt: Add m68k-uClinux target.
1411
1412 For older changes see ChangeLog-0203
1413 \f
1414 Local Variables:
1415 mode: change-log
1416 left-margin: 8
1417 fill-column: 74
1418 version-control: never
1419 End:
This page took 0.11754 seconds and 4 git commands to generate.