2487560265ad5d1a855c6406be6c0f300cdf44c9
[external/binutils.git] / ld / ChangeLog
1 2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2
3         * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
4
5 2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
6
7         * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
8         before printing it with %W.
9
10 2004-05-07  Brian Ford  <ford@vss.fsi.com>
11             DJ Delorie  <dj@redhat.com>
12
13         * emultempl/pe.em (real_flags): New static.
14         (OPTION_LARGE_ADDRESS_AWARE): New define.
15         (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
16         (gld_${EMULATION_NAME}_list_options): Likewise.
17         (gld${EMULATION_NAME}_handle_option): Likewise.
18         (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
19         * ld.texinfo: Document it.
20         * NEWS: Mention it.
21
22 2004-05-07  Brian Ford  <ford@vss.fsi.com>
23
24         * NEWS: Mention DWARF 2 support for i386pe.
25
26 2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
27
28         * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
29         elf32-frvfdpic.
30
31 2004-04-30  Alan Modra  <amodra@bigpond.net.au>
32
33         * ldlang.c (unique_section_p): Pass section parm, return true on
34         group sections.
35         (output_section_callback): Adjust.
36         * ldlang.h (unique_section_p): Update prototype.
37         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
38
39 2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
40
41         * ld.texinfo (--gc-sections): Remove restriction for 
42         dynamic linking.
43
44 2004-04-29  Brian Ford  <ford@vss.fsi.com>
45
46         * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
47         for DWARF 2/3.  Update stab section's syntax.
48
49 2004-04-29  Alan Modra  <amodra@bigpond.net.au>
50
51         * pe-dll.c: Revert changes accidentally committed 2004-03-08.
52         (fill_edata): Correct pointer arithmetic.
53
54 2004-04-21  Chris Demetriou  <cgd@broadcom.com>
55
56         * ld.texinfo: Remove MIPS --embedded-relocs documentation.
57         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
58         * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
59         (EXTRA_EM_FILE): Use mipsecoff.em
60         * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
61         (EXTRA_EM_FILE): Use mipsecoff.em
62         * emultempl/mipsecoff.em: Restructure to be included as an
63         extra emulation file.
64         (check_sections, gld${EMULATION_NAME}_after_open)
65         (gld${EMULATION_NAME}_after_allocation)
66         (gld${EMULATION_NAME}_get_script)
67         (ld_${EMULATION_NAME}_emulation): Remove
68         (gld${EMULATION_NAME}_before_parse): Rename to...
69         (mipsecoff_before_parse): This.
70         (LDEMUL_BEFORE_PARSE): Define.
71         * emultempl/mipself.em: Remove file.
72         * scripttempl/mips.sc (.rel.sdata): Do not include in output.
73         (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
74         these symbols.
75         * Makefile.am: Remove dependencies on emultempl/mipself.em.
76         * Makefile.in: Regenerate.
77
78 2004-04-21      Anil Paranjpe   <anilp1@kpitcummins.com>
79
80         * ld.texinfo (synthesizing on H8/300): Information about linker
81         relaxation support for bit manipulation instructions and system
82         control instructions is added.
83
84 2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
85
86         * NEWS: Mention change in DEFINED semantics.
87
88 2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
89
90         * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
91         (.data): Add KEEP for .gnu.linkonce.d.*personality*.
92         (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
93
94 2004-04-21  Ben Elliston  <bje@au.ibm.com>
95
96         * ld.texinfo (Simple Example): Add missing punctuation.
97
98 2004-04-20  Chris Demetriou  <cgd@broadcom.com>
99
100         * NEWS: Note that MIPS --embedded-relocs option is deprecated.
101
102 2004-04-19  Jakub Jelinek  <jakub@redhat.com>
103
104         * ldlang.c (lang_do_assignments_1): Handle .tbss output section
105         specially.
106
107 2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
108
109         * scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
110         with default priority. Likewise for dtors.
111
112 2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
113
114         * configure.host: Remove mips*-dec-bsd* target.
115         * configure.tgt: Likewise.
116
117 2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
118
119         * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
120         * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
121         * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
122         * emultempl/irix.em: New file.
123         * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
124         dependencies.
125         * Makefile.in: Regenerate.
126
127 2004-04-01  Paul Brook  <paul@codesourcery.com>
128
129         * emultempl/armelf.em (byteswap_code): Add.
130         (arm_elf_before_allocation): Pass extra parameter.
131         (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
132         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
133         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
134         * emultempl/armelf_oabi.em: Pass extra parameter.
135         * ld.texinfo: Document --be8.
136
137 2004-03-30  Stan Shebs  <shebs@apple.com>
138
139         Remove long-obsolete MPW support.
140         * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
141         * Makefile.am (mpw): Remove file-presynthesizing actions.
142         * Makefile.in: Likewise.
143         * ldfile.c (slash): Remove MPW case.
144         * ldlex.l [MPW]: Remove unused definition.
145
146 2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
147
148         * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
149         (eelf32cr16c.c): New target.
150         * Makefile.in: Regenerate.
151         * configure.tgt: Handle cr16c-*-elf*.
152         * emulparams/elf32cr16c.sh: New file.
153         * scripttempl/elfcr16c.sc: Likewise
154         * NEWS: Mention support for new target.
155
156 2004-03-30  Nick Clifton  <nickc@redhat.com>
157
158         * po/sv.po: Updated Swedish translation.
159
160 2004-03-27  Alan Modra  <amodra@bigpond.net.au>
161
162         * emultempl/elf32.em: Update new bfd_elf_discard_info name.
163         * emultempl/hppaelf.em: Likewise.
164         * emultempl/ppc64elf.em: Likewise.
165         * emultempl/sh64elf.em: Likewise.
166
167 2004-03-25  Alan Modra  <amodra@bigpond.net.au>
168
169         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
170         size_dynamic_sections call.
171
172 2004-03-23  Alan Modra  <amodra@bigpond.net.au>
173
174         PR 51.
175         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
176         link_info.wrap_char.
177
178 2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
179
180         * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
181         or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
182
183 2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
184
185         * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
186
187 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
188
189         * config.in: Regenerate.
190         * po/ld.pot: Regenerate.
191
192 2004-03-18  Alan Modra  <amodra@bigpond.net.au>
193
194         * ld.texinfo: Add --as-needed doco.
195         * ldmain.c (as_needed): New global var.
196         * ldmain.h (as_needed): Declare.
197         * lexsup.c (option_values): Add OPTION_AS_NEEDED and
198         OPTION_NO_AS_NEEDED.
199         (ld_options): Likewise.
200         (parse_args): Handle them.
201         * ldlang.h (lang_input_statement_type): Add as_needed field.
202         * ldlang.c (new_afile): Set p->as_needed.
203         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
204         (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
205         (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
206
207         * ldlang.c (open_input_bfds): Remove useless cast.
208         (lang_do_assignments_1): Likewise.
209         (lang_for_each_input_section): Delete.
210
211 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
212
213         * configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
214
215 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
216
217         * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
218         private when building implib.
219
220 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
221
222         * ldlang.c (lang_add_section): Don't force SEC_LOAD on
223         SEC_THREAD_LOCAL.
224         (IGNORE_SECTION): Ignore .tbss sections too.
225         (lang_size_sections_1): .tbss sections do not advance dot.
226
227 2004-03-01  Andreas Schwab  <schwab@suse.de>
228
229         * ld.texinfo (Options): Fix example for --wrap.
230
231 2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
232
233         * pe-dll.c (fill_edata): Check that exported_symbol_sections is
234         not NULL.
235
236 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
237
238         * ldlang.c (lang_check): Use %P, not %E, in error message.
239
240 2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
241
242         * ldlang.h (struct lang_output_section_state): Change processed
243         field's type.
244         * ldexp.c (check, invalid): Remove.
245         (fold_name): Move valid_p assignments. Create undefined symbol
246         when needed. Directly exampine section's processd flag.
247         * ldlang.c (lang_output_section_statement_lookup): Adjust
248         processed field init.
249         (lang_size_sections_1): Allow LOADADDR when determining section's
250         VMA. Adjust error message. Fold data statement's expr.
251         (lang_size_sections): Correctly increment lang_statement_iteration.
252
253 2004-02-23  Alan Modra <amodra@bigpond.net.au>
254
255         * ldexp.c (fold_tree): Follow indirect symbols.
256
257 2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
258
259         * ldgram.y (exp): Add two operand ALIGN.
260         * ldexp.c (fold_binary): Add ALIGN_K case.
261         * ld.texinfo (ALIGN): Document two operand version.
262
263 2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
264
265         * ldlang.c (map_input_to_output_sections): Initialize sections
266         mentioned in a data statement expression.
267         (lang_do_assignments_1): Add data statement's expression's
268         section's vma.
269
270 2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
271
272         * ldgram.y (statement_anywhere): Add assert rule.
273         * ldlang.c (exp_init_os): Add assert case.
274
275 2004-02-14  Andrew Cagney  <cagney@redhat.com>
276
277         * ldmain.c (remove_output): Call bfd_cache_close.
278
279 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
280
281         * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
282         .MIPS.content* and .MIPS.events* sections.
283
284 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
285
286         * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
287         .note.gnu.arm.ident to after allocated sections.  Mark its
288         address as 0.
289
290 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
291
292         * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
293         * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
294         * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
295         * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
296         * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
297
298 2004-02-05  Nick Clifton  <nickc@redhat.com>
299
300         * emultempl/pe.em (_after_open): Fix typo in previous delta.
301
302 2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
303
304         * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
305
306 2004-01-28  Alan Modra  <amodra@bigpond.net.au>
307
308         * genscripts.sh: Fix typo.
309
310         * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
311
312 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
313
314         * emulparams/elf64_ia64.sh: Put .rela.opd into
315         OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
316
317 2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
318
319         * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
320         * ld.texinfo (--omagic): Note that writable text section
321         does not conform to published PE-COFF specs.
322         (--enable-auto-import): Likewise.
323
324 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
325
326         * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
327
328 2004-01-13  Nick Clifton  <nickc@redhat.com>
329
330         * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
331         which if true will prevent the LMA region being used as a
332         replacement for a default VMA region.
333         (lang_leave_output_section_statement): Pass extra parameter.
334         (lang_leave_overlay): Likewise.
335         * ld.texinfo (Output Section LMA): Document that the LMA
336         region can be set to the VMA region if no VMA has been set.
337         * ldlang.h (struct lang_output_section_phdr_list): Create a
338         typedef for this type.  Minor formatting fixes.
339
340 2004-01-13  Nick Clifton  <nickc@redhat.com>
341
342         * ldlang.c (lang_size_sections_1): If dot is advanced, then
343         assume that the section should be allocated.
344
345 2004-01-13  Alan Modra  <amodra@bigpond.net.au>
346
347         * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
348         sections.  Do ignore SEC_NEVER_LOAD sections.
349         (lang_size_sections_1): Remove test made redundant with the above.
350
351 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
352
353         * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
354         program_header_size.
355
356 2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
357
358         2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
359         * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
360         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
361         * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
362         (MAXPAGESIZE): Set to 64Kb.
363         (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
364         __ROFIXUP_END__.  Don't map .rofixup.got any more.
365         * emulparams/elf32frv.sh (NOP): Set.
366         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
367         * configure.tgt: Add frv-*-*linux*.
368         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
369         * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
370         (eelf32frvfd.c): New.
371         * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
372         * emulparams/elf32frv.sh: Reverted previous two patches.
373         * emulparams/elf32frvfd.sh: New.
374         * Makefile.in: Rebuilt.
375         2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
376         * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
377         .rofixup.got to .rofixup.
378         2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
379         * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
380         (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
381
382 2004-01-05  Jakub Jelinek  <jakub@redhat.com>
383
384         * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
385         * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
386
387 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
388
389         * ldexp.c (align_n): Make static.
390         * ldexp.h (align_n): Delete declaration.
391         * ldlang.h (lang_enter_output_section_statement): Remove
392         block_value param.
393         * ldlang.c (lang_enter_output_section_statement): Likewise.
394         (TO_ADDR, TO_SIZE): Define.
395         (opb_shift): New var.
396         (init_opb): New function.
397         (print_input_section): Call init_opb and use TO_ADDR.
398         (print_data_statement, print_reloc_statement): Likewise.
399         (print_padding_statement): Likewise.
400         (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
401         (lang_check_section_addresses): Likewise.
402         (lang_size_sections_1): Likewise.
403         (lang_do_assignments_1): Likewise.
404         (lang_set_startof): Likewise.
405         (lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
406         (lang_process): Call init_opb.
407         (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
408         (lang_enter_overlay_section): Adjust
409         lang_enter_output_section_statement call.
410         * ldgram.y: Likewise.
411         * mri.c (mri_draw_tree): Likewise.
412         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
413         * emultempl/mmo.em (mmo_place_orphan): Likewise.
414         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
415
416         * ldfile.c (ldfile_set_output_arch): Add defarch param.
417         * ldfile.h (ldfile_set_output_arch): Ditto.
418         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
419         ldfile_set_output_arch.
420         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
421         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
422         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
423         * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
424         * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
425         * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
426         * ldgram.y: Adjust ldfile_set_output_arch call.
427         * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
428         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
429         * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
430         * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
431         * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
432         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
433         * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
434
435 2004-01-02  Bernardo Innocenti  <bernie@develer.com>
436
437         * configure.tgt: Add m68k-uClinux target.
438
439 For older changes see ChangeLog-0203
440 \f
441 Local Variables:
442 mode: change-log
443 left-margin: 8
444 fill-column: 74
445 version-control: never
446 End: