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