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