bfd/ChangeLog:
[external/binutils.git] / ld / ChangeLog
1 2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
2
3         * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
4
5 2004-06-18  Adam Nemet  <anemet@lnxw.com> 
6
7         * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS. 
8         * configure: Regenerate. 
9
10 2004-06-15  Jakub Jelinek  <jakub@redhat.com>
11
12         * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
13         .gcc_except_table output sections lost accidentally with
14         -z relro patch.
15
16 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
17
18         * ldwrite.c (build_link_order): Use bfd_get_section_size
19         instead of bfd_get_section_size_before_reloc or _raw_size.
20         * pe-dll.c (process_def_file): Likewise.
21
22 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
23
24         From Richard Wirth <r.wirth@wirthware.de>
25         * ldlang.c (lang_finish): Don't free lang_definedness_table.
26
27 2004-05-29  Alan Modra  <amodra@bigpond.net.au>
28
29         * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
30         (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
31
32 2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
33
34         * testsuite/ld-sh/arch/arch.exp: New test script.
35         * testsuite/ld-sh/arch/arch_expected.txt: New file.
36         * testsuite/ld-sh/arch/sh.s: New file.
37         * testsuite/ld-sh/arch/sh2.s: New file.
38         * testsuite/ld-sh/arch/sh-dsp.s: New file.
39         * testsuite/ld-sh/arch/sh2e.s: New file.
40         * testsuite/ld-sh/arch/sh3-nommu.s: New file.
41         * testsuite/ld-sh/arch/sh3.s: New file.
42         * testsuite/ld-sh/arch/sh3-dsp.s: New file.
43         * testsuite/ld-sh/arch/sh3e.s: New file.
44         * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
45         * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
46         * testsuite/ld-sh/arch/sh4.s: New file.
47         * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
48         * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
49         * testsuite/ld-sh/arch/sh4a.s: New file.
50
51 2004-05-28  Alan Modra  <amodra@bigpond.net.au>
52
53         * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
54         throughout file.
55         * lexsup.c: Formatting.  Wrap long lines.
56         * ldwrite.c: Update copyright date.
57
58         * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
59         (output_section_callback): Nor SEC_KEEP here.
60         (gc_section_callback): Twiddle SEC_EXCLUDE here.
61         (lang_gc_wild): Delete.  Fold into..
62         (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
63         collecting.
64         (lang_process): Always call lang_gc_sections.
65         (lang_place_orphans): Handle SEC_EXCLUDE sections.
66         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
67         SEC_EXCLUDE code.
68
69 2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
70
71         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
72         SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
73         * ldlang.c (lang_add_section): Likewise.
74
75 2004-05-26  Alan Modra  <amodra@bigpond.net.au>
76
77         * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
78         sections when doing a final link.  Clear SEC_EXCLUDE when doing
79         a relocable link, except for SEC_DEBUGGING sections.
80         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
81         same condition here to drop SEC_EXCLUDE orphan sections.
82
83 2004-05-25  Alan Modra  <amodra@bigpond.net.au>
84
85         * ldlang.c (lang_process): Call bfd_merge_sections later, and
86         only when not a relocatable link.
87         (print_input_section): Handle SEC_EXCLUDE sections.
88         (size_input_section): Don't update dot on SEC_EXCLUDE sections.
89         (lang_do_assignments_1): Likewise.
90         * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
91         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
92         * emultempl/hppaelf.em (build_section_lists): Likewise.
93         * emultempl/ppc64elf.em (build_toc_list): Likewise.
94         (build_section_lists): Likewise.
95
96 2004-05-23  Andreas Schwab  <schwab@suse.de>
97
98         * ld.texinfo (Options): Fix typo in last change.
99
100 2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
101
102         * ld.h (ld_config_type): Add new field: hash_table_size.
103         * ldmain.c: Initialise the new field to zero.  If it is non-zero
104         after parsing the linker's command line call
105         bfd_hash_set_default_size.
106         * lexsup.c (option_values): Add OPTION_HASH_SIZE.
107         (ld_options): Add hash-size.
108         (parse_args): Parse --hash-size option.  Allow
109         --reduce-memory-overheads to set the default hash table size as
110         well.
111         * ld.texinfo: Document the new switch.  Also mention that
112         --reduce-memory-overheads can affect the hash table size.
113         * NEWS: Mention the new feature.
114
115 2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
116
117         * NEWS: Mention new linker map file generation and the
118         --reduce-memory-overheads option.
119         * ld.texinfo: Document --reduce-memory-overheads option.
120         * ld.h (map_symbol_def): New struct.
121         (struct user_section_struct, section_userdata_type): Rename to:
122         (struct lean_user_section_struct, lean_section_userdata_type).
123         (struct fat_user_section_struct, fat_section_userdata_type): New.
124         (SECTION_USERDATA_SIZE): Define.
125         (args_type): New member reduce_memory_overheads.
126         * ldlang.c (map_obstack): New static variable.
127         (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
128         (lang_map): Unless command_line.reduce_memory_overheads is set,
129         initialize lists of defined symbols for each section.
130         (print_input_section): Unless command_line.reduce_memory_overheads
131         is set, use print_all_symbols.
132         (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
133         * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
134         * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
135         (ld_options): Add entry for --reduce-memory-overheads.
136         (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
137
138 2004-05-19  Jakub Jelinek  <jakub@redhat.com>
139
140         * ldgram.y (sect_constraint): New.
141         (ONLY_IF_RO, ONLY_IF_RW): New tokens.
142         (section): Add sect_constraint.  Pass additional argument
143         to lang_enter_output_section_statement.
144         * mri.c (mri_draw_tree): Pass additional argument to
145         lang_enter_output_section_statement.
146         * emultempl/pe.em (place_orphan): Likewise.
147         (output_prev_sec_find): Disregard output section statements with
148         constraint == -1.
149         * emultempl/mmo.em (output_prev_sec_find): Likewise.
150         (mmo_place_orphan): Pass additional argument to
151         lang_enter_output_section_statement.
152         * emultempl/elf32.em (output_prev_sec_find): Disregard output section
153         statements with constraint == -1.
154         (place_orphan): Pass additional argument to
155         lang_enter_output_section_statement.
156         * ldlang.c (lang_enter_overlay_section): Likewise.
157         (lang_output_section_find_1): New.
158         (lang_output_section_find): Use it.
159         (lang_output_section_statement_lookup_1): New.
160         (lang_output_section_statement_lookup): Use it.
161         (check_section_callback, check_input_sections): New.
162         (map_input_to_output_sections): Check if all input sections
163         are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
164         (strip_excluded_output_sections): Disregard output section statements
165         with constraint == -1.
166         (lang_record_phdrs): Likewise.
167         (lang_enter_output_section_statement): Add constraint argument.
168         Use lang_output_section_statement_lookup_1.
169         * ldlang.h (lang_output_section_statement_type): Add constraint
170         and all_input_readonly fields.
171         (lang_enter_output_section_statement): Adjust prototype.
172         * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
173         * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
174         segment if all input sections are readonly.
175
176 2004-05-19  Adam Nemet  <anemet@lnxw.com> 
177
178         * scripttempl/i386lynx.sc: Remove file.
179
180 2004-05-17  Bob Wilson  <bob.wilson@acm.org>
181
182         * ld.texinfo (Output Section Address): Correct subsection name.
183
184 2004-05-17  Adam Nemet  <anemet@lnxw.com> 
185
186         * configure.tgt (powerpc-*-lynxos* case): New case.
187         * configure.host (i[3-7]86-*-lynxos* case): Remove case.
188         * emulparams/ppclynx.sh: New file.
189         * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
190         * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
191         (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
192         (eppclynx.c): New rule.
193         * Makefile.in: Regenerate.
194
195 2004-05-13  Joel Sherrill <joel@oarcorp.com>
196
197         * configure.tgt (or32-*-rtems*): Switch to elf and
198         support versioned targets.
199
200 2004-05-13  Nick Clifton  <nickc@redhat.com>
201
202         * po/fr.po: Updated French translation.
203
204 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
205
206         * genscripts.sh: Generate -z combreloc -z now -z relro scripts
207         for binaries, -shared and -pie.
208         * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
209         * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
210         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
211         (OTHER_RELRO_SECTIONS): ... this.
212         * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
213         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
214         -z relro and -z norelro.
215         (gld${EMULATION_NAME}_list_options): Add it to usage.
216         (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
217         -z relro scripts when appropriate.
218         * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
219         Create separate .got.plt section if SEPARATE_GOTPLT.
220         Move sections which are only written during relocation handling
221         to the beginning of RW segment.  If NO_SMALL_DATA, move .got
222         before .data.  Add DATA_SEGMENT_RELRO_END directive.
223         Include OTHER_RELRO_SECTIONS.
224         * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
225         * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
226         (fold_unary): Likewise.
227         (fold_binary): Handle -z relro.
228         * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
229         exp_dataseg_relro_adjust phases.  Add relro_end field.
230         * ldmain.c (main): Initialize link_info.relro to FALSE.
231         * ldlang.c (lang_size_sections): Handle -z relro.
232
233 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
234
235         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
236
237 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
238
239         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
240         before printing it with %W.
241
242 2004-05-07  Brian Ford  <ford@vss.fsi.com>
243             DJ Delorie  <dj@redhat.com>
244
245         * emultempl/pe.em (real_flags): New static.
246         (OPTION_LARGE_ADDRESS_AWARE): New define.
247         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
248         (gld_${EMULATION_NAME}_list_options): Likewise.
249         (gld${EMULATION_NAME}_handle_option): Likewise.
250         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
251         * ld.texinfo: Document it.
252         * NEWS: Mention it.
253
254 2004-05-07  Brian Ford  <ford@vss.fsi.com>
255
256         * NEWS: Mention DWARF 2 support for i386pe.
257
258 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
259
260         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
261         elf32-frvfdpic.
262
263 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
264
265         * ldlang.c (unique_section_p): Pass section parm, return true on
266         group sections.
267         (output_section_callback): Adjust.
268         * ldlang.h (unique_section_p): Update prototype.
269         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
270
271 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
272
273         * ld.texinfo (--gc-sections): Remove restriction for 
274         dynamic linking.
275
276 2004-04-29  Brian Ford  <ford@vss.fsi.com>
277
278         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
279         for DWARF 2/3.  Update stab section's syntax.
280
281 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
282
283         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
284         (fill_edata): Correct pointer arithmetic.
285
286 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
287
288         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
289         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
290         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
291         (EXTRA_EM_FILE): Use mipsecoff.em
292         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
293         (EXTRA_EM_FILE): Use mipsecoff.em
294         * emultempl/mipsecoff.em: Restructure to be included as an
295         extra emulation file.
296         (check_sections, gld${EMULATION_NAME}_after_open)
297         (gld${EMULATION_NAME}_after_allocation)
298         (gld${EMULATION_NAME}_get_script)
299         (ld_${EMULATION_NAME}_emulation): Remove
300         (gld${EMULATION_NAME}_before_parse): Rename to...
301         (mipsecoff_before_parse): This.
302         (LDEMUL_BEFORE_PARSE): Define.
303         * emultempl/mipself.em: Remove file.
304         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
305         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
306         these symbols.
307         * Makefile.am: Remove dependencies on emultempl/mipself.em.
308         * Makefile.in: Regenerate.
309
310 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
311
312         * ld.texinfo (synthesizing on H8/300): Information about linker
313         relaxation support for bit manipulation instructions and system
314         control instructions is added.
315
316 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
317
318         * NEWS: Mention change in DEFINED semantics.
319
320 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
321
322         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
323         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
324         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
325
326 2004-04-21  Ben Elliston  <bje@au.ibm.com>
327
328         * ld.texinfo (Simple Example): Add missing punctuation.
329
330 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
331
332         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
333
334 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
335
336         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
337         specially.
338
339 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
340
341         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
342         with default priority. Likewise for dtors.
343
344 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
345
346         * configure.host: Remove mips*-dec-bsd* target.
347         * configure.tgt: Likewise.
348
349 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
350
351         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
352         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
353         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
354         * emultempl/irix.em: New file.
355         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
356         dependencies.
357         * Makefile.in: Regenerate.
358
359 2004-04-01  Paul Brook  <paul@codesourcery.com>
360
361         * emultempl/armelf.em (byteswap_code): Add.
362         (arm_elf_before_allocation): Pass extra parameter.
363         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
364         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
365         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
366         * emultempl/armelf_oabi.em: Pass extra parameter.
367         * ld.texinfo: Document --be8.
368
369 2004-03-30  Stan Shebs  <shebs@apple.com>
370
371         Remove long-obsolete MPW support.
372         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
373         * Makefile.am (mpw): Remove file-presynthesizing actions.
374         * Makefile.in: Likewise.
375         * ldfile.c (slash): Remove MPW case.
376         * ldlex.l [MPW]: Remove unused definition.
377
378 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
379
380         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
381         (eelf32cr16c.c): New target.
382         * Makefile.in: Regenerate.
383         * configure.tgt: Handle cr16c-*-elf*.
384         * emulparams/elf32cr16c.sh: New file.
385         * scripttempl/elfcr16c.sc: Likewise
386         * NEWS: Mention support for new target.
387
388 2004-03-30  Nick Clifton  <nickc@redhat.com>
389
390         * po/sv.po: Updated Swedish translation.
391
392 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
393
394         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
395         * emultempl/hppaelf.em: Likewise.
396         * emultempl/ppc64elf.em: Likewise.
397         * emultempl/sh64elf.em: Likewise.
398
399 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
400
401         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
402         size_dynamic_sections call.
403
404 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
405
406         PR 51.
407         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
408         link_info.wrap_char.
409
410 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
411
412         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
413         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
414
415 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
416
417         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
418
419 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
420
421         * config.in: Regenerate.
422         * po/ld.pot: Regenerate.
423
424 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
425
426         * ld.texinfo: Add --as-needed doco.
427         * ldmain.c (as_needed): New global var.
428         * ldmain.h (as_needed): Declare.
429         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
430         OPTION_NO_AS_NEEDED.
431         (ld_options): Likewise.
432         (parse_args): Handle them.
433         * ldlang.h (lang_input_statement_type): Add as_needed field.
434         * ldlang.c (new_afile): Set p->as_needed.
435         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
436         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
437         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
438
439         * ldlang.c (open_input_bfds): Remove useless cast.
440         (lang_do_assignments_1): Likewise.
441         (lang_for_each_input_section): Delete.
442
443 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
444
445         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
446
447 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
448
449         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
450         private when building implib.
451
452 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
453
454         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
455         SEC_THREAD_LOCAL.
456         (IGNORE_SECTION): Ignore .tbss sections too.
457         (lang_size_sections_1): .tbss sections do not advance dot.
458
459 2004-03-01  Andreas Schwab  <schwab@suse.de>
460
461         * ld.texinfo (Options): Fix example for --wrap.
462
463 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
464
465         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
466         not NULL.
467
468 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
469
470         * ldlang.c (lang_check): Use %P, not %E, in error message.
471
472 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
473
474         * ldlang.h (struct lang_output_section_state): Change processed
475         field's type.
476         * ldexp.c (check, invalid): Remove.
477         (fold_name): Move valid_p assignments. Create undefined symbol
478         when needed. Directly exampine section's processd flag.
479         * ldlang.c (lang_output_section_statement_lookup): Adjust
480         processed field init.
481         (lang_size_sections_1): Allow LOADADDR when determining section's
482         VMA. Adjust error message. Fold data statement's expr.
483         (lang_size_sections): Correctly increment lang_statement_iteration.
484
485 2004-02-23  Alan Modra <amodra@bigpond.net.au>
486
487         * ldexp.c (fold_tree): Follow indirect symbols.
488
489 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
490
491         * ldgram.y (exp): Add two operand ALIGN.
492         * ldexp.c (fold_binary): Add ALIGN_K case.
493         * ld.texinfo (ALIGN): Document two operand version.
494
495 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
496
497         * ldlang.c (map_input_to_output_sections): Initialize sections
498         mentioned in a data statement expression.
499         (lang_do_assignments_1): Add data statement's expression's
500         section's vma.
501
502 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
503
504         * ldgram.y (statement_anywhere): Add assert rule.
505         * ldlang.c (exp_init_os): Add assert case.
506
507 2004-02-14  Andrew Cagney  <cagney@redhat.com>
508
509         * ldmain.c (remove_output): Call bfd_cache_close.
510
511 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
512
513         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
514         .MIPS.content* and .MIPS.events* sections.
515
516 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
517
518         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
519         .note.gnu.arm.ident to after allocated sections.  Mark its
520         address as 0.
521
522 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
523
524         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
525         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
526         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
527         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
528         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
529
530 2004-02-05  Nick Clifton  <nickc@redhat.com>
531
532         * emultempl/pe.em (_after_open): Fix typo in previous delta.
533
534 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
535
536         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
537
538 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
539
540         * genscripts.sh: Fix typo.
541
542         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
543
544 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
545
546         * emulparams/elf64_ia64.sh: Put .rela.opd into
547         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
548
549 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
550
551         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
552         * ld.texinfo (--omagic): Note that writable text section
553         does not conform to published PE-COFF specs.
554         (--enable-auto-import): Likewise.
555
556 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
557
558         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
559
560 2004-01-13  Nick Clifton  <nickc@redhat.com>
561
562         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
563         which if true will prevent the LMA region being used as a
564         replacement for a default VMA region.
565         (lang_leave_output_section_statement): Pass extra parameter.
566         (lang_leave_overlay): Likewise.
567         * ld.texinfo (Output Section LMA): Document that the LMA
568         region can be set to the VMA region if no VMA has been set.
569         * ldlang.h (struct lang_output_section_phdr_list): Create a
570         typedef for this type.  Minor formatting fixes.
571
572 2004-01-13  Nick Clifton  <nickc@redhat.com>
573
574         * ldlang.c (lang_size_sections_1): If dot is advanced, then
575         assume that the section should be allocated.
576
577 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
578
579         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
580         sections.  Do ignore SEC_NEVER_LOAD sections.
581         (lang_size_sections_1): Remove test made redundant with the above.
582
583 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
584
585         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
586         program_header_size.
587
588 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
589
590         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
591         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
592         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
593         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
594         (MAXPAGESIZE): Set to 64Kb.
595         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
596         __ROFIXUP_END__.  Don't map .rofixup.got any more.
597         * emulparams/elf32frv.sh (NOP): Set.
598         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
599         * configure.tgt: Add frv-*-*linux*.
600         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
601         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
602         (eelf32frvfd.c): New.
603         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
604         * emulparams/elf32frv.sh: Reverted previous two patches.
605         * emulparams/elf32frvfd.sh: New.
606         * Makefile.in: Rebuilt.
607         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
608         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
609         .rofixup.got to .rofixup.
610         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
611         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
612         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
613
614 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
615
616         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
617         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
618
619 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
620
621         * ldexp.c (align_n): Make static.
622         * ldexp.h (align_n): Delete declaration.
623         * ldlang.h (lang_enter_output_section_statement): Remove
624         block_value param.
625         * ldlang.c (lang_enter_output_section_statement): Likewise.
626         (TO_ADDR, TO_SIZE): Define.
627         (opb_shift): New var.
628         (init_opb): New function.
629         (print_input_section): Call init_opb and use TO_ADDR.
630         (print_data_statement, print_reloc_statement): Likewise.
631         (print_padding_statement): Likewise.
632         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
633         (lang_check_section_addresses): Likewise.
634         (lang_size_sections_1): Likewise.
635         (lang_do_assignments_1): Likewise.
636         (lang_set_startof): Likewise.
637         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
638         (lang_process): Call init_opb.
639         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
640         (lang_enter_overlay_section): Adjust
641         lang_enter_output_section_statement call.
642         * ldgram.y: Likewise.
643         * mri.c (mri_draw_tree): Likewise.
644         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
645         * emultempl/mmo.em (mmo_place_orphan): Likewise.
646         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
647
648         * ldfile.c (ldfile_set_output_arch): Add defarch param.
649         * ldfile.h (ldfile_set_output_arch): Ditto.
650         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
651         ldfile_set_output_arch.
652         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
653         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
654         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
655         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
656         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
657         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
658         * ldgram.y: Adjust ldfile_set_output_arch call.
659         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
660         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
661         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
662         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
663         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
664         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
665         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
666
667 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
668
669         * configure.tgt: Add m68k-uClinux target.
670
671 For older changes see ChangeLog-0203
672 \f
673 Local Variables:
674 mode: change-log
675 left-margin: 8
676 fill-column: 74
677 version-control: never
678 End: