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