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