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