blob: 5ec710166287eea05da0155b9d339a308c38a3b7 [file] [log] [blame]
Mark Wielaardc1c1c062014-06-14 17:15:37 +020012014-06-17 Mark Wielaard <mjw@redhat.com>
2
3 * eblinitreg.c (ebl_func_addr_mask): New function.
4 * libebl.h (ebl_func_addr_mask): Define.
5 * libeblP.h (struct ebl): Add func_addr_mask.
6
Mark Wielaard028d0ab2014-05-19 16:52:56 +020072014-05-19 Mark Wielaard <mjw@redhat.com>
8
9 * Makefile.am (gen_SOURCES): Add eblcheckreloctargettype.c.
10 * eblcheckreloctargettype.c: New file.
11 * ebl-hooks.h (check_reloc_target_type): New hook.
12 * eblopenbackend.c (default_check_reloc_target_type): New function.
13 (fill_defaults): Assign default_check_reloc_target_type to
14 check_reloc_target_type.
15 * libebl.h (ebl_check_reloc_target_type): New function definition.
16
Mark Wielaard159ac522013-12-18 11:05:54 +0100172013-12-18 Mark Wielaard <mjw@redhat.com>
18
19 * Makefile.am (gen_SOURCES): Add eblresolvesym.c.
20 * ebl-hooks.h (resolve_sym_value): New entry.
21 * eblresolvesym.c: New file.
22 * libebl.h (ebl_resolve_sym_value): New definition.
23 * libeblP.h (fd_addr): New field.
24 (fd_data): Likewise.
25
Jan Kratochvilc6a41482013-12-17 18:49:54 +0100262013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
27
28 unwinder: s390 and s390x
29 * Makefile.am (gen_SOURCES): Add eblnormalizepc.c and eblunwind.c.
30 * ebl-hooks.h (normalize_pc, unwind): New.
31 * eblnormalizepc.c: New file.
32 * eblunwind.c: New file.
33 * libebl.h (Ebl_Register_Location): Add field pc_register.
34 (ebl_normalize_pc): New declaration.
35 (ebl_tid_registers_get_t, ebl_pid_memory_read_t): New definitions.
36 (ebl_unwind): New declaration.
37
Jan Kratochvil5cbf42a2013-12-15 18:56:17 +0100382013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 unwinder: ppc and ppc64
41 * Makefile.am (gen_SOURCES): Add ebldwarftoregno.c.
42 * ebl-hooks.h (dwarf_to_regno): New.
43 * ebldwarftoregno.c: New file.
44 * libebl.h (Ebl_Core_Item): New field pc_register.
45 (ebl_tid_registers_t): Add FIRSTREG -1 to the comment.
46 (ebl_dwarf_to_regno): New.
47
Petr Machata98c8a732013-11-26 03:10:31 +0100482013-11-25 Petr Machata <pmachata@redhat.com>
49
50 * eblopenbackend.c (machines): Add entry for AArch64.
51
Jan Kratochvil1c1a53b2013-11-14 20:55:41 +0100522013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 Code cleanup: Remove const in prototype
55 * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
56
Jan Kratochvil0b867462013-05-30 14:37:38 +0200572013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
58 Mark Wielaard <mjw@redhat.com>
59
60 * Makefile.am (gen_SOURCES): Add eblinitreg.c.
61 * ebl-hooks.h (set_initial_registers_tid): New entry.
62 * eblinitreg.c: New file.
63 * libebl.h (ebl_tid_registers_t): New definition.
64 (ebl_set_initial_registers_tid, ebl_frame_nregs): New declarations.
65 * libeblP.h (struct ebl): New entry frame_nregs.
66
Mark Wielaard3dec3e12013-10-06 17:04:07 +0200672013-10-06 Mark Wielaard <mjw@redhat.com>
68
69 * libebl.h (ebl_abi_cfi): Document restrictions using register
70 rules.
71
Petr Machatab43bcfe2013-09-26 00:38:37 +0200722013-09-26 Petr Machata <pmachata@redhat.com>
73
74 * eblcorenotetypename.c: Handle NT_ARM_TLS, NT_ARM_HW_BREAK,
75 NT_ARM_HW_WATCH, NT_SIGINFO, NT_FILE.
76
Mark Wielaard2cfec292013-09-25 13:02:53 +0200772013-09-25 Mark Wielaard <mjw@redhat.com>
78
79 * eblsectionstripp.c (ebl_section_strip_p): Check shdr_l is not NULL.
80
Mark Wielaardcdaaf212013-04-25 16:50:11 -0400812013-04-24 Mark Wielaard <mjw@redhat.com>
82
83 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
84
Jan Kratochvil0631d1f2012-10-12 20:43:21 +0200852012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 * ebl-hooks.h (abi_cfi): Extend its comment for return value.
88 * eblopenbackend.c (default_abi_cfi): Return -1.
89 * libebl.h (ebl_abi_cfi): Extend its comment for return value.
90
Petr Machata96896012012-08-30 16:01:02 +0200912012-08-30 Petr Machata <pmachata@redhat.com>
92
93 * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
94 S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
95 S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
96
Jeff Kenton257dcf42012-08-22 09:00:03 -0400972012-08-22 Jeff Kenton <jkenton@tilera.com>
98
99 * eblopenbackend.c (machines): Add tilegx.
100
Mark Wielaarda0172d72012-06-25 17:18:53 +02001012011-06-26 Mark Wielaard <mjw@redhat.com>
102
103 * eblopenbackend.c (default_debugscn_p): Add .debug_macro.
104
Mark Wielaardbb9d1b42011-04-24 17:53:38 +02001052011-04-26 Mark Wielaard <mjw@redhat.com>
106
107 * libebl.h (ebl_object_note_type_name): Add const char *name arg.
108 * eblhooks.h (object_note_type_name): Likewise.
109 * eblopenbackend.c (default_object_note_type_name): Likewise.
110 * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
111 And print version if name is "stapsdt".
112 * eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
113
Marek Polacekcde0b272011-03-21 23:46:56 +01001142011-03-21 Marek Polacek <mpolacek@redhat.com>
115
116 * ebldynamictagname.c: Fix typo in TLSDESC_GOT.
117
Mark Wielaarda062b6b2011-03-10 13:02:32 +01001182011-03-10 Mark Wielaard <mjw@redhat.com>
119
120 * Makefile.am (gen_SOURCES): Add eblstother.c.
121 * eblstother.c: New file.
122 * ebl-hooks.h: Add check_st_other_bits hook.
123 * eblopenbackend.c (default_check_st_other_bits): New function.
124 (fill_defaults): Hook default_check_st_other_bits.
125 * libebl.h (ebl_check_st_other_bits): New prototype.
126
Roland McGrath804e9ca2010-07-07 16:06:12 -07001272010-07-07 Roland McGrath <roland@redhat.com>
128
129 * eblopenbackend.c (default_debugscn_p): Match .gdb_index section.
130
Roland McGrath22359e22010-02-15 15:57:03 -08001312010-02-15 Roland McGrath <roland@redhat.com>
132
133 * Makefile.am: Use config/eu.am for common stuff.
134
Roland McGrath0ccbbcd2010-01-04 21:59:07 -08001352010-01-04 Roland McGrath <roland@redhat.com>
136
137 * eblcorenote.c (ebl_core_note): Take GElf_Nhdr * and name data
138 pointer instead of only n_type and n_descsz.
139 * libebl.h: Update declaration.
140 * ebl-hooks.h: Update core_note hook signature.
141 * eblopenbackend.c (default_core_note): Likewise.
142
Roland McGrathf80c9072009-10-14 12:35:47 -07001432009-10-14 Roland McGrath <roland@redhat.com>
144
145 * eblobjnote.c (ebl_object_note): Clean up NT_GNU_GOLD_VERSION printing.
146
Roland McGratha14b4eb2009-10-05 11:32:26 -07001472009-10-05 Roland McGrath <roland@redhat.com>
148
149 * eblopenbackend.c (default_debugscn_p): Match .debug_pubtypes and
150 .debug_types too.
151
Petr Machatad3a8b2d2009-09-02 20:46:08 +02001522009-09-02 Petr Machata <pmachata@redhat.com>
153
154 * libebl/eblstrtab.c (morememory): Allocate memory in multiples of
155 pagesize.
156
Petr Machata077a7082009-08-06 18:45:08 +02001572009-08-06 Petr Machata <pmachata@redhat.com>
158
159 * libebl/eblstrtab.c (ebl_strtabfinalize): Only call copystrings
160 if we have any strings to copy.
161
Mark Wielaardbc1b92e2009-07-26 08:33:18 -07001622009-07-26 Mark Wielaard <mjw@redhat.com>
163
Mark Wielaard2f5b79e2009-07-26 14:49:26 -0700164 * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
165
Mark Wielaardbc1b92e2009-07-26 08:33:18 -0700166 * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
167 NT_GNU_GOLD_VERSION.
168
Roland McGrath3c84db32009-06-24 17:41:40 -07001692009-07-08 Roland McGrath <roland@redhat.com>
170
171 * ebl-hooks.h: Add abi_cfi hook.
172 * eblopenbackend.c (default_abi_cfi): New function.
173 (fill_defaults): Add initializer.
174 * eblabicfi.c: New file.
175 * Makefile.am (gen_SOURCES): Add it.
176 * libebl.h: Declare ebl_abi_cfi.
177
Ulrich Drepper70c442c2009-07-08 00:53:24 -07001782009-07-08 Ulrich Drepper <drepper@redhat.com>
179
180 * eblsymbolbindingname.c (ebl_symbol_binding_name): Handle
181 STB_GNU_UNIQUE.
182
183 * eblsymboltypename.c (ebl_symbol_type_name): Only handle STT_GNU_IFUNC
184 if the binary is marked as being for Linux.
185
Roland McGrathd5ff6672009-04-01 18:28:41 -07001862009-04-01 Roland McGrath <roland@redhat.com>
187
188 * eblsymboltypename.c (ebl_symbol_type_name): Add STT_GNU_IFUNC.
189
190 * eblauxvinfo.c (AUXV_TYPES): Add RANDOM and BASE_PLATFORM.
191
Ulrich Drepper95fa15e2009-02-01 19:06:10 -08001922009-02-01 Ulrich Drepper <drepper@redhat.com>
193
194 * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>"
195 instead of "???" for invalid relocations.
196
Roland McGratha845f682008-12-03 03:41:58 +00001972008-08-01 Roland McGrath <roland@redhat.com>
198
199 * eblcorenotetypename.c: Handle NT_386_IOPERM.
200
Roland McGrath1d8bb252008-08-07 08:39:41 +00002012008-07-28 Roland McGrath <roland@redhat.com>
202
203 * eblauxvinfo.c (AUXV_TYPES): Add EXECFN.
204
205 * eblauxvinfo.c (ebl_auxv_info): Handle missing elements of standard
206 table.
207
2082008-07-04 Roland McGrath <roland@redhat.com>
209
210 * libebl.h: Declare ebl_syscall_abi.
211 * ebl_syscall_abi.c: New file.
212 * Makefile.am (gen_SOURCES): Add it.
213 * ebl-hooks.h: New hook syscall_abi.
214 * eblopenbackend.c (default_syscall_abi): New function.
215 (fill_defaults): Use it.
216
Roland McGrath13b69602008-04-01 02:30:05 +00002172008-03-31 Roland McGrath <roland@redhat.com>
218
219 * ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
220
221 * ebl-hooks.h: Add check_special_section hook.
222 * eblopenbackend.c (fill_defaults): Set new hook to ...
223 (default_check_special_section): ... this, new function.
224 * ebl_check_special_section.c: New file.
225 * Makefile.am (gen_SOURCES): Add it.
226 * libebl.h: Declare it.
227
Roland McGrath059c83e2008-02-21 06:19:39 +00002282008-02-20 Roland McGrath <roland@redhat.com>
229
230 * libebl.h: Declare ebl_check_object_attribute.
231 * eblcheckobjattr.c: New file.
232 * Makefile.am (gen_SOURCES): Add it.
233 * ebl-hooks.h: Add check_object_attribute hook.
234 * eblopenbackend.c (default_check_object_attribute): New function.
235 (fill_defaults): Initialize pointer to it.
236
2372008-02-19 Roland McGrath <roland@redhat.com>
238
239 * eblsectiontypename.c (ebl_section_type_name):
240 Handle SHT_GNU_ATTRIBUTES.
241
2422008-02-08 Roland McGrath <roland@redhat.com>
243
244 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_SPE.
245
2462008-01-30 Roland McGrath <roland@redhat.com>
247
248 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_386_TLS.
249
Roland McGrathe4c22ea2007-10-23 13:07:39 +00002502007-10-18 Roland McGrath <roland@redhat.com>
251
252 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX.
253
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00002542007-10-11 Roland McGrath <roland@redhat.com>
255
256 * eblobjnote.c (ebl_object_note): Translate target format (byte-swap)
257 for NT_GNU_ABI_TAG contents.
258
Roland McGrathcb6d8652007-08-23 08:10:54 +00002592007-08-22 Roland McGrath <roland@redhat.com>
260
261 * libebl.h (Ebl_Core_Item): New member `group'.
262
2632007-08-19 Roland McGrath <roland@redhat.com>
264
265 * ebl-hooks.h: Add new hook auxv_info.
266 * eblopenbackend.c (default_auxv_info): New function.
267 (fill_defaults): Initialize auxv_info hook.
268 * eblauxvinfo.c : New file.
269 * Makefile.am (gen_SOURCES): Add it.
270 * libebl.h: Declare ebl_auxv_info.
271
272 * eblcorenote.c: Rewritten with new signature.
273 * Makefile.am (gen_SOURCES): Add it.
274 * libebl.h (Ebl_Register_Location, Ebl_Core_Item): New types.
275 (ebl_core_note_info): Completely revamp signature.
276 * ebl-hooks.h: Update decl.
277 * eblopenbackend.c (default_core_note): Update signature.
278
Roland McGrath87d47802007-07-16 22:23:37 +00002792007-07-09 Roland McGrath <roland@redhat.com>
280
281 * eblobjnotetypename.c (ebl_object_note_type_name): Handle
282 NT_GNU_HWCAP, NT_GNU_BUILD_ID.
283
284 * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
285
Roland McGrath4be15242007-04-25 03:09:33 +00002862007-04-22 Roland McGrath <roland@redhat.com>
287
288 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
289
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00002902007-03-10 Roland McGrath <roland@redhat.com>
291
292 * eblcorenote.c (ebl_core_note): For normally-zero types,
293 print in hex if not zero.
294
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00002952007-01-11 Roland McGrath <roland@redhat.com>
296
297 * ebl-hooks.h (machine_section_flag_check): New hook.
298 * libebl.h: Declare ebl_machine_section_flag_check.
299 * eblmachinesectionflagcheck.c: New file.
300 * Makefile.am (gen_SOURCES): Add it.
301 * eblopenbackend.c (default_machine_section_flag_check): New function.
302 (fill_defaults): Use it.
303
Roland McGrathc373d852006-10-10 00:25:21 +00003042006-09-04 Roland McGrath <roland@redhat.com>
305
306 * ebl-hooks.h: Replace register_name hook with register_info.
307 Also yield natural bit width and base type encoding.
308 * eblopenbackend.c (default_register_name): Renamed
309 default_register_info, new args added.
310 (fill_defaults): Update initialization.
311 * eblregname.c: File renamed ...
312 * eblreginfo.c: ... to this.
313 (ebl_register_name): Renamed to ebl_register_info, new args added.
314 * libebl.h: Update decl.
315
316 * Makefile.am (gen_SOURCES): Update list.
317
Ulrich Drepper28ed8952006-07-07 03:43:47 +00003182006-07-06 Ulrich Drepper <drepper@redhat.com>
319
320 * ebldynamictagname.c: Add support for DT_GNU_HASH.
321 * ebldynamictagcheck.c: Likewise.
322 * eblsectiontypename.c: Add support for SHT_GNU_HASH.
323
3242006-07-05 Ulrich Drepper <drepper@redhat.com>
325
326 * Makefile.am (gen_SOURCES): Add eblsysvhashentrysize.c.
327 * libeblP.h (struct ebl): Add sysvhash_entrysize element.
328 * eblopenbackend.c (fill_defaults): Initialize sysvhash_entrysize.
329
330 * eblopenbackend.c (openbackend): If possible, fill machine, class,
331 and data values in from the ELF file.
332
3332006-07-04 Ulrich Drepper <drepper@redhat.com>
334
335 * Makefile.am (gen_SOURCES): Add eblrelativerelocp.c.
336 * eblrelativerelocp.c: New file.
337 * ebl-hooks.c: Add relative_reloc_p.
338 * eblopenbackend.c (default_relative_reloc_p): New function.
339 (fill_defaults): Hook it up.
340 * libebl.h: Declare ebl_relative_reloc_p.
341
Ulrich Drepper6ca46002006-06-12 22:40:23 +00003422006-06-12 Ulrich Drepper <drepper@redhat.com>
343
344 * Makefile.am (gen_SOURCES): Add eblnonerelocp.c.
345 * eblnonerelocp.c: New file.
346 * ebl-hooks.c: Add none_reloc_p.
347 * eblopenbackend.c (default_none_reloc_p): New function.
348 (fill_defaults): Hook it up.
349 * libebl.h: Declare ebl_none_reloc_p.
350
Ulrich Drepper41cbd762006-05-27 18:19:23 +00003512006-05-27 Ulrich Drepper <drepper@redhat.com>
352
353 * libebl.h: Add extern "C".
354
Roland McGrath994b4892005-12-05 22:46:21 +00003552005-11-25 Roland McGrath <roland@redhat.com>
356
357 * eblregname.c: New file.
358 * Makefile.am (gen_SOURCES): Add it.
359 * ebl-hooks.h: Declare register_name hook.
360 * libebl.h: Declare ebl_register_name.
361 * eblopenbackend.c (default_register_name): New function.
362 (fill_defaults): Use it.
363
Roland McGrath215c6322005-11-16 22:46:04 +00003642005-11-16 Roland McGrath <roland@redhat.com>
365
366 * libebl.h: Use "" for elf-knowledge.h, not <>.
367
Roland McGrathe47ab762005-11-17 03:16:00 +00003682005-11-15 Roland McGrath <roland@redhat.com>
369
370 * Makefile.am: Removed everything for building libebl_*.so modules,
371 now in ../backends/Makefile.am instead.
372 * alpha_init.c: Moved to ../backends.
373 * alpha_reloc.def: Likewise.
374 * alpha_retval.c: Likewise.
375 * alpha_symbol.c: Likewise.
376 * arm_init.c: Likewise.
377 * arm_reloc.def: Likewise.
378 * arm_symbol.c: Likewise.
379 * common-reloc.c: Likewise.
380 * i386_corenote.c: Likewise.
381 * i386_init.c: Likewise.
382 * i386_reloc.def: Likewise.
383 * i386_retval.c: Likewise.
384 * i386_symbol.c: Likewise.
385 * ia64_init.c: Likewise.
386 * ia64_reloc.def: Likewise.
387 * ia64_symbol.c: Likewise.
388 * libebl_CPU.h: Likewise.
389 * ppc64_init.c: Likewise.
390 * ppc64_reloc.def: Likewise.
391 * ppc64_retval.c: Likewise.
392 * ppc64_symbol.c: Likewise.
393 * ppc_init.c: Likewise.
394 * ppc_reloc.def: Likewise.
395 * ppc_retval.c: Likewise.
396 * ppc_symbol.c: Likewise.
397 * s390_init.c: Likewise.
398 * s390_reloc.def: Likewise.
399 * s390_symbol.c: Likewise.
400 * sh_init.c: Likewise.
401 * sh_reloc.def: Likewise.
402 * sh_symbol.c: Likewise.
403 * sparc_init.c: Likewise.
404 * sparc_reloc.def: Likewise.
405 * sparc_symbol.c: Likewise.
406 * x86_64_corenote.c: Likewise.
407 * x86_64_init.c: Likewise.
408 * x86_64_reloc.def: Likewise.
409 * x86_64_retval.c: Likewise.
410 * x86_64_symbol.c: Likewise.
411
412 * libebl.h: Comment fixes.
413
414 * alpha_retval.c: New file.
415 * Makefile.am (alpha_SRCS): Add it.
416 * alpha_init.c (alpha_init): Initialize return_value_location hook.
417
418 * ppc64_retval.c: New file.
419 * Makefile.am (ppc64_SRCS): Add it.
420 * ppc64_init.c (ppc64_init): Initialize return_value_location hook.
421
422 * ppc_retval.c: New file.
423 * Makefile.am (ppc_SRCS): Add it.
424 * ppc_init.c (ppc_init): Initialize return_value_location hook.
425
Roland McGrathcd60ea82005-11-16 01:57:40 +00004262005-11-14 Roland McGrath <roland@redhat.com>
427
428 * ia64_init.c (ia64_init): Initialize EH->reloc_simple_type.
429 * sh_init.c (sh_init): Likewise.
430 * x86_64_init.c (x86_64_init): Likewise.
431
432 * sparc_symbol.c (sparc_reloc_simple_type): New function.
433 * sparc_init.c (sparc_init): Use it.
434
435 * arm_symbol.c (arm_reloc_simple_type): New function.
436 * arm_init.c (arm_init): Use it.
437
438 * alpha_symbol.c (alpha_reloc_simple_type): New function.
439 * alpha_init.c (alpha_init): Use it.
440
441 * ia64_reloc.def: Update bits per H. J. Lu <hjl@lucon.org>.
442
443 * arm_reloc.def: Update bits per Daniel Jacobowitz <drow@false.org>.
444
445 * alpha_reloc.def: Update bits per Richard Henderson <rth@redhat.com>.
446
Roland McGrathe47ab762005-11-17 03:16:00 +00004472005-11-13 Roland McGrath <roland@redhat.com>
448
449 * x86_64_retval.c: New file.
450 * Makefile.am (x86_64_SRCS): Add it.
451 * x86_64_init.c (x86_64_init): Use x86_64_return_value_location.
452
453 * i386_retval.c: New file.
454 * Makefile.am (i386_SRCS): Add it.
455 (libdw): New variable.
456 (libebl_%.so): Use $(libdw) in link; use --as-needed.
457 * i386_init.c (i386_init): Use i386_return_value_location.
458
459 * eblretval.c: New file.
460 * Makefile.am (gen_SOURCES): Add it.
461 (INCLUDES): Search in libdw.
462 * libebl.h: Include <libdw.h>. Declare ebl_return_value_location.
463 * ebl-hooks.h: Declare return_value_location hook.
464 * eblopenbackend.c (default_return_value_location): New function.
465 (fill_defaults): Use it.
466
Roland McGrathcd60ea82005-11-16 01:57:40 +00004672005-11-10 Roland McGrath <roland@redhat.com>
468
469 * s390_init.c: New file.
470 * s390_reloc.def: New file.
471 * s390_symbol.c: New file.
472 * Makefile.am (modules, libebl_pic): Add s390.
473 (s390_SRCS, libebl_s390_pic_a_SOURCES): New variables.
474 (am_libebl_s390_pic_a_OBJECTS): New variable.
475
476 * ppc64_init.c: Use common-reloc.c.
477 * ppc64_symbol.c (ppc64_backend_name): Removed.
478 (ppc64_reloc_type_check, ppc64_reloc_type_name): Likewise.
479 (ppc64_copy_reloc_p, ppc64_reloc_valid_use): Likewise.
480
481 * ppc_init.c: Use common-reloc.c.
482 * ppc_symbol.c (ppc_backend_name): Removed.
483 (ppc_reloc_type_name, ppc_reloc_type_check): Likewise.
484 (ppc_reloc_valid_use, ppc_copy_reloc_p): Likewise.
485
486 * sparc_init.c: Use common-reloc.c.
487 * sparc_symbol.c (sparc_backend_name): Removed.
488 (sparc_reloc_type_name, sparc_reloc_type_check): Likewise.
489 (sparc_copy_reloc_p): Likewise.
490
491 * arm_init.c: Use common-reloc.c.
492 * arm_symbol.c (arm_backend_name): Removed.
493 (arm_reloc_type_name, arm_reloc_type_check, arm_copy_reloc_p): Removed.
494
495 * alpha_init.c: Use common-reloc.c.
496 * alpha_symbol.c (alpha_backend_name): Removed.
497 (alpha_reloc_type_name, alpha_reloc_type_check): Likewise.
498 (alpha_copy_reloc_p): Likewise.
499
500 * ia64_symbol.c (ia64_backend_name): Removed.
501 (ia64_reloc_type_name, ia64_reloc_type_check): Likewise.
502 (ia64_copy_reloc_p): Likewise.
503
504 * x86_64_init.c: Use common-reloc.c.
505 * x86_64_symbol.c (x86_64_backend_name): Removed.
506 (x86_64_copy_reloc_p, x86_64_reloc_valid_use): Likewise.
507 (x86_64_reloc_type_check, x86_64_reloc_type_name): Likewise.
508
509 * sh_init.c: Use common-reloc.c.
510 * sh_symbol.c: All functions removed.
511 (sh_reloc_simple_type): New function.
512 (sh_gotpc_reloc_check): New function.
513
514 * common-reloc.c: New file.
515 * Makefile.am (noinst_HEADERS): Add it.
516 * i386_init.c: Include it.
517
518 * sh_reloc.def: New file.
519 * i386_reloc.def: New file.
520 * alpha_reloc.def: New file.
521 * arm_reloc.def: New file.
522 * i386_reloc.def: New file.
523 * ia64_reloc.def: New file.
524 * ppc64_reloc.def: New file.
525 * ppc_reloc.def: New file.
526 * sh_reloc.def: New file.
527 * sparc_reloc.def: New file.
528 * x86_64_reloc.def: New file.
529 * Makefile.am (EXTRA_DIST): Add $(modules:=_reloc.def).
530
531 * libebl_alpha.map: Removed.
532 * libebl_ia64.map: Removed.
533 * libebl_ppc.map: Removed.
534 * libebl_sparc.map: Removed.
535 * libebl_arm.map: Removed.
536 * libebl_i386.map: Removed.
537 * libebl_ppc64.map: Removed.
538 * libebl_sh.map: Removed.
539 * libebl_x86_64.map: Removed.
540 * Makefile.am (EXTRA_DIST): Remove them.
541 (libebl_%.map, libebl_%.so): New pattern rules.
542
543 * libebl_alpha.h: Removed.
544 * libebl_ia64.h: Removed.
545 * libebl_ppc.h: Removed.
546 * libebl_sparc.h: Removed.
547 * libebl_arm.h: Removed.
548 * libebl_i386.h: Removed.
549 * libebl_ppc64.h: Removed.
550 * libebl_sh.h: Removed.
551 * libebl_x86_64.h: Removed.
552 * Makefile.am (noinst_HEADERS): Remove them.
553
554 * x86_64_corenote.c: Use libebl_CPU.h instead.
555 * x86_64_symbol.c: Likewise.
556 * i386_corenote.c: Likewise.
557
5582005-11-09 Roland McGrath <roland@redhat.com>
559
560 * ia64_symbol.c (ia64_reloc_simple_type): New function.
561
562 * ebl-hooks.h (reloc_simple_type): Take the Ebl handle, not Elf handle.
563 * eblrelocsimpletype.c (ebl_reloc_simple_type): Update caller.
564 * eblopenbackend.c (default_reloc_simple_type): Update signature.
565 * i386_symbol.c (i386_reloc_simple_type): Likewise.
566 * ppc64_symbol.c (ppc64_reloc_simple_type): Likewise.
567 * ppc_symbol.c (ppc_reloc_simple_type): Likewise.
568 * x86_64_symbol.c (x86_64_reloc_simple_type): Likewise.
569
570 * i386_symbol.c (i386_backend_name): Removed.
571 (i386_reloc_type_name, i386_reloc_type_check): Likewise.
572 (i386_reloc_valid_use): Removed.
573 (i386_copy_reloc_p): Removed.
574
575 * alpha_destr.c: Removed.
576 * arm_destr.c: Removed.
577 * i386_destr.c: Removed.
578 * ia64_destr.c: Removed.
579 * ppc64_destr.c: Removed.
580 * ppc_destr.c: Removed.
581 * sh_destr.c: Removed.
582 * sparc_destr.c: Removed.
583 * x86_64_destr.c: Removed.
584
585 * ebl-hooks.h: New file, broken out of ...
586 * libeblP.h (struct ebl): ... here. #include that for hook
587 declarations, after defining EBLHOOK macro.
588 * libebl_CPU.h: New file.
589 * Makefile.am (noinst_HEADERS): Add them.
590
591 * libeblP.h (struct ebl): Use uint_fast16_t for machine,
592 and uint_fast8_t for class and data.
593
5942005-08-14 Roland McGrath <roland@redhat.com>
595
596 * ia64_symbol.c (ia64_section_type_name): New function.
597 (ia64_dynamic_tag_check): New function.
598 (ia64_reloc_valid_use): New function.
599 * libebl_ia64.h: Declare them.
600 * ia64_init.c (ia64_init): Use them.
601 * Makefile.am (libebl_ia64.so): Link with libelf.
602
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00006032005-08-28 Ulrich Drepper <drepper@redhat.com>
604
605 * Makefile.am: Use $(LINK) not $(CC) when creating DSOs.
606
Roland McGrathe53d04a2005-08-13 20:56:07 +00006072005-08-13 Roland McGrath <roland@redhat.com>
608
609 * ia64_symbol.c (ia64_machine_flag_check): New function.
610 * libebl_ia64.h: Declare it.
611 * ia64_init.c (ia64_init): Use it.
612
Ulrich Drepperc5c33a62005-08-13 17:50:47 +00006132005-08-13 Ulrich Drepper <drepper@redhat.com>
614
615 * libebl.h: Add ehdr parameter to ebl_bss_plt_p and
616 ebl_check_special_symbol.
617 * libeblP.h (struct ebl): Adjust callback functions.
618 * eblopenbackend.c: Adjust dummy functions.
619 * ebl_check_special_symbol.c: Add parameter and pass it on.
620 * eblbsspltp.c: Likewise.
621 * ppc_symbol.c (find_dyn_got): With ehdr passed, simplify search for
622 the dynamic section entry.
623 (ppc_check_special_symbol): Add ehdr parameter.
624 (ppc_bss_plt_p): Likewise.
625 * libebl_ppc.h: Adjust prototypes.
626 * ppc64_symbol.c (ppc_check_special_symbol): Add ehdr parameter.
627 (ppc_bss_plt_p): Likewise.
628 * libebl_ppc64.h: Adjust prototypes.
629
Roland McGrath653d3762005-08-13 01:59:10 +00006302005-08-12 Roland McGrath <roland@redhat.com>
631
Roland McGrathf8873cb2005-08-13 03:26:06 +0000632 * ppc_symbol.c (find_dyn_got): New function, broken out of ...
633 (ppc_bss_plt_p): ... here. Call that.
634 (ppc_check_special_symbol): Use find_dyn_got to fetch value to check
635 against _GLOBAL_OFFSET_TABLE_.
636
Roland McGrath653d3762005-08-13 01:59:10 +0000637 * libeblP.h (struct ebl): Add bss_plt_p hook.
638 * eblopenbackend.c (default_bss_plt_p): New function.
639 (fill_defaults): Use it.
640 * eblbsspltp.c: New file.
641 * Makefile.am (gen_SOURCES): Add it.
642 * libebl.h: Declare ebl_bss_plt_p.
643 * ppc_symbol.c (ppc_bss_plt_p): New function.
644 * libebl_ppc.h: Declare it.
645 * ppc_init.c (ppc_init): Use it.
646 * ppc64_symbol.c (ppc64_bss_plt_p): New function.
647 * libebl_ppc64.h: Declare it.
648 * ppc64_init.c (ppc64_init): Use it.
649
650 * ebl_check_special_symbol.c: New file.
651 * Makefile.am (gen_SOURCES): Add it.
652 * libebl.h: Declare ebl_check_special_symbol.
653 * libeblP.h (struct ebl): Add check_special_symbol hook.
654 * eblopenbackend.c (default_check_special_symbol): New function.
655 (fill_defaults): Use it.
656 * ppc_symbol.c (ppc_check_special_symbol): New function.
657 * libebl_ppc.h: Add prototype.
658 * ppc_init.c (ppc_init): Use it.
659 * ppc64_symbol.c (ppc64_check_special_symbol): New function.
660 * libebl_ppc64.h: Add prototype.
661 * ppc64_init.c (ppc64_init): Use it.
662
Ulrich Drepperb03b0572005-08-07 08:12:22 +00006632005-08-07 Ulrich Drepper <drepper@redhat.com>
664
665 * ppc_init.c: Add support for new DT_PPC_* and R_PPC_* values.
666 * ppc_symbol.c: Likewise.
667 * libebl_ppc.h: Likewise.
668 * ppc64_init.c: There is now also a dynamic_tag_check functions
669 * ppc64_symbol.c: Add dynamic_tag_check.
670 * libebl_ppc64.h: Add prototype.
671 * alpha_init.c: Add support for new DT_ALPHA_* value.
672 * alpha_symbol.c: Likewise.
673 * libebl_alpha.h: Likewise.
674
Ulrich Drepper6fcb3832005-08-03 21:10:49 +00006752005-08-03 Ulrich Drepper <drepper@redhat.com>
676
677 * libebl_alpha.map: Remove unnecessary exports.
678 * libebl_arm.map: Likewise.
679 * libebl_i386.map: Likewise.
680 * libebl_ia64.map: Likewise.
681 * libebl_ppc.map: Likewise.
682 * libebl_ppc64.map: Likewise.
683 * libebl_sh.map: Likewise.
684 * libebl_sparc.map: Likewise.
685 * libebl_x86_64.map: Likewise.
686
Ulrich Dreppera38998e2005-08-03 02:05:39 +00006872005-08-02 Ulrich Drepper <drepper@redhat.com>
688
689 * Makefile.am (libebl_a_SOURCES): Add eblelfclass.c, eblelfdata.c,
690 and eblelfmachine.c.
691 * elbopenbackend.c (machines): Add class and data fields. Initialize
692 them.
693 (ebl_openbackend): Initialize machine, class, data fields in result.
694 * libebl.h: Declare Add eblelfclass, eblelfdata, and eblelfmachine.
695 * libeblP.h (Ebl): Add machine, class, data fields.
696
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006972005-07-23 Ulrich Drepper <drepper@redhat.com>
698
699 * eblsectionstripp.c: New file.
700 * Makefile.am (gen_SOURCES): Add eblsectionstripp.c.
701 * i386_init.c (i386_init): Install specific debugscn_p callback.
702 * i386_symbol.c (i386_debugscn_p): New function.
703 * libebl.h: Declare ebl_section_strip_p.
704 * libebl_i386.h: Declare i386_debugscn_p.
705
706 * libebl.h: Move Ebl definition to...
707 * libeblP.h: ...here.
708
7092005-07-21 Roland McGrath <roland@redhat.com>
710
711 * Makefile.am (install-ebl-modules): New target, commands from ...
712 (install): ... here. Make this depend on it.
713 (LIBEBL_SUBDIR): New variable, substituted by configure.
714 (install-ebl-modules): Install in $(libdir)/$(LIBEBL_SUBDIR).
715 * eblopenbackend.c (openbackend): Use LIBEBL_SUBDIR in module name.
716
7172005-07-21 Ulrich Drepper <drepper@redhat.com>
718
719 * eblcopyrelocp.c: New file.
720 * Makefile.am (gen_SOURCES): Add eblcopyrelocp.c.
721 * libebl.h: Declare ebl_copy_reloc_p.
722 * eblopenbackend.c (fill_defaults): Fill in copy_reloc_p.
723 (default_copy_reloc_p): New function.
724 * alpha_init.c: Define and use arch-specific copy_reloc_p function.
725 * alpha_symbol.c: Likewise.
726 * arm_init.c: Likewise.
727 * arm_symbol.c: Likewise.
728 * i386_init.c: Likewise.
729 * i386_symbol.c: Likewise.
730 * ia64_init.c: Likewise.
731 * ia64_symbol.c: Likewise.
732 * ppc64_init.c: Likewise.
733 * ppc64_symbol.c: Likewise.
734 * ppc_init.c: Likewise.
735 * ppc_symbol.c: Likewise.
736 * sh_init.c: Likewise.
737 * sh_symbol.c: Likewise.
738 * sparc_init.c: Likewise.
739 * sparc_symbol.c: Likewise.
740 * x86_64_init.c: Likewise.
741 * x86_64_symbol.c: Likewise.
742 * libebl_alpha.h: Declare the copy_reloc_p function.
743 * libebl_arm.h: Likewise.
744 * libebl_i386.h: Likewise.
745 * libebl_ia64.h: Likewise.
746 * libebl_ppc.h: Likewise.
747 * libebl_ppc64.h: Likewise.
748 * libebl_sh.h: Likewise.
749 * libebl_sparc.h: Likewise.
750 * libebl_x86_64.h: Likewise.
751
7522005-05-31 Roland McGrath <roland@redhat.com>
753
754 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
755 tracking works right.
756
7572005-05-21 Ulrich Drepper <drepper@redhat.com>
758
759 * libebl_x86_64.map: Add x86_64_core_note.
760
7612005-05-19 Roland McGrath <roland@redhat.com>
762
763 * libebl_i386.map: Add i386_reloc_valid_use, i386_reloc_simple_type.
764 * libebl_ppc.map: Add ppc_reloc_simple_type.
765 * libebl_ppc64.map: Add ppc64_reloc_simple_type.
766 * libebl_x86_64.map: Add x86_64_reloc_simple_type.
767
7682005-05-11 Ulrich Drepper <drepper@redhat.com>
769
770 * eblcorenote.c: Handle new AT_* values and files with different
771 endianess.
772 * Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
773 * x86-64_corenote.c: New file.
774 * x86_64_init.c: Hook in x86_64_corenote.
775 * i386_corenote.c: Make file usable on 64-bit platforms.
776
777 * eblopenbackend.c: If modules version comparison fails, reinitialize
778 hooks.
779
7802005-05-10 Ulrich Drepper <drepper@redhat.com>
781
782 * eblopenbackend.c: Require the init function to return a string.
783 Compare it with MODVERSION from config.h.
784 * alpha_init.c: Change return type. Return MODVERSION or NULL.
785 * arm_init.c: Likewise.
786 * eblopenbackend.c: Likewise.
787 * i386_init.c: Likewise.
788 * ia64_init.c: Likewise.
789 * ppc64_init.c: Likewise.
790 * ppc_init.c: Likewise.
791 * sh_init.c: Likewise.
792 * sparc_init.c: Likewise.
793 * x86_64_init.c: Likewise.
794 * libeblP.h: Adjust ebl_bhinit_t.
795 * libebl_alpha.h: Adjust init function prototype.
796 * libebl_arm.h: Likewise.
797 * libebl_i386.h: Likewise.
798 * libebl_ia64.h: Likewise.
799 * libebl_ppc.h: Likewise.
800 * libebl_ppc64.h: Likewise.
801 * libebl_sh.h: Likewise.
802 * libebl_sparc.h: Likewise.
803 * libebl_x86_64.h: Likewise.
804
805 * mips_destr.c: Removed.
806 * mips_init.c: Removed.
807 * mips_symbol.c: Removed.
808 * libebl_mips.h: Removed.
809 * libebl_mips.map: Removed.
810
8112005-05-03 Roland McGrath <roland@redhat.com>
812
813 * libebl.h (Ebl): Add `reloc_simple_type' member.
814 * eblopenbackend.c (default_reloc_simple_type): New function.
815 (openbackend): Use that as default reloc_simple_type callback.
816 * eblrelocsimpletype.c: New file.
817 * Makefile.am (gen_SOURCES): Add it.
818 * i386_symbol.c (i386_reloc_simple_type): New function.
819 * libebl_i386.h: Declare it.
820 * i386_init.c (i386_init): Use it.
821 * x86_64_symbol.c (x86_64_reloc_simple_type): New function.
822 * libebl_x86_64.h: Declare it.
823 * x86_64_init.c (x86_64_init): Use it.
824 * ppc_symbol.c (ppc_reloc_simple_type): New function.
825 * libebl_ppc.h: Declare it.
826 * ppc_init.c (ppc_init): Use it.
827 * ppc64_symbol.c (ppc64_reloc_simple_type): New function.
828 * libebl_ppc64.h: Declare it.
829 * ppc64_init.c (ppc64_init): Use it.
830
8312005-03-17 Ulrich Drepper <drepper@redhat.com>
832
833 * eblcorenote.c (ebl_core_note): Add support for AT_SECURE.
834
8352005-02-15 Ulrich Drepper <drepper@redhat.com>
836
837 * Makefile.am (AM_CFLAGS): Add -Wformat=2.
838
8392005-02-14 Ulrich Drepper <drepper@redhat.com>
840
841 * alpha_destr.c: Add __attribute__((unused)) where needed.
842 * alpha_init.c: Likewise.
843 * alpha_symbol.c: Likewise.
844 * arm_destr.c: Likewise.
845 * arm_init.c: Likewise.
846 * arm_symbol.c: Likewise.
847 * i386_corenote.c: Likewise.
848 * i386_destr.c: Likewise.
849 * i386_init.c: Likewise.
850 * i386_symbol.c: Likewise.
851 * ia64_destr.c: Likewise.
852 * ia64_init.c: Likewise.
853 * ia64_symbol.c: Likewise.
854 * mips_destr.c: Likewise.
855 * mips_init.c: Likewise.
856 * mips_symbol.c: Likewise.
857 * ppc64_destr.c: Likewise.
858 * ppc64_init.c: Likewise.
859 * ppc64_symbol.c: Likewise.
860 * ppc_destr.c: Likewise.
861 * ppc_init.c: Likewise.
862 * ppc_symbol.c: Likewise.
863 * sh_destr.c: Likewise.
864 * sh_init.c: Likewise.
865 * sh_symbol.c: Likewise.
866 * sparc_destr.c: Likewise.
867 * sparc_init.c: Likewise.
868 * sparc_symbol.c: Likewise.
869 * x86_64_destr.c: Likewise.
870 * x86_64_init.c: Likewise.
871 * x86_64_symbol.c: Likewise.
872
873 * x86_64_symbol.c (reloc_map_table): Fix entries for R_X86_64_64
874 and R_X86_64_32..
875
8762005-02-06 Ulrich Drepper <drepper@redhat.com>
877
878 * eblstrtab.c: A few cleanups.
879
880 * eblopenbackend.c: Mark unused parameters.
881
882 * eblgstrtab.c: Cleanups a few printf format strings.
883
884 * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
885
8862005-02-05 Ulrich Drepper <drepper@redhat.com>
887
888 * Makefile.am: Check for text relocations in constructed DSOs.
889
890 * eblstrtab.c: Minor cleanups.
891
892 * Makefile.am (AM_CFLAGS): Add -std=gnu99 and -fmudflap for MUDFLAP.
893
8942004-08-16 Ulrich Drepper <drepper@redhat.com>
895
896 * Makefile.am (AM_CFLAGS): Add LIBSTR definition with base name of
897 the lib directory.
898 * eblopenbackend.c (openbackend): Use LIBSTR instead of hardcoded
899 lib in path to ebl modules.
900
9012004-04-01 Ulrich Drepper <drepper@redhat.com>
902
903 * Makefile.am: Add rules for ppc and ppc64 ebl module.
904 * ppc_init..c: New file.
905 * ppc_destr.c: New file.
906 * ppc_symbol.c: New file.
907 * libebl_ppc.h: New file.
908 * libebl_ppc.map: New file.
909 * ppc64_init..c: New file.
910 * ppc64_destr.c: New file.
911 * ppc64_symbol.c: New file.
912 * libebl_ppc64.h: New file.
913 * libebl_ppc64.map: New file.
914
9152004-01-20 Ulrich Drepper <drepper@redhat.com>
916
917 * Makefile.am: Support building with mudflap.
918
9192004-01-18 Ulrich Drepper <drepper@redhat.com>
920
921 * libeblP.h (_): Use elfutils domain.
922
9232004-01-16 Ulrich Drepper <drepper@redhat.com>
924
925 * eblsectionname.c: Add support for SHN_BEFORE and SHN_AFTER.
926
9272004-01-13 Ulrich Drepper <drepper@redhat.com>
928
929 * eblsegmenttypename.c ((ebl_segment_type_name): Add support for
930 PT_GNU_RELRO.
931
9322004-01-08 Ulrich Drepper <drepper@redhat.com>
933
934 * libebl.h: Remove last traces of libtool.
935
9362004-01-05 Ulrich Drepper <drepper@redhat.com>
937
938 * elf-knowledge.h: Move to libelf subdir.
939
940 * Makefile.am (EXTRA_DIST): Remove libebl.map.
941 * libebl.map: Removed.
942
9432003-12-08 Ulrich Drepper <drepper@redhat.com>
944
945 * eblsectiontypename.c (ebl_section_type_name): Add support for
946 SHT_SUNW_move, SHT_CHECKSUM, and SHT_GNU_LIBLIST.
947
9482003-11-19 Ulrich Drepper <drepper@redhat.com>
949
950 * ia64_symbol.c (ia64_dynamic_tag_name): New function.
951 * libebl_ia64.h (ia64_dynamic_tag_name): Declare.
952 * ia64_init.c (ia64_init): Register i164_dynamic_tag_name.
953
9542003-09-24 Ulrich Drepper <drepper@redhat.com>
955
956 * ia64_init.c (ia64_init): Initialize segment_type_name callback.
957 * ia64_symbol.c (ia64_segment_type_name): Define.
958 * libebl_ia64.h (ia64_segment_type_name): Declare.
959
9602003-09-22 Ulrich Drepper <drepper@redhat.com>
961
962 * Makefile.am (AM_CFLAGS): Add -fpic.
963
9642003-08-14 Ulrich Drepper <drepper@redhat.com>
965
966 * Makefile.am (install): Remove dependency on libebl.so.
967
9682003-08-13 Ulrich Drepper <drepper@redhat.com>
969
970 * eblopenbackend.c: Adjust relative path to arch-specific DSOs
971 assuming the code ends up in the application. Add second dlopen()
972 try without any path, just the filename.
973 * Makefile.in: Remove rules to build and install libebl.so.
974
9752003-08-11 Ulrich Drepper <drepper@redhat.com>
976
977 * Moved to CVS archive.