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