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