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