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