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