1fada0c1c8bf8a5fa4c80bb9b230f02840f60d87
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2
3 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
4 relocation howto with ARM_26 one for consistency.
5 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
6 that will be converted to ARM_26D ones, since we always want 'done'
7 relocations to be reflected in section's data.
8 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
9 offset.
10 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
11 requested.
12
13 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
14
15 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
16 are not partial_inplace during a relocatable link.
17
18 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
19
20 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Terminate early
21 if no dynamic object is present. Declare r_symndx and h in an
22 inner scope.
23
24 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
25
26 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
27 trampoline if it is known out of range.
28
29 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
30
31 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
32 * elf32-frv.c (_frv_osec_readonly_p): New.
33 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
34 undefweak symbol.
35 (_frv_count_got_plt_entries): Adjust expected count accordingly.
36 (elf32_frv_relocate_section): Likewise. Error out if attempting
37 to emit rofixups or dynamic relocs in read-only segments. Use
38 _bfd_elf_section_offset to adjust r_offsets in rofixups and
39 dynamic relocations.
40 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
41 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
42 relocations or fixups involving merged sections correctly. Avoid
43 crash when undefined symbol is referenced by R_FRV_32 or
44 R_FRV_FUNCDESC_VALUE.
45 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
46 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
47 input section holding local symbol to addend of R_FRV_32 or
48 R_FRV_FUNCDESC_VALUE dynamic relocation.
49 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
50 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
51 (elf32_frv_always_size_sections): Don't store pointer to
52 __stacksize symbol in sec_info.
53 (elf32_frv_modify_segment_map): Look it up here.
54 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
55 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
56 of the lazy PLT entry, not only its offset, as the low word of a
57 function descriptor.
58 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
59 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
60 if a hash table entry already exists but is not a definition.
61 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
62 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
63 (_frv_add_rofixup): Don't inline.
64 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
65 for undefweak symbols.
66 (elf32_frv_relocate_section): Avoid crash while computing
67 relocation when linking with shared library. Only emit rofixups
68 and dynamic relocations for alloc&load sections. Mark binaries
69 with inter-segment relocations for relocation as a unit.
70 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
71 (DEFAULT_STACK_SIZE): New.
72 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
73 emit rofixups or dynamic relocs when linking dynamic non-PIE
74 executables.
75 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
76 shared libs too. Reserve the last entry for the GOT pointer.
77 (elf32_frv_finish_dynamic_sections): Emit it.
78 (elf32_frv_always_size_sections): New.
79 (elf32_frv_modify_segment_map): New.
80 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
81 sections.
82 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
83 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
84 (elf_backend_always_size_sections): New.
85 (elf_backend_modify_segment_map): New.
86 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
87 * config.bfd: Added frv-*-*linux*.
88 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
89 ABS section, instead of crashing.
90 (elf32_frv_relocate_section): Don't crash before warning about
91 different segments in non-PIC relocation.
92 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
93 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
94 relocs to undefweak symbols.
95 (elf32_frv_relocate_section): Ditto for undefined symbols.
96 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
97 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
98 gotfixup section was created.
99 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
100 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
101 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
102 complain_overflow_signed.
103 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
104 have not been allocated.
105 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
106 privfd only if dynamic sections were created.
107 (elf32_frv_relocate_section): Compute gprel_segment, and use it
108 for GPREL relocs. When linking relocatable FDPIC executables,
109 emit warnings for relocations that would be illegal on PIE or
110 shared libraries. Emit rofixup for R_FRV_32 only if input object
111 is not FDPIC.
112 (_frv_create_got_section): Define _gp symbol in the rofixup
113 section.
114 (elf32_frv_finish_dynamic_sections): If rofixups needed but
115 dynamic sections missing, error out requesting -melf32frvfd.
116 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
117 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
118 computation of addends from section and global or local symbol
119 value. Change return type to bfd_boolean, and return a failure if
120 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
121 nonzero addend is required.
122 (elf32_frv_relocate_section): Likewise. Print error for
123 unsupported nonzero addends.
124 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
125 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
126 force everything local.
127 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
128 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
129 (frv_gotfixup_section): New.
130 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
131 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
132 and relocsfdv.
133 (_frv_add_rofixup): New.
134 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
135 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
136 improve some ugly conditions.
137 (elf32_frv_relocate_section): Likewise. Reject inter-segment
138 relocations in fdpic.
139 (_frv_create_got_section): Create .rofixup.got section.
140 (struct _frv_dynamic_got_info): Added fixups.
141 (_frv_count_got_plt_entries): Account in-GOT relocations into
142 relocs32, relocsfd and relocsfdv. Account them into relocs or
143 fixups, as appropriate.
144 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
145 sizing of gotrel.
146 (elf32_frv_finish_dynamic_sections): Verify that the right number
147 of relocations and fixups was generated.
148 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
149 relocsfdv.
150 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
151 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
152 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
153 descriptor of a (formerly-)global symbol is local.
154 (struct frv_pic_relocs_info): Adjust comments.
155 (_frv_emit_got_relocs_plt_entries): Adjust.
156 (elf32_frv_relocate_section): Likewise.
157 (_frv_count_got_plt_entries): Likewise.
158 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
159 symbol's value to addend in the common preamble. Decay dynamic
160 symbols to section+offset if they bind or call locally, for GOT
161 and FUNCDESC_VALUE, respectively.
162 (elf32_frv_relocate_section): Likewise.
163 (elf32_frv_check_relocs): Don't register as dynamic symbols of
164 internal or hidden visibility.
165 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
166 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
167 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
168 (elf32_frv_relocate_section): Pass relocation addend in. Use
169 original relocation addend to look up the got relocs/plt entries
170 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
171 processing relocations that reference .scommon symbols.
172 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
173 Introduce support for dynamic linking.
174 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
175 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
176 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
177 (frv_reloc_type_lookup): Return REL howtos for executables and
178 dynamic libraries.
179 (frv_info_to_howto_rel): New.
180 (struct frv_elf_link_hash_table): New.
181 (frv_hash_table, frv_got_section, frv_gotrel_section,
182 frv_plt_section, frv_pltrel_section, frv_relocs_info,
183 frv_got_initial_offset, frv_plt_initial_offset): New macros.
184 (frv_elf_link_hash_table_create): New.
185 (struct frv_pic_relocs_info): New.
186 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
187 (frv_pic_relocs_info_find): New.
188 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
189 New.
190 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
191 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
192 (_frv_emit_got_relocs_plt_entries): New.
193 (elf32_frv_relocate_section): Add support for dynamic linking.
194 Handle new relocations.
195 (_frv_create_got_section): New.
196 (elf32_frv_create_dynamic_sections): New.
197 (ELF_DYNAMIC_INTERPRETER): New.
198 (struct _frv_dynamic_got_info): New.
199 (_frv_count_got_plt_entries): New.
200 (struct _frv_dynamic_got_plt_info): New.
201 (_frv_compute_got_alloc_data): New.
202 (_frv_get_got_entry, _frv_get_fd_entry): New.
203 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
204 (_frv_resolve_final_relocs_info): New.
205 (elf32_frv_size_dynamic_sections): New.
206 (elf32_frv_finish_dynamic_sections): New.
207 (elf32_frv_adjust_dynamic_symbol): New.
208 (elf32_frv_finish_dynamic_symbol): New.
209 (elf32_frv_check_relocs): Handle new relocs. Explain how the
210 whole thing works.
211 (elf_info_to_howto_rel): Define.
212 (bfd_elf32_bfd_link_hash_table_create): Define.
213 (elf_backend_create_dynamic_sections): Define.
214 (elf_backend_adjust_dynamic_symbol): Define.
215 (elf_backend_size_dynamic_sections): Define.
216 (elf_backend_finish_dynamic_symbol): Define.
217 (elf_backend_finish_dynamic_sections): Define.
218 (elf_backend_want_got_sym): Define.
219 (elf_backend_got_header_size): Define.
220 (elf_backend_want_got_plt): Define.
221 (elf_backend_plt_readonly): Define.
222 (elf_backend_want_plt_sym): Define.
223 (elf_backend_plt_header_size): Define.
224 (elf_backend_may_use_rel_p): Define.
225 (elf_backend_may_use_rela_p): Define.
226 (elf_backend_default_use_rela_p): Define.
227 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
228 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
229 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
230 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
231 (frv_reloc_map): Map the corresponding BFD relocs to them.
232 (frv_reloc_type_lookup): ... and back to BFD relocs.
233 * reloc.c: New relocs.
234 * bfd-in2.h, libbfd.h: Rebuilt.
235 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
236 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
237 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
238 R_FRV_FUNCDESC_GOTLO): New.
239 (frv_reloc_map): Map the corresponding BFD relocs to them.
240 (frv_reloc_type_lookup): ... and back to BFD relocs.
241 * reloc.c: New relocs.
242 * bfd-in2.h, libbfd.h: Rebuilt.
243
244 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
245
246 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
247 targets to support pages of up to 64kB.
248 (elf32_bed): Redefine to get a separate backend data structure for
249 traditional targets.
250 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
251 targets to support pages of up to 64kB.
252 (elf64_bed): Redefine to get a separate backend data structure for
253 traditional targets.
254 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
255 targets to support pages of up to 64kB.
256 (elf32_bed): Redefine to get a separate backend data structure for
257 traditional targets.
258
259 2004-01-04 Mark Kettenis <kettenis@gnu.org>
260
261 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
262
263 2004-01-02 Mark Kettenis <kettenis@gnu.org>
264
265 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
266 (elf_i386_grok_psinfo): Likewise.
267
268 2004-01-02 Bernardo Innocenti <bernie@develer.com>
269
270 * config.bfd: Add m68k-uClinux target.
271
272 2004-01-01 Grant Edwards <grante@visi.com>
273
274 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
275 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
276 (elf32_h8_gc_sweep_hook): New function.
277 (elf_backend_gc_mark_hook): Define.
278 (elf_backend_gc_sweep_hook): Define.
279 (elf_backend_can_gc_sections): Define.
280
281 For older changes see ChangeLog-0203
282 \f
283 Local Variables:
284 mode: change-log
285 left-margin: 8
286 fill-column: 74
287 version-control: never
288 End:
This page took 0.048762 seconds and 4 git commands to generate.