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