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