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