blob: eed4481e1d278f9618c831269d8b173bc4979688 [file] [log] [blame]
Jan Kratochvil1c1a53b2013-11-14 20:55:41 +010012013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup: Remove const in prototype
4 * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
5
Jan Kratochvil0b867462013-05-30 14:37:38 +020062013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7 Mark Wielaard <mjw@redhat.com>
8
9 * Makefile.am (gen_SOURCES): Add eblinitreg.c.
10 * ebl-hooks.h (set_initial_registers_tid): New entry.
11 * eblinitreg.c: New file.
12 * libebl.h (ebl_tid_registers_t): New definition.
13 (ebl_set_initial_registers_tid, ebl_frame_nregs): New declarations.
14 * libeblP.h (struct ebl): New entry frame_nregs.
15
Mark Wielaard3dec3e12013-10-06 17:04:07 +0200162013-10-06 Mark Wielaard <mjw@redhat.com>
17
18 * libebl.h (ebl_abi_cfi): Document restrictions using register
19 rules.
20
Petr Machatab43bcfe2013-09-26 00:38:37 +0200212013-09-26 Petr Machata <pmachata@redhat.com>
22
23 * eblcorenotetypename.c: Handle NT_ARM_TLS, NT_ARM_HW_BREAK,
24 NT_ARM_HW_WATCH, NT_SIGINFO, NT_FILE.
25
Mark Wielaard2cfec292013-09-25 13:02:53 +0200262013-09-25 Mark Wielaard <mjw@redhat.com>
27
28 * eblsectionstripp.c (ebl_section_strip_p): Check shdr_l is not NULL.
29
Mark Wielaardcdaaf212013-04-25 16:50:11 -0400302013-04-24 Mark Wielaard <mjw@redhat.com>
31
32 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
33
Jan Kratochvil0631d1f2012-10-12 20:43:21 +0200342012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
35
36 * ebl-hooks.h (abi_cfi): Extend its comment for return value.
37 * eblopenbackend.c (default_abi_cfi): Return -1.
38 * libebl.h (ebl_abi_cfi): Extend its comment for return value.
39
Petr Machata96896012012-08-30 16:01:02 +0200402012-08-30 Petr Machata <pmachata@redhat.com>
41
42 * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
43 S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
44 S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
45
Jeff Kenton257dcf42012-08-22 09:00:03 -0400462012-08-22 Jeff Kenton <jkenton@tilera.com>
47
48 * eblopenbackend.c (machines): Add tilegx.
49
Mark Wielaarda0172d72012-06-25 17:18:53 +0200502011-06-26 Mark Wielaard <mjw@redhat.com>
51
52 * eblopenbackend.c (default_debugscn_p): Add .debug_macro.
53
Mark Wielaardbb9d1b42011-04-24 17:53:38 +0200542011-04-26 Mark Wielaard <mjw@redhat.com>
55
56 * libebl.h (ebl_object_note_type_name): Add const char *name arg.
57 * eblhooks.h (object_note_type_name): Likewise.
58 * eblopenbackend.c (default_object_note_type_name): Likewise.
59 * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
60 And print version if name is "stapsdt".
61 * eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
62
Marek Polacekcde0b272011-03-21 23:46:56 +0100632011-03-21 Marek Polacek <mpolacek@redhat.com>
64
65 * ebldynamictagname.c: Fix typo in TLSDESC_GOT.
66
Mark Wielaarda062b6b2011-03-10 13:02:32 +0100672011-03-10 Mark Wielaard <mjw@redhat.com>
68
69 * Makefile.am (gen_SOURCES): Add eblstother.c.
70 * eblstother.c: New file.
71 * ebl-hooks.h: Add check_st_other_bits hook.
72 * eblopenbackend.c (default_check_st_other_bits): New function.
73 (fill_defaults): Hook default_check_st_other_bits.
74 * libebl.h (ebl_check_st_other_bits): New prototype.
75
Roland McGrath804e9ca2010-07-07 16:06:12 -0700762010-07-07 Roland McGrath <roland@redhat.com>
77
78 * eblopenbackend.c (default_debugscn_p): Match .gdb_index section.
79
Roland McGrath22359e22010-02-15 15:57:03 -0800802010-02-15 Roland McGrath <roland@redhat.com>
81
82 * Makefile.am: Use config/eu.am for common stuff.
83
Roland McGrath0ccbbcd2010-01-04 21:59:07 -0800842010-01-04 Roland McGrath <roland@redhat.com>
85
86 * eblcorenote.c (ebl_core_note): Take GElf_Nhdr * and name data
87 pointer instead of only n_type and n_descsz.
88 * libebl.h: Update declaration.
89 * ebl-hooks.h: Update core_note hook signature.
90 * eblopenbackend.c (default_core_note): Likewise.
91
Roland McGrathf80c9072009-10-14 12:35:47 -0700922009-10-14 Roland McGrath <roland@redhat.com>
93
94 * eblobjnote.c (ebl_object_note): Clean up NT_GNU_GOLD_VERSION printing.
95
Roland McGratha14b4eb2009-10-05 11:32:26 -0700962009-10-05 Roland McGrath <roland@redhat.com>
97
98 * eblopenbackend.c (default_debugscn_p): Match .debug_pubtypes and
99 .debug_types too.
100
Petr Machatad3a8b2d2009-09-02 20:46:08 +02001012009-09-02 Petr Machata <pmachata@redhat.com>
102
103 * libebl/eblstrtab.c (morememory): Allocate memory in multiples of
104 pagesize.
105
Petr Machata077a7082009-08-06 18:45:08 +02001062009-08-06 Petr Machata <pmachata@redhat.com>
107
108 * libebl/eblstrtab.c (ebl_strtabfinalize): Only call copystrings
109 if we have any strings to copy.
110
Mark Wielaardbc1b92e2009-07-26 08:33:18 -07001112009-07-26 Mark Wielaard <mjw@redhat.com>
112
Mark Wielaard2f5b79e2009-07-26 14:49:26 -0700113 * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
114
Mark Wielaardbc1b92e2009-07-26 08:33:18 -0700115 * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
116 NT_GNU_GOLD_VERSION.
117
Roland McGrath3c84db32009-06-24 17:41:40 -07001182009-07-08 Roland McGrath <roland@redhat.com>
119
120 * ebl-hooks.h: Add abi_cfi hook.
121 * eblopenbackend.c (default_abi_cfi): New function.
122 (fill_defaults): Add initializer.
123 * eblabicfi.c: New file.
124 * Makefile.am (gen_SOURCES): Add it.
125 * libebl.h: Declare ebl_abi_cfi.
126
Ulrich Drepper70c442c2009-07-08 00:53:24 -07001272009-07-08 Ulrich Drepper <drepper@redhat.com>
128
129 * eblsymbolbindingname.c (ebl_symbol_binding_name): Handle
130 STB_GNU_UNIQUE.
131
132 * eblsymboltypename.c (ebl_symbol_type_name): Only handle STT_GNU_IFUNC
133 if the binary is marked as being for Linux.
134
Roland McGrathd5ff6672009-04-01 18:28:41 -07001352009-04-01 Roland McGrath <roland@redhat.com>
136
137 * eblsymboltypename.c (ebl_symbol_type_name): Add STT_GNU_IFUNC.
138
139 * eblauxvinfo.c (AUXV_TYPES): Add RANDOM and BASE_PLATFORM.
140
Ulrich Drepper95fa15e2009-02-01 19:06:10 -08001412009-02-01 Ulrich Drepper <drepper@redhat.com>
142
143 * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>"
144 instead of "???" for invalid relocations.
145
Roland McGratha845f682008-12-03 03:41:58 +00001462008-08-01 Roland McGrath <roland@redhat.com>
147
148 * eblcorenotetypename.c: Handle NT_386_IOPERM.
149
Roland McGrath1d8bb252008-08-07 08:39:41 +00001502008-07-28 Roland McGrath <roland@redhat.com>
151
152 * eblauxvinfo.c (AUXV_TYPES): Add EXECFN.
153
154 * eblauxvinfo.c (ebl_auxv_info): Handle missing elements of standard
155 table.
156
1572008-07-04 Roland McGrath <roland@redhat.com>
158
159 * libebl.h: Declare ebl_syscall_abi.
160 * ebl_syscall_abi.c: New file.
161 * Makefile.am (gen_SOURCES): Add it.
162 * ebl-hooks.h: New hook syscall_abi.
163 * eblopenbackend.c (default_syscall_abi): New function.
164 (fill_defaults): Use it.
165
Roland McGrath13b69602008-04-01 02:30:05 +00001662008-03-31 Roland McGrath <roland@redhat.com>
167
168 * ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
169
170 * ebl-hooks.h: Add check_special_section hook.
171 * eblopenbackend.c (fill_defaults): Set new hook to ...
172 (default_check_special_section): ... this, new function.
173 * ebl_check_special_section.c: New file.
174 * Makefile.am (gen_SOURCES): Add it.
175 * libebl.h: Declare it.
176
Roland McGrath059c83e2008-02-21 06:19:39 +00001772008-02-20 Roland McGrath <roland@redhat.com>
178
179 * libebl.h: Declare ebl_check_object_attribute.
180 * eblcheckobjattr.c: New file.
181 * Makefile.am (gen_SOURCES): Add it.
182 * ebl-hooks.h: Add check_object_attribute hook.
183 * eblopenbackend.c (default_check_object_attribute): New function.
184 (fill_defaults): Initialize pointer to it.
185
1862008-02-19 Roland McGrath <roland@redhat.com>
187
188 * eblsectiontypename.c (ebl_section_type_name):
189 Handle SHT_GNU_ATTRIBUTES.
190
1912008-02-08 Roland McGrath <roland@redhat.com>
192
193 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_SPE.
194
1952008-01-30 Roland McGrath <roland@redhat.com>
196
197 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_386_TLS.
198
Roland McGrathe4c22ea2007-10-23 13:07:39 +00001992007-10-18 Roland McGrath <roland@redhat.com>
200
201 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX.
202
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00002032007-10-11 Roland McGrath <roland@redhat.com>
204
205 * eblobjnote.c (ebl_object_note): Translate target format (byte-swap)
206 for NT_GNU_ABI_TAG contents.
207
Roland McGrathcb6d8652007-08-23 08:10:54 +00002082007-08-22 Roland McGrath <roland@redhat.com>
209
210 * libebl.h (Ebl_Core_Item): New member `group'.
211
2122007-08-19 Roland McGrath <roland@redhat.com>
213
214 * ebl-hooks.h: Add new hook auxv_info.
215 * eblopenbackend.c (default_auxv_info): New function.
216 (fill_defaults): Initialize auxv_info hook.
217 * eblauxvinfo.c : New file.
218 * Makefile.am (gen_SOURCES): Add it.
219 * libebl.h: Declare ebl_auxv_info.
220
221 * eblcorenote.c: Rewritten with new signature.
222 * Makefile.am (gen_SOURCES): Add it.
223 * libebl.h (Ebl_Register_Location, Ebl_Core_Item): New types.
224 (ebl_core_note_info): Completely revamp signature.
225 * ebl-hooks.h: Update decl.
226 * eblopenbackend.c (default_core_note): Update signature.
227
Roland McGrath87d47802007-07-16 22:23:37 +00002282007-07-09 Roland McGrath <roland@redhat.com>
229
230 * eblobjnotetypename.c (ebl_object_note_type_name): Handle
231 NT_GNU_HWCAP, NT_GNU_BUILD_ID.
232
233 * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
234
Roland McGrath4be15242007-04-25 03:09:33 +00002352007-04-22 Roland McGrath <roland@redhat.com>
236
237 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
238
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00002392007-03-10 Roland McGrath <roland@redhat.com>
240
241 * eblcorenote.c (ebl_core_note): For normally-zero types,
242 print in hex if not zero.
243
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00002442007-01-11 Roland McGrath <roland@redhat.com>
245
246 * ebl-hooks.h (machine_section_flag_check): New hook.
247 * libebl.h: Declare ebl_machine_section_flag_check.
248 * eblmachinesectionflagcheck.c: New file.
249 * Makefile.am (gen_SOURCES): Add it.
250 * eblopenbackend.c (default_machine_section_flag_check): New function.
251 (fill_defaults): Use it.
252
Roland McGrathc373d852006-10-10 00:25:21 +00002532006-09-04 Roland McGrath <roland@redhat.com>
254
255 * ebl-hooks.h: Replace register_name hook with register_info.
256 Also yield natural bit width and base type encoding.
257 * eblopenbackend.c (default_register_name): Renamed
258 default_register_info, new args added.
259 (fill_defaults): Update initialization.
260 * eblregname.c: File renamed ...
261 * eblreginfo.c: ... to this.
262 (ebl_register_name): Renamed to ebl_register_info, new args added.
263 * libebl.h: Update decl.
264
265 * Makefile.am (gen_SOURCES): Update list.
266
Ulrich Drepper28ed8952006-07-07 03:43:47 +00002672006-07-06 Ulrich Drepper <drepper@redhat.com>
268
269 * ebldynamictagname.c: Add support for DT_GNU_HASH.
270 * ebldynamictagcheck.c: Likewise.
271 * eblsectiontypename.c: Add support for SHT_GNU_HASH.
272
2732006-07-05 Ulrich Drepper <drepper@redhat.com>
274
275 * Makefile.am (gen_SOURCES): Add eblsysvhashentrysize.c.
276 * libeblP.h (struct ebl): Add sysvhash_entrysize element.
277 * eblopenbackend.c (fill_defaults): Initialize sysvhash_entrysize.
278
279 * eblopenbackend.c (openbackend): If possible, fill machine, class,
280 and data values in from the ELF file.
281
2822006-07-04 Ulrich Drepper <drepper@redhat.com>
283
284 * Makefile.am (gen_SOURCES): Add eblrelativerelocp.c.
285 * eblrelativerelocp.c: New file.
286 * ebl-hooks.c: Add relative_reloc_p.
287 * eblopenbackend.c (default_relative_reloc_p): New function.
288 (fill_defaults): Hook it up.
289 * libebl.h: Declare ebl_relative_reloc_p.
290
Ulrich Drepper6ca46002006-06-12 22:40:23 +00002912006-06-12 Ulrich Drepper <drepper@redhat.com>
292
293 * Makefile.am (gen_SOURCES): Add eblnonerelocp.c.
294 * eblnonerelocp.c: New file.
295 * ebl-hooks.c: Add none_reloc_p.
296 * eblopenbackend.c (default_none_reloc_p): New function.
297 (fill_defaults): Hook it up.
298 * libebl.h: Declare ebl_none_reloc_p.
299
Ulrich Drepper41cbd762006-05-27 18:19:23 +00003002006-05-27 Ulrich Drepper <drepper@redhat.com>
301
302 * libebl.h: Add extern "C".
303
Roland McGrath994b4892005-12-05 22:46:21 +00003042005-11-25 Roland McGrath <roland@redhat.com>
305
306 * eblregname.c: New file.
307 * Makefile.am (gen_SOURCES): Add it.
308 * ebl-hooks.h: Declare register_name hook.
309 * libebl.h: Declare ebl_register_name.
310 * eblopenbackend.c (default_register_name): New function.
311 (fill_defaults): Use it.
312
Roland McGrath215c6322005-11-16 22:46:04 +00003132005-11-16 Roland McGrath <roland@redhat.com>
314
315 * libebl.h: Use "" for elf-knowledge.h, not <>.
316
Roland McGrathe47ab762005-11-17 03:16:00 +00003172005-11-15 Roland McGrath <roland@redhat.com>
318
319 * Makefile.am: Removed everything for building libebl_*.so modules,
320 now in ../backends/Makefile.am instead.
321 * alpha_init.c: Moved to ../backends.
322 * alpha_reloc.def: Likewise.
323 * alpha_retval.c: Likewise.
324 * alpha_symbol.c: Likewise.
325 * arm_init.c: Likewise.
326 * arm_reloc.def: Likewise.
327 * arm_symbol.c: Likewise.
328 * common-reloc.c: Likewise.
329 * i386_corenote.c: Likewise.
330 * i386_init.c: Likewise.
331 * i386_reloc.def: Likewise.
332 * i386_retval.c: Likewise.
333 * i386_symbol.c: Likewise.
334 * ia64_init.c: Likewise.
335 * ia64_reloc.def: Likewise.
336 * ia64_symbol.c: Likewise.
337 * libebl_CPU.h: Likewise.
338 * ppc64_init.c: Likewise.
339 * ppc64_reloc.def: Likewise.
340 * ppc64_retval.c: Likewise.
341 * ppc64_symbol.c: Likewise.
342 * ppc_init.c: Likewise.
343 * ppc_reloc.def: Likewise.
344 * ppc_retval.c: Likewise.
345 * ppc_symbol.c: Likewise.
346 * s390_init.c: Likewise.
347 * s390_reloc.def: Likewise.
348 * s390_symbol.c: Likewise.
349 * sh_init.c: Likewise.
350 * sh_reloc.def: Likewise.
351 * sh_symbol.c: Likewise.
352 * sparc_init.c: Likewise.
353 * sparc_reloc.def: Likewise.
354 * sparc_symbol.c: Likewise.
355 * x86_64_corenote.c: Likewise.
356 * x86_64_init.c: Likewise.
357 * x86_64_reloc.def: Likewise.
358 * x86_64_retval.c: Likewise.
359 * x86_64_symbol.c: Likewise.
360
361 * libebl.h: Comment fixes.
362
363 * alpha_retval.c: New file.
364 * Makefile.am (alpha_SRCS): Add it.
365 * alpha_init.c (alpha_init): Initialize return_value_location hook.
366
367 * ppc64_retval.c: New file.
368 * Makefile.am (ppc64_SRCS): Add it.
369 * ppc64_init.c (ppc64_init): Initialize return_value_location hook.
370
371 * ppc_retval.c: New file.
372 * Makefile.am (ppc_SRCS): Add it.
373 * ppc_init.c (ppc_init): Initialize return_value_location hook.
374
Roland McGrathcd60ea82005-11-16 01:57:40 +00003752005-11-14 Roland McGrath <roland@redhat.com>
376
377 * ia64_init.c (ia64_init): Initialize EH->reloc_simple_type.
378 * sh_init.c (sh_init): Likewise.
379 * x86_64_init.c (x86_64_init): Likewise.
380
381 * sparc_symbol.c (sparc_reloc_simple_type): New function.
382 * sparc_init.c (sparc_init): Use it.
383
384 * arm_symbol.c (arm_reloc_simple_type): New function.
385 * arm_init.c (arm_init): Use it.
386
387 * alpha_symbol.c (alpha_reloc_simple_type): New function.
388 * alpha_init.c (alpha_init): Use it.
389
390 * ia64_reloc.def: Update bits per H. J. Lu <hjl@lucon.org>.
391
392 * arm_reloc.def: Update bits per Daniel Jacobowitz <drow@false.org>.
393
394 * alpha_reloc.def: Update bits per Richard Henderson <rth@redhat.com>.
395
Roland McGrathe47ab762005-11-17 03:16:00 +00003962005-11-13 Roland McGrath <roland@redhat.com>
397
398 * x86_64_retval.c: New file.
399 * Makefile.am (x86_64_SRCS): Add it.
400 * x86_64_init.c (x86_64_init): Use x86_64_return_value_location.
401
402 * i386_retval.c: New file.
403 * Makefile.am (i386_SRCS): Add it.
404 (libdw): New variable.
405 (libebl_%.so): Use $(libdw) in link; use --as-needed.
406 * i386_init.c (i386_init): Use i386_return_value_location.
407
408 * eblretval.c: New file.
409 * Makefile.am (gen_SOURCES): Add it.
410 (INCLUDES): Search in libdw.
411 * libebl.h: Include <libdw.h>. Declare ebl_return_value_location.
412 * ebl-hooks.h: Declare return_value_location hook.
413 * eblopenbackend.c (default_return_value_location): New function.
414 (fill_defaults): Use it.
415
Roland McGrathcd60ea82005-11-16 01:57:40 +00004162005-11-10 Roland McGrath <roland@redhat.com>
417
418 * s390_init.c: New file.
419 * s390_reloc.def: New file.
420 * s390_symbol.c: New file.
421 * Makefile.am (modules, libebl_pic): Add s390.
422 (s390_SRCS, libebl_s390_pic_a_SOURCES): New variables.
423 (am_libebl_s390_pic_a_OBJECTS): New variable.
424
425 * ppc64_init.c: Use common-reloc.c.
426 * ppc64_symbol.c (ppc64_backend_name): Removed.
427 (ppc64_reloc_type_check, ppc64_reloc_type_name): Likewise.
428 (ppc64_copy_reloc_p, ppc64_reloc_valid_use): Likewise.
429
430 * ppc_init.c: Use common-reloc.c.
431 * ppc_symbol.c (ppc_backend_name): Removed.
432 (ppc_reloc_type_name, ppc_reloc_type_check): Likewise.
433 (ppc_reloc_valid_use, ppc_copy_reloc_p): Likewise.
434
435 * sparc_init.c: Use common-reloc.c.
436 * sparc_symbol.c (sparc_backend_name): Removed.
437 (sparc_reloc_type_name, sparc_reloc_type_check): Likewise.
438 (sparc_copy_reloc_p): Likewise.
439
440 * arm_init.c: Use common-reloc.c.
441 * arm_symbol.c (arm_backend_name): Removed.
442 (arm_reloc_type_name, arm_reloc_type_check, arm_copy_reloc_p): Removed.
443
444 * alpha_init.c: Use common-reloc.c.
445 * alpha_symbol.c (alpha_backend_name): Removed.
446 (alpha_reloc_type_name, alpha_reloc_type_check): Likewise.
447 (alpha_copy_reloc_p): Likewise.
448
449 * ia64_symbol.c (ia64_backend_name): Removed.
450 (ia64_reloc_type_name, ia64_reloc_type_check): Likewise.
451 (ia64_copy_reloc_p): Likewise.
452
453 * x86_64_init.c: Use common-reloc.c.
454 * x86_64_symbol.c (x86_64_backend_name): Removed.
455 (x86_64_copy_reloc_p, x86_64_reloc_valid_use): Likewise.
456 (x86_64_reloc_type_check, x86_64_reloc_type_name): Likewise.
457
458 * sh_init.c: Use common-reloc.c.
459 * sh_symbol.c: All functions removed.
460 (sh_reloc_simple_type): New function.
461 (sh_gotpc_reloc_check): New function.
462
463 * common-reloc.c: New file.
464 * Makefile.am (noinst_HEADERS): Add it.
465 * i386_init.c: Include it.
466
467 * sh_reloc.def: New file.
468 * i386_reloc.def: New file.
469 * alpha_reloc.def: New file.
470 * arm_reloc.def: New file.
471 * i386_reloc.def: New file.
472 * ia64_reloc.def: New file.
473 * ppc64_reloc.def: New file.
474 * ppc_reloc.def: New file.
475 * sh_reloc.def: New file.
476 * sparc_reloc.def: New file.
477 * x86_64_reloc.def: New file.
478 * Makefile.am (EXTRA_DIST): Add $(modules:=_reloc.def).
479
480 * libebl_alpha.map: Removed.
481 * libebl_ia64.map: Removed.
482 * libebl_ppc.map: Removed.
483 * libebl_sparc.map: Removed.
484 * libebl_arm.map: Removed.
485 * libebl_i386.map: Removed.
486 * libebl_ppc64.map: Removed.
487 * libebl_sh.map: Removed.
488 * libebl_x86_64.map: Removed.
489 * Makefile.am (EXTRA_DIST): Remove them.
490 (libebl_%.map, libebl_%.so): New pattern rules.
491
492 * libebl_alpha.h: Removed.
493 * libebl_ia64.h: Removed.
494 * libebl_ppc.h: Removed.
495 * libebl_sparc.h: Removed.
496 * libebl_arm.h: Removed.
497 * libebl_i386.h: Removed.
498 * libebl_ppc64.h: Removed.
499 * libebl_sh.h: Removed.
500 * libebl_x86_64.h: Removed.
501 * Makefile.am (noinst_HEADERS): Remove them.
502
503 * x86_64_corenote.c: Use libebl_CPU.h instead.
504 * x86_64_symbol.c: Likewise.
505 * i386_corenote.c: Likewise.
506
5072005-11-09 Roland McGrath <roland@redhat.com>
508
509 * ia64_symbol.c (ia64_reloc_simple_type): New function.
510
511 * ebl-hooks.h (reloc_simple_type): Take the Ebl handle, not Elf handle.
512 * eblrelocsimpletype.c (ebl_reloc_simple_type): Update caller.
513 * eblopenbackend.c (default_reloc_simple_type): Update signature.
514 * i386_symbol.c (i386_reloc_simple_type): Likewise.
515 * ppc64_symbol.c (ppc64_reloc_simple_type): Likewise.
516 * ppc_symbol.c (ppc_reloc_simple_type): Likewise.
517 * x86_64_symbol.c (x86_64_reloc_simple_type): Likewise.
518
519 * i386_symbol.c (i386_backend_name): Removed.
520 (i386_reloc_type_name, i386_reloc_type_check): Likewise.
521 (i386_reloc_valid_use): Removed.
522 (i386_copy_reloc_p): Removed.
523
524 * alpha_destr.c: Removed.
525 * arm_destr.c: Removed.
526 * i386_destr.c: Removed.
527 * ia64_destr.c: Removed.
528 * ppc64_destr.c: Removed.
529 * ppc_destr.c: Removed.
530 * sh_destr.c: Removed.
531 * sparc_destr.c: Removed.
532 * x86_64_destr.c: Removed.
533
534 * ebl-hooks.h: New file, broken out of ...
535 * libeblP.h (struct ebl): ... here. #include that for hook
536 declarations, after defining EBLHOOK macro.
537 * libebl_CPU.h: New file.
538 * Makefile.am (noinst_HEADERS): Add them.
539
540 * libeblP.h (struct ebl): Use uint_fast16_t for machine,
541 and uint_fast8_t for class and data.
542
5432005-08-14 Roland McGrath <roland@redhat.com>
544
545 * ia64_symbol.c (ia64_section_type_name): New function.
546 (ia64_dynamic_tag_check): New function.
547 (ia64_reloc_valid_use): New function.
548 * libebl_ia64.h: Declare them.
549 * ia64_init.c (ia64_init): Use them.
550 * Makefile.am (libebl_ia64.so): Link with libelf.
551
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00005522005-08-28 Ulrich Drepper <drepper@redhat.com>
553
554 * Makefile.am: Use $(LINK) not $(CC) when creating DSOs.
555
Roland McGrathe53d04a2005-08-13 20:56:07 +00005562005-08-13 Roland McGrath <roland@redhat.com>
557
558 * ia64_symbol.c (ia64_machine_flag_check): New function.
559 * libebl_ia64.h: Declare it.
560 * ia64_init.c (ia64_init): Use it.
561
Ulrich Drepperc5c33a62005-08-13 17:50:47 +00005622005-08-13 Ulrich Drepper <drepper@redhat.com>
563
564 * libebl.h: Add ehdr parameter to ebl_bss_plt_p and
565 ebl_check_special_symbol.
566 * libeblP.h (struct ebl): Adjust callback functions.
567 * eblopenbackend.c: Adjust dummy functions.
568 * ebl_check_special_symbol.c: Add parameter and pass it on.
569 * eblbsspltp.c: Likewise.
570 * ppc_symbol.c (find_dyn_got): With ehdr passed, simplify search for
571 the dynamic section entry.
572 (ppc_check_special_symbol): Add ehdr parameter.
573 (ppc_bss_plt_p): Likewise.
574 * libebl_ppc.h: Adjust prototypes.
575 * ppc64_symbol.c (ppc_check_special_symbol): Add ehdr parameter.
576 (ppc_bss_plt_p): Likewise.
577 * libebl_ppc64.h: Adjust prototypes.
578
Roland McGrath653d3762005-08-13 01:59:10 +00005792005-08-12 Roland McGrath <roland@redhat.com>
580
Roland McGrathf8873cb2005-08-13 03:26:06 +0000581 * ppc_symbol.c (find_dyn_got): New function, broken out of ...
582 (ppc_bss_plt_p): ... here. Call that.
583 (ppc_check_special_symbol): Use find_dyn_got to fetch value to check
584 against _GLOBAL_OFFSET_TABLE_.
585
Roland McGrath653d3762005-08-13 01:59:10 +0000586 * libeblP.h (struct ebl): Add bss_plt_p hook.
587 * eblopenbackend.c (default_bss_plt_p): New function.
588 (fill_defaults): Use it.
589 * eblbsspltp.c: New file.
590 * Makefile.am (gen_SOURCES): Add it.
591 * libebl.h: Declare ebl_bss_plt_p.
592 * ppc_symbol.c (ppc_bss_plt_p): New function.
593 * libebl_ppc.h: Declare it.
594 * ppc_init.c (ppc_init): Use it.
595 * ppc64_symbol.c (ppc64_bss_plt_p): New function.
596 * libebl_ppc64.h: Declare it.
597 * ppc64_init.c (ppc64_init): Use it.
598
599 * ebl_check_special_symbol.c: New file.
600 * Makefile.am (gen_SOURCES): Add it.
601 * libebl.h: Declare ebl_check_special_symbol.
602 * libeblP.h (struct ebl): Add check_special_symbol hook.
603 * eblopenbackend.c (default_check_special_symbol): New function.
604 (fill_defaults): Use it.
605 * ppc_symbol.c (ppc_check_special_symbol): New function.
606 * libebl_ppc.h: Add prototype.
607 * ppc_init.c (ppc_init): Use it.
608 * ppc64_symbol.c (ppc64_check_special_symbol): New function.
609 * libebl_ppc64.h: Add prototype.
610 * ppc64_init.c (ppc64_init): Use it.
611
Ulrich Drepperb03b0572005-08-07 08:12:22 +00006122005-08-07 Ulrich Drepper <drepper@redhat.com>
613
614 * ppc_init.c: Add support for new DT_PPC_* and R_PPC_* values.
615 * ppc_symbol.c: Likewise.
616 * libebl_ppc.h: Likewise.
617 * ppc64_init.c: There is now also a dynamic_tag_check functions
618 * ppc64_symbol.c: Add dynamic_tag_check.
619 * libebl_ppc64.h: Add prototype.
620 * alpha_init.c: Add support for new DT_ALPHA_* value.
621 * alpha_symbol.c: Likewise.
622 * libebl_alpha.h: Likewise.
623
Ulrich Drepper6fcb3832005-08-03 21:10:49 +00006242005-08-03 Ulrich Drepper <drepper@redhat.com>
625
626 * libebl_alpha.map: Remove unnecessary exports.
627 * libebl_arm.map: Likewise.
628 * libebl_i386.map: Likewise.
629 * libebl_ia64.map: Likewise.
630 * libebl_ppc.map: Likewise.
631 * libebl_ppc64.map: Likewise.
632 * libebl_sh.map: Likewise.
633 * libebl_sparc.map: Likewise.
634 * libebl_x86_64.map: Likewise.
635
Ulrich Dreppera38998e2005-08-03 02:05:39 +00006362005-08-02 Ulrich Drepper <drepper@redhat.com>
637
638 * Makefile.am (libebl_a_SOURCES): Add eblelfclass.c, eblelfdata.c,
639 and eblelfmachine.c.
640 * elbopenbackend.c (machines): Add class and data fields. Initialize
641 them.
642 (ebl_openbackend): Initialize machine, class, data fields in result.
643 * libebl.h: Declare Add eblelfclass, eblelfdata, and eblelfmachine.
644 * libeblP.h (Ebl): Add machine, class, data fields.
645
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006462005-07-23 Ulrich Drepper <drepper@redhat.com>
647
648 * eblsectionstripp.c: New file.
649 * Makefile.am (gen_SOURCES): Add eblsectionstripp.c.
650 * i386_init.c (i386_init): Install specific debugscn_p callback.
651 * i386_symbol.c (i386_debugscn_p): New function.
652 * libebl.h: Declare ebl_section_strip_p.
653 * libebl_i386.h: Declare i386_debugscn_p.
654
655 * libebl.h: Move Ebl definition to...
656 * libeblP.h: ...here.
657
6582005-07-21 Roland McGrath <roland@redhat.com>
659
660 * Makefile.am (install-ebl-modules): New target, commands from ...
661 (install): ... here. Make this depend on it.
662 (LIBEBL_SUBDIR): New variable, substituted by configure.
663 (install-ebl-modules): Install in $(libdir)/$(LIBEBL_SUBDIR).
664 * eblopenbackend.c (openbackend): Use LIBEBL_SUBDIR in module name.
665
6662005-07-21 Ulrich Drepper <drepper@redhat.com>
667
668 * eblcopyrelocp.c: New file.
669 * Makefile.am (gen_SOURCES): Add eblcopyrelocp.c.
670 * libebl.h: Declare ebl_copy_reloc_p.
671 * eblopenbackend.c (fill_defaults): Fill in copy_reloc_p.
672 (default_copy_reloc_p): New function.
673 * alpha_init.c: Define and use arch-specific copy_reloc_p function.
674 * alpha_symbol.c: Likewise.
675 * arm_init.c: Likewise.
676 * arm_symbol.c: Likewise.
677 * i386_init.c: Likewise.
678 * i386_symbol.c: Likewise.
679 * ia64_init.c: Likewise.
680 * ia64_symbol.c: Likewise.
681 * ppc64_init.c: Likewise.
682 * ppc64_symbol.c: Likewise.
683 * ppc_init.c: Likewise.
684 * ppc_symbol.c: Likewise.
685 * sh_init.c: Likewise.
686 * sh_symbol.c: Likewise.
687 * sparc_init.c: Likewise.
688 * sparc_symbol.c: Likewise.
689 * x86_64_init.c: Likewise.
690 * x86_64_symbol.c: Likewise.
691 * libebl_alpha.h: Declare the copy_reloc_p function.
692 * libebl_arm.h: Likewise.
693 * libebl_i386.h: Likewise.
694 * libebl_ia64.h: Likewise.
695 * libebl_ppc.h: Likewise.
696 * libebl_ppc64.h: Likewise.
697 * libebl_sh.h: Likewise.
698 * libebl_sparc.h: Likewise.
699 * libebl_x86_64.h: Likewise.
700
7012005-05-31 Roland McGrath <roland@redhat.com>
702
703 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
704 tracking works right.
705
7062005-05-21 Ulrich Drepper <drepper@redhat.com>
707
708 * libebl_x86_64.map: Add x86_64_core_note.
709
7102005-05-19 Roland McGrath <roland@redhat.com>
711
712 * libebl_i386.map: Add i386_reloc_valid_use, i386_reloc_simple_type.
713 * libebl_ppc.map: Add ppc_reloc_simple_type.
714 * libebl_ppc64.map: Add ppc64_reloc_simple_type.
715 * libebl_x86_64.map: Add x86_64_reloc_simple_type.
716
7172005-05-11 Ulrich Drepper <drepper@redhat.com>
718
719 * eblcorenote.c: Handle new AT_* values and files with different
720 endianess.
721 * Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
722 * x86-64_corenote.c: New file.
723 * x86_64_init.c: Hook in x86_64_corenote.
724 * i386_corenote.c: Make file usable on 64-bit platforms.
725
726 * eblopenbackend.c: If modules version comparison fails, reinitialize
727 hooks.
728
7292005-05-10 Ulrich Drepper <drepper@redhat.com>
730
731 * eblopenbackend.c: Require the init function to return a string.
732 Compare it with MODVERSION from config.h.
733 * alpha_init.c: Change return type. Return MODVERSION or NULL.
734 * arm_init.c: Likewise.
735 * eblopenbackend.c: Likewise.
736 * i386_init.c: Likewise.
737 * ia64_init.c: Likewise.
738 * ppc64_init.c: Likewise.
739 * ppc_init.c: Likewise.
740 * sh_init.c: Likewise.
741 * sparc_init.c: Likewise.
742 * x86_64_init.c: Likewise.
743 * libeblP.h: Adjust ebl_bhinit_t.
744 * libebl_alpha.h: Adjust init function prototype.
745 * libebl_arm.h: Likewise.
746 * libebl_i386.h: Likewise.
747 * libebl_ia64.h: Likewise.
748 * libebl_ppc.h: Likewise.
749 * libebl_ppc64.h: Likewise.
750 * libebl_sh.h: Likewise.
751 * libebl_sparc.h: Likewise.
752 * libebl_x86_64.h: Likewise.
753
754 * mips_destr.c: Removed.
755 * mips_init.c: Removed.
756 * mips_symbol.c: Removed.
757 * libebl_mips.h: Removed.
758 * libebl_mips.map: Removed.
759
7602005-05-03 Roland McGrath <roland@redhat.com>
761
762 * libebl.h (Ebl): Add `reloc_simple_type' member.
763 * eblopenbackend.c (default_reloc_simple_type): New function.
764 (openbackend): Use that as default reloc_simple_type callback.
765 * eblrelocsimpletype.c: New file.
766 * Makefile.am (gen_SOURCES): Add it.
767 * i386_symbol.c (i386_reloc_simple_type): New function.
768 * libebl_i386.h: Declare it.
769 * i386_init.c (i386_init): Use it.
770 * x86_64_symbol.c (x86_64_reloc_simple_type): New function.
771 * libebl_x86_64.h: Declare it.
772 * x86_64_init.c (x86_64_init): Use it.
773 * ppc_symbol.c (ppc_reloc_simple_type): New function.
774 * libebl_ppc.h: Declare it.
775 * ppc_init.c (ppc_init): Use it.
776 * ppc64_symbol.c (ppc64_reloc_simple_type): New function.
777 * libebl_ppc64.h: Declare it.
778 * ppc64_init.c (ppc64_init): Use it.
779
7802005-03-17 Ulrich Drepper <drepper@redhat.com>
781
782 * eblcorenote.c (ebl_core_note): Add support for AT_SECURE.
783
7842005-02-15 Ulrich Drepper <drepper@redhat.com>
785
786 * Makefile.am (AM_CFLAGS): Add -Wformat=2.
787
7882005-02-14 Ulrich Drepper <drepper@redhat.com>
789
790 * alpha_destr.c: Add __attribute__((unused)) where needed.
791 * alpha_init.c: Likewise.
792 * alpha_symbol.c: Likewise.
793 * arm_destr.c: Likewise.
794 * arm_init.c: Likewise.
795 * arm_symbol.c: Likewise.
796 * i386_corenote.c: Likewise.
797 * i386_destr.c: Likewise.
798 * i386_init.c: Likewise.
799 * i386_symbol.c: Likewise.
800 * ia64_destr.c: Likewise.
801 * ia64_init.c: Likewise.
802 * ia64_symbol.c: Likewise.
803 * mips_destr.c: Likewise.
804 * mips_init.c: Likewise.
805 * mips_symbol.c: Likewise.
806 * ppc64_destr.c: Likewise.
807 * ppc64_init.c: Likewise.
808 * ppc64_symbol.c: Likewise.
809 * ppc_destr.c: Likewise.
810 * ppc_init.c: Likewise.
811 * ppc_symbol.c: Likewise.
812 * sh_destr.c: Likewise.
813 * sh_init.c: Likewise.
814 * sh_symbol.c: Likewise.
815 * sparc_destr.c: Likewise.
816 * sparc_init.c: Likewise.
817 * sparc_symbol.c: Likewise.
818 * x86_64_destr.c: Likewise.
819 * x86_64_init.c: Likewise.
820 * x86_64_symbol.c: Likewise.
821
822 * x86_64_symbol.c (reloc_map_table): Fix entries for R_X86_64_64
823 and R_X86_64_32..
824
8252005-02-06 Ulrich Drepper <drepper@redhat.com>
826
827 * eblstrtab.c: A few cleanups.
828
829 * eblopenbackend.c: Mark unused parameters.
830
831 * eblgstrtab.c: Cleanups a few printf format strings.
832
833 * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
834
8352005-02-05 Ulrich Drepper <drepper@redhat.com>
836
837 * Makefile.am: Check for text relocations in constructed DSOs.
838
839 * eblstrtab.c: Minor cleanups.
840
841 * Makefile.am (AM_CFLAGS): Add -std=gnu99 and -fmudflap for MUDFLAP.
842
8432004-08-16 Ulrich Drepper <drepper@redhat.com>
844
845 * Makefile.am (AM_CFLAGS): Add LIBSTR definition with base name of
846 the lib directory.
847 * eblopenbackend.c (openbackend): Use LIBSTR instead of hardcoded
848 lib in path to ebl modules.
849
8502004-04-01 Ulrich Drepper <drepper@redhat.com>
851
852 * Makefile.am: Add rules for ppc and ppc64 ebl module.
853 * ppc_init..c: New file.
854 * ppc_destr.c: New file.
855 * ppc_symbol.c: New file.
856 * libebl_ppc.h: New file.
857 * libebl_ppc.map: New file.
858 * ppc64_init..c: New file.
859 * ppc64_destr.c: New file.
860 * ppc64_symbol.c: New file.
861 * libebl_ppc64.h: New file.
862 * libebl_ppc64.map: New file.
863
8642004-01-20 Ulrich Drepper <drepper@redhat.com>
865
866 * Makefile.am: Support building with mudflap.
867
8682004-01-18 Ulrich Drepper <drepper@redhat.com>
869
870 * libeblP.h (_): Use elfutils domain.
871
8722004-01-16 Ulrich Drepper <drepper@redhat.com>
873
874 * eblsectionname.c: Add support for SHN_BEFORE and SHN_AFTER.
875
8762004-01-13 Ulrich Drepper <drepper@redhat.com>
877
878 * eblsegmenttypename.c ((ebl_segment_type_name): Add support for
879 PT_GNU_RELRO.
880
8812004-01-08 Ulrich Drepper <drepper@redhat.com>
882
883 * libebl.h: Remove last traces of libtool.
884
8852004-01-05 Ulrich Drepper <drepper@redhat.com>
886
887 * elf-knowledge.h: Move to libelf subdir.
888
889 * Makefile.am (EXTRA_DIST): Remove libebl.map.
890 * libebl.map: Removed.
891
8922003-12-08 Ulrich Drepper <drepper@redhat.com>
893
894 * eblsectiontypename.c (ebl_section_type_name): Add support for
895 SHT_SUNW_move, SHT_CHECKSUM, and SHT_GNU_LIBLIST.
896
8972003-11-19 Ulrich Drepper <drepper@redhat.com>
898
899 * ia64_symbol.c (ia64_dynamic_tag_name): New function.
900 * libebl_ia64.h (ia64_dynamic_tag_name): Declare.
901 * ia64_init.c (ia64_init): Register i164_dynamic_tag_name.
902
9032003-09-24 Ulrich Drepper <drepper@redhat.com>
904
905 * ia64_init.c (ia64_init): Initialize segment_type_name callback.
906 * ia64_symbol.c (ia64_segment_type_name): Define.
907 * libebl_ia64.h (ia64_segment_type_name): Declare.
908
9092003-09-22 Ulrich Drepper <drepper@redhat.com>
910
911 * Makefile.am (AM_CFLAGS): Add -fpic.
912
9132003-08-14 Ulrich Drepper <drepper@redhat.com>
914
915 * Makefile.am (install): Remove dependency on libebl.so.
916
9172003-08-13 Ulrich Drepper <drepper@redhat.com>
918
919 * eblopenbackend.c: Adjust relative path to arch-specific DSOs
920 assuming the code ends up in the application. Add second dlopen()
921 try without any path, just the filename.
922 * Makefile.in: Remove rules to build and install libebl.so.
923
9242003-08-11 Ulrich Drepper <drepper@redhat.com>
925
926 * Moved to CVS archive.