* gettext.m4: Quote names of macros to be defined by AC_DEFUN
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
f8b73030
MR
12004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2
3 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
4 throughout.
5 * aclocal.m4: Regenerate.
6 * configure: Regenerate.
7
32159579
ILT
82004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
9
10 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
11 mips_elf64_rtype_to_howto instead of using howto_table.
12
c84cd8ee
DJ
132004-01-13 Daniel Jacobowitz <drow@mvista.com>
14
15 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
16 the .plt section.
17 (elf32_arm_check_relocs): Don't increment the PLT refcount for
18 relocs which would not use the PLT.
19
680a3378
AM
202004-01-13 Alan Modra <amodra@bigpond.net.au>
21
22 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
23 (ppc64_elf_gc_sweep_hook): Likewise.
24 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
25
faca21e5
NC
262004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
27
28 Adds linker relaxation support for bit manipulation insns like
680a3378 29 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 30 bst, btst, bxor.
680a3378 31 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 32 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 33 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
34 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
35
818a27ac
AM
362004-01-12 Alan Modra <amodra@bigpond.net.au>
37
38 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
39
96ef1419
KH
402004-01-11 Kazu Hirata <kazu@cs.umass.edu>
41
42 * elf32-h8300.c: Fix formatting.
43
babfd660
KH
442004-01-11 Kazu Hirata <kazu@cs.umass.edu>
45
46 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
47 dynamic object is present. Declare r_symndx and h in an inner
48 scope.
49 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
50
7359ea65
DJ
512004-01-09 Daniel Jacobowitz <drow@mvista.com>
52
53 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
54 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
55 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
56 identically. Do not emit PC24 relocations for shared libraries.
57 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
58 identically. Don't adjust pc_count.
59 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
60 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
61 adjust count for branch relocations.
62 (allocate_dynrelocs): Correct typo in call to
63 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
64 PC24 or PLT32 relocs when linking.
65
44e88952
NC
662004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
67
68 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
69 relocation howto with ARM_26 one for consistency.
70 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
71 that will be converted to ARM_26D ones, since we always want 'done'
72 relocations to be reflected in section's data.
73 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
74 offset.
75 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
76 requested.
77
1e7fef1d
NC
782004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
79
80 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
81 are not partial_inplace during a relocatable link.
82
4f075348
KH
832004-01-08 Kazu Hirata <kazu@cs.umass.edu>
84
babfd660 85 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
86 if no dynamic object is present. Declare r_symndx and h in an
87 inner scope.
88
de0d9f33
L
892004-01-07 H.J. Lu <hongjiu.lu@intel.com>
90
91 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
92 trampoline if it is known out of range.
93
51532845
AO
942004-01-06 Alexandre Oliva <aoliva@redhat.com>
95
96 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
97 * elf32-frv.c (_frv_osec_readonly_p): New.
98 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
99 undefweak symbol.
100 (_frv_count_got_plt_entries): Adjust expected count accordingly.
101 (elf32_frv_relocate_section): Likewise. Error out if attempting
102 to emit rofixups or dynamic relocs in read-only segments. Use
103 _bfd_elf_section_offset to adjust r_offsets in rofixups and
104 dynamic relocations.
105 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
106 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
107 relocations or fixups involving merged sections correctly. Avoid
108 crash when undefined symbol is referenced by R_FRV_32 or
109 R_FRV_FUNCDESC_VALUE.
110 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
111 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
112 input section holding local symbol to addend of R_FRV_32 or
113 R_FRV_FUNCDESC_VALUE dynamic relocation.
114 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
115 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
116 (elf32_frv_always_size_sections): Don't store pointer to
117 __stacksize symbol in sec_info.
118 (elf32_frv_modify_segment_map): Look it up here.
119 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
120 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
121 of the lazy PLT entry, not only its offset, as the low word of a
122 function descriptor.
123 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
124 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
125 if a hash table entry already exists but is not a definition.
126 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
127 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
128 (_frv_add_rofixup): Don't inline.
129 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
130 for undefweak symbols.
131 (elf32_frv_relocate_section): Avoid crash while computing
132 relocation when linking with shared library. Only emit rofixups
133 and dynamic relocations for alloc&load sections. Mark binaries
134 with inter-segment relocations for relocation as a unit.
135 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
136 (DEFAULT_STACK_SIZE): New.
137 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
138 emit rofixups or dynamic relocs when linking dynamic non-PIE
139 executables.
140 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
141 shared libs too. Reserve the last entry for the GOT pointer.
142 (elf32_frv_finish_dynamic_sections): Emit it.
143 (elf32_frv_always_size_sections): New.
144 (elf32_frv_modify_segment_map): New.
145 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
146 sections.
147 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
148 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
149 (elf_backend_always_size_sections): New.
150 (elf_backend_modify_segment_map): New.
151 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
152 * config.bfd: Added frv-*-*linux*.
153 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
154 ABS section, instead of crashing.
155 (elf32_frv_relocate_section): Don't crash before warning about
156 different segments in non-PIC relocation.
157 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
158 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
159 relocs to undefweak symbols.
160 (elf32_frv_relocate_section): Ditto for undefined symbols.
161 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
162 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
163 gotfixup section was created.
164 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
165 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
166 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
167 complain_overflow_signed.
168 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
169 have not been allocated.
170 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
171 privfd only if dynamic sections were created.
172 (elf32_frv_relocate_section): Compute gprel_segment, and use it
173 for GPREL relocs. When linking relocatable FDPIC executables,
174 emit warnings for relocations that would be illegal on PIE or
175 shared libraries. Emit rofixup for R_FRV_32 only if input object
176 is not FDPIC.
177 (_frv_create_got_section): Define _gp symbol in the rofixup
178 section.
179 (elf32_frv_finish_dynamic_sections): If rofixups needed but
180 dynamic sections missing, error out requesting -melf32frvfd.
181 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
182 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
183 computation of addends from section and global or local symbol
184 value. Change return type to bfd_boolean, and return a failure if
185 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
186 nonzero addend is required.
187 (elf32_frv_relocate_section): Likewise. Print error for
188 unsupported nonzero addends.
189 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
190 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
191 force everything local.
192 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
193 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
194 (frv_gotfixup_section): New.
195 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
196 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
197 and relocsfdv.
198 (_frv_add_rofixup): New.
199 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
200 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
201 improve some ugly conditions.
202 (elf32_frv_relocate_section): Likewise. Reject inter-segment
203 relocations in fdpic.
204 (_frv_create_got_section): Create .rofixup.got section.
205 (struct _frv_dynamic_got_info): Added fixups.
206 (_frv_count_got_plt_entries): Account in-GOT relocations into
207 relocs32, relocsfd and relocsfdv. Account them into relocs or
208 fixups, as appropriate.
209 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
210 sizing of gotrel.
211 (elf32_frv_finish_dynamic_sections): Verify that the right number
212 of relocations and fixups was generated.
213 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
214 relocsfdv.
215 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
216 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
217 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
218 descriptor of a (formerly-)global symbol is local.
219 (struct frv_pic_relocs_info): Adjust comments.
220 (_frv_emit_got_relocs_plt_entries): Adjust.
221 (elf32_frv_relocate_section): Likewise.
222 (_frv_count_got_plt_entries): Likewise.
223 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
224 symbol's value to addend in the common preamble. Decay dynamic
225 symbols to section+offset if they bind or call locally, for GOT
226 and FUNCDESC_VALUE, respectively.
227 (elf32_frv_relocate_section): Likewise.
228 (elf32_frv_check_relocs): Don't register as dynamic symbols of
229 internal or hidden visibility.
230 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
231 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
232 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
233 (elf32_frv_relocate_section): Pass relocation addend in. Use
234 original relocation addend to look up the got relocs/plt entries
235 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
236 processing relocations that reference .scommon symbols.
237 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
238 Introduce support for dynamic linking.
239 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
240 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
241 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
242 (frv_reloc_type_lookup): Return REL howtos for executables and
243 dynamic libraries.
244 (frv_info_to_howto_rel): New.
245 (struct frv_elf_link_hash_table): New.
246 (frv_hash_table, frv_got_section, frv_gotrel_section,
247 frv_plt_section, frv_pltrel_section, frv_relocs_info,
248 frv_got_initial_offset, frv_plt_initial_offset): New macros.
249 (frv_elf_link_hash_table_create): New.
250 (struct frv_pic_relocs_info): New.
251 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
252 (frv_pic_relocs_info_find): New.
253 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
254 New.
255 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
256 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
257 (_frv_emit_got_relocs_plt_entries): New.
258 (elf32_frv_relocate_section): Add support for dynamic linking.
259 Handle new relocations.
260 (_frv_create_got_section): New.
261 (elf32_frv_create_dynamic_sections): New.
262 (ELF_DYNAMIC_INTERPRETER): New.
263 (struct _frv_dynamic_got_info): New.
264 (_frv_count_got_plt_entries): New.
265 (struct _frv_dynamic_got_plt_info): New.
266 (_frv_compute_got_alloc_data): New.
267 (_frv_get_got_entry, _frv_get_fd_entry): New.
268 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
269 (_frv_resolve_final_relocs_info): New.
270 (elf32_frv_size_dynamic_sections): New.
271 (elf32_frv_finish_dynamic_sections): New.
272 (elf32_frv_adjust_dynamic_symbol): New.
273 (elf32_frv_finish_dynamic_symbol): New.
274 (elf32_frv_check_relocs): Handle new relocs. Explain how the
275 whole thing works.
276 (elf_info_to_howto_rel): Define.
277 (bfd_elf32_bfd_link_hash_table_create): Define.
278 (elf_backend_create_dynamic_sections): Define.
279 (elf_backend_adjust_dynamic_symbol): Define.
280 (elf_backend_size_dynamic_sections): Define.
281 (elf_backend_finish_dynamic_symbol): Define.
282 (elf_backend_finish_dynamic_sections): Define.
283 (elf_backend_want_got_sym): Define.
284 (elf_backend_got_header_size): Define.
285 (elf_backend_want_got_plt): Define.
286 (elf_backend_plt_readonly): Define.
287 (elf_backend_want_plt_sym): Define.
288 (elf_backend_plt_header_size): Define.
289 (elf_backend_may_use_rel_p): Define.
290 (elf_backend_may_use_rela_p): Define.
291 (elf_backend_default_use_rela_p): Define.
292 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
293 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
294 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
295 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
296 (frv_reloc_map): Map the corresponding BFD relocs to them.
297 (frv_reloc_type_lookup): ... and back to BFD relocs.
298 * reloc.c: New relocs.
299 * bfd-in2.h, libbfd.h: Rebuilt.
300 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
301 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
302 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
303 R_FRV_FUNCDESC_GOTLO): New.
304 (frv_reloc_map): Map the corresponding BFD relocs to them.
305 (frv_reloc_type_lookup): ... and back to BFD relocs.
306 * reloc.c: New relocs.
307 * bfd-in2.h, libbfd.h: Rebuilt.
308
4301eeb1
MR
3092004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
310
311 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
312 targets to support pages of up to 64kB.
313 (elf32_bed): Redefine to get a separate backend data structure for
314 traditional targets.
315 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
316 targets to support pages of up to 64kB.
317 (elf64_bed): Redefine to get a separate backend data structure for
318 traditional targets.
319 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
320 targets to support pages of up to 64kB.
321 (elf32_bed): Redefine to get a separate backend data structure for
322 traditional targets.
323
0647ed71
MK
3242004-01-04 Mark Kettenis <kettenis@gnu.org>
325
326 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
327
61adc1a4
NC
3282004-01-02 Mark Kettenis <kettenis@gnu.org>
329
330 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
331 (elf_i386_grok_psinfo): Likewise.
332
b50c15dc
NC
3332004-01-02 Bernardo Innocenti <bernie@develer.com>
334
335 * config.bfd: Add m68k-uClinux target.
336
2627de83
AM
3372004-01-01 Grant Edwards <grante@visi.com>
338
339 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
340 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
341 (elf32_h8_gc_sweep_hook): New function.
342 (elf_backend_gc_mark_hook): Define.
343 (elf_backend_gc_sweep_hook): Define.
344 (elf_backend_can_gc_sections): Define.
345
c9e214e5 346For older changes see ChangeLog-0203
56882138
AM
347\f
348Local Variables:
349mode: change-log
350left-margin: 8
351fill-column: 74
352version-control: never
353End:
This page took 0.316596 seconds and 4 git commands to generate.