Imported Upstream version 0.155
[platform/upstream/elfutils.git] / libelf / ChangeLog
1 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2
3         * elf.h: Update from glibc.
4
5 2012-08-14  Mark Wielaard  <mjw@redhat.com>
6
7         * elf32_checksum.c (ebl_debugscn_p): Removed unused define and
8         confusing outdated comment.
9
10 2012-08-01  Petr Machata  <pmachata@redhat.com>
11
12         * elf_getarsym (read_number_entries): New function.
13         (elf_getarsym): Handle 64-bit symbol table, stored in special
14         entry named "/SYM64/".
15         * elf_begin.c (__libelf_next_arhdr_wrlock): Don't reject archive
16         because it contains 64-bit symbol table.
17
18 2012-07-19  Mark Wielaard  <mjw@redhat.com>
19
20         * elf32_getshdr.c (load_shdr_wrlock): Add elf->flags & ELF_F_MALLOCED
21         to asserts.
22
23 2012-07-17  Petr Machata  <pmachata@redhat.com>
24
25         * elf32_xlatetom.c (elfw2(LIBELFBITS, xlatetom)): Do not check for
26         integer number of records in case of ELF_T_NHDR.
27
28 2012-04-02  Mark Wielaard  <mjw@redhat.com>
29
30         * elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET unless
31         there are no nonempty sections at that offset.
32
33 2012-03-21  Roland McGrath  <roland@hack.frob.com>
34
35         * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check.
36
37 2011-02-26  Mark Wielaard  <mjw@redhat.com>
38
39         * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
40
41 2011-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
42
43         * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Fix off64_t overflow
44         when MAXIMUM_SIZE == ~0.
45
46 2010-08-18  Roland McGrath  <roland@redhat.com>
47
48         * gelf_fsize.c (__libelf_type_sizes): Add entries for ELF_T_LIB
49         and ELF_T_GNUHASH.
50         Reported by Mark Hatle <mark.hatle@windriver.com>.
51
52         * exttypes.h: Add cases for ElfNN_Lib.
53         Reported by Mark Hatle <mark.hatle@windriver.com>.
54
55 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
56
57         * gelf_update_shdr.c: Implicitly set ELF_F_DIRTY bit.
58         * gelf_update_phdr.c: Likewise.
59         * gelf_update_ehdr.c: Likewise.
60
61 2010-04-14  Roland McGrath  <roland@redhat.com>
62
63         * elf32_getphdr.c: Check for e_phoff/size outside the file bounds.
64         * elf_begin.c (file_read_elf): Don't set .phdr here.
65
66 2010-04-13  Roland McGrath  <roland@redhat.com>
67
68         * elf.h: Update from glibc.
69
70 2010-04-06  Roland McGrath  <roland@redhat.com>
71
72         * elf_error.c (ELF_E_FD_MISMATCH_IDX): Avoid nonobvious abbreviation
73         in error message.
74
75 2010-04-01  Petr Machata  <pmachata@redhat.com>
76
77         * elf_getdata.c (__elf_getdata_rdlock): Initialize data.s for data
78         that do not need a conversion.
79
80 2010-03-11  Roland McGrath  <roland@redhat.com>
81
82         * elf.h: Update from glibc.
83
84 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
85
86         * elf.h: Update from glibc.
87
88 2010-02-17  Roland McGrath  <roland@redhat.com>
89
90         * elf_begin.c (file_read_elf): Leave section rawdata_base and
91         data_base pointers null when [sh_offset,sh_size) points outside
92         the mapped file.
93
94 2010-02-15  Roland McGrath  <roland@redhat.com>
95
96         * Makefile.am: Use config/eu.am for common stuff.
97
98 2010-01-07  Roland McGrath  <roland@redhat.com>
99
100         * elf32_getphdr.c: Use __elf_getphdrnum_rdlock.
101         * gelf_getphdr.c: Likewise.
102         * gelf_update_phdr.c: Likewise.
103         * elf32_updatefile.c (__elf32_updatemmap, __elf32_updatefile): Likewise.
104         * elf32_updatenull.c (__elf32_updatenull_wrlock): Likewise.
105         * elf32_newphdr.c: Clear section 0's sh_info when resetting e_phnum.
106         If COUNT is too large, use store PN_XNUM instead and set sh_info.
107         * elf_begin.c (file_read_elf): Always allocate space we can use later
108         for section 0 if doing RDWR.
109
110         * elf_getphdrnum.c: New file.
111         * Makefile.am (libelf_a_SOURCES): Add it.
112         * libelf.h: Declare elf_getphdrnum.
113         * libelfP.h: Declare __elf_getphdrnum_rdlock.
114         * libelf.map (ELFUTILS_1.6): New set, add elf_getphdrnum.
115
116         * elf.h: Update from glibc.
117
118 2009-10-23  Lubomir Rintel  <lkundrak@v3.sk>
119
120         * elf32_updatefile.c (fill_mmap): When starting past shdr_end, start
121         filling from section start, not shdr_end.
122
123 2009-11-10  Roland McGrath  <roland@redhat.com>
124
125         * elf_readall.c (__libelf_readall): Fetch file size if not yet known.
126
127 2009-11-06  Mark Wielaard  <mjw@redhat.com>
128
129         * elf_next.c (elf_next): Mark the archive header as unusable when
130         there is no next ar element.
131
132 2009-08-12  Mark Wielaard  <mjw@redhat.com>
133
134         * Makefile.am (libelf.so): Use -Wl,-z,defs not -defs.
135
136 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
137
138         * elf.h: Update from glibc.
139
140 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
141
142         * elf32_updatefile.c (__elfXX_updatemmap): Fix handling of gaps between
143         sections.  Patch by Lubomir Rintel <lkundrak@v3.sk>.
144
145 2009-07-08  Roland McGrath  <roland@redhat.com>
146
147         * libelfP.h (struct Elf): Remove unused ar.has_index field.
148         Reorder various members for optimal packing.
149
150 2009-07-08  Ulrich Drepper  <drepper@redhat.com>
151
152         * elf.h: Update from glibc.
153
154 2009-06-13  Ulrich Drepper  <drepper@redhat.com>
155
156         * Makefile.am (libelf_a_SOURCES): Replace elf_getshnum.c and
157         elf_getshstrndx.c with elf_getshdrnum.c and elf_getshdrstrndx.c.
158         * elf_getshnum.c: Renamed to...
159         * elf_getshdrnum.c: ...this.  Rename function and add old name as
160         alias.  Likewise for internal functions with derived names.
161         * elf_getshstrndx.c: Renamed to...
162         * elf_getshdrstrndx.c: ...this.  Rename function and add old name as
163         alias.  Likewise for internal functions with derived names.
164         * libelf.h: Add prototypes for new names.  Make old names as
165         deprecated.
166         * libelfP.h: Rename internal function prototypes.
167         * libelf.map: Export for names.
168         * elf32_checksum.c: Don't use deprecated functions.
169         * elf32_getshdr.c: Likewise.
170
171 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
172
173         * elf.h: Update from glibc.
174
175 2009-04-14  Roland McGrath  <roland@redhat.com>
176
177         * elf.h: Update from glibc.
178
179 2009-04-01  Roland McGrath  <roland@redhat.com>
180
181         * elf.h: Update from glibc.
182
183 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
184
185         * elf32_updatefile.c (updatefile): For the zeroth section we still
186         have to copy the section header.
187
188 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
189
190         * elf_strptr.c: Add comment re possible problem.
191
192 2009-01-26  Ulrich Drepper  <drepper@redhat.com>
193
194         * elf32_updatenull.c (updatenull_wrlock): Fix comment of
195         ELF_F_LAYOUT behaviour re section header table.
196
197 2009-01-22  Ulrich Drepper  <drepper@redhat.com>
198
199         * elf32_updatefile.c (__elfXX_updatemmap): Fill the gap between
200         sections even if only the section at the start of the gap has been
201         changed.
202         (__elfXX_updatefile): Likewise.
203
204 2009-01-21  Ulrich Drepper  <drepper@redhat.com>
205
206         * elf32_updatefile.c (__elfXX_updatemmap): Skip most of the loop to
207         handle sections for NOBITS sections.
208         (elfXX_updatefile): Likewise.
209
210         * elf32_updatefile.c (__elfXX_updatemmap): When skipping non-NOBITS
211         sections we haven't loaded, update last_position based on scn_start,
212         not based on old value.  Don't run the loop for the dummy section 0.
213         (elfXX_updatefile): Don't run the loop for the dummy section 0.
214
215 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
216
217         * libelfP.h (_): We only have one translation domain, elfutils.
218
219         * Makefile.am: Use USE_LOCKS instead of USE_TLS.
220         * elf_error.c: Always use __thread.  Remove all !USE_TLS code.
221
222 2009-01-04  Roland McGrath  <roland@redhat.com>
223
224         * note_xlate.h (elf_cvt_note): Don't examine a size too small to
225         container a note header.
226
227 2008-12-11  Roland McGrath  <roland@redhat.com>
228
229         * elf32_updatefile.c (__elfw2(LIBELFBITS,updatemmap)): Handle
230         placement offset going backwards, for out-of-order or overlapping
231         (bogus) sh_offset layouts.  It's a dumb use, but should not crash.
232         (__elfw2(LIBELFBITS,updatefile)): Likewise.
233         Fixes RHBZ#476136.
234
235         * libelf.h (Elf_Data): Whitespace fix.
236
237 2008-12-10  Roland McGrath  <roland@redhat.com>
238
239         * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change.
240
241 2008-10-22  Petr Machata  <pmachata@redhat.com>
242
243         * elf_rawfile.c (elf_rawfile): Lock around elf-> references.
244
245 2008-10-21  Petr Machata  <pmachata@redhat.com>
246
247         * libelfP.h: Rename getehdr_rdlock to getehdr_wrlock.
248         * elf32_getehdr.c (getehdr_rdlock): Move the code to new function
249         getehdr_impl and make it a wrapper.  Rename to getehdr_wrlock.
250         (getehdr_impl): Guard elf->class init with wrlock.
251         (getehdr): Also make it a wrapper of getehdr_impl.
252         * elf32_updatenull.c (updatenull_wrlock): Call getehdr_wrlock.
253
254 2008-10-20  Petr Machata  <pmachata@redhat.com>
255
256         * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Lock around the
257         code that reads mutable elf state.  Relock to write lock to chain
258         the new chunk on the elf rawchunks list.
259
260 2008-10-20  Petr Machata  <pmachata@redhat.com>
261
262         * elf32_checksum.c (checksum): Place a lock around the code that
263         processes data.  Make it wrlock if the code needs to xlate the
264         data before processing.
265
266 2008-10-16  Petr Machata  <pmachata@redhat.com>
267
268         * elf_begin.c
269         (__libelf_next_arhdr): Rename to __libelf_next_arhdr_wrlock.
270         (dup_elf): Adjust the call.
271         (elf_begin): New local function lock_dup_elf.  Relocks the elf if
272         necessary before calling dup.  Call this instead of dup_elf.
273         * elf_getarhdr.c
274         (elf_getarhdr): Lock before calling __libelf_next_arhdr_wrlock.
275         * elf_next.c (elf_next): Likewise.
276         * elf_rand.c (elf_rand): Likewise.
277
278 2008-10-14  Petr Machata  <pmachata@redhat.com>
279
280         * elf_getdata.c (__elf_getdata_rdlock): Lock before converting.
281
282 2008-11-26  Roland McGrath  <roland@redhat.com>
283
284         * elf.h: Update from glibc.
285
286 2008-10-06  Roland McGrath  <roland@redhat.com>
287
288         * elf_getarhdr.c (elf_getarhdr): Return NULL when passed NULL.
289
290 2008-08-27  Roland McGrath  <roland@redhat.com>
291
292         * elf_begin.c (get_shnum): Avoid misaligned reads for matching endian.
293
294         * libelfP.h [!ALLOW_UNALIGNED] (__libelf_type_align): Fix CLASS index.
295
296 2008-08-25  Roland McGrath  <roland@redhat.com>
297
298         * Makefile.am (libelf_so_LDLIBS): New variable.
299         (libelf.so): Use it in the link.
300
301 2008-08-21  Petr Machata  <pmachata@redhat.com>
302
303         * elf_getdata.c, libelfP.h
304         (__elf_getdata_internal): Rename to __elf_getdata_rdlock.
305         (__libelf_set_rawdata_wrlock): New function.
306         (__libelf_set_rawdata): Make it a wrapper that calls *_wrlock.
307         * elf32_updatenull.c, libelfP.h
308         (__elfNN_updatenull): Rename to __elfNN_updatenull_wrlock.
309
310 2008-08-21  Petr Machata  <pmachata@redhat.com>
311
312         * elf32_getphdr.c, libelfP.h
313         (__elfNN_getphdr_internal): Drop.  Move __elfNN_getphdr_internal
314         code to __elfNN_getphdr_wrlock.
315         (__elfNN_getphdr_rdlock, __elfNN_getphdr_wrlock): New functions.
316         (__elfNN_getphdr_rdlock, __elfNN_getphdr_wrlock): Make these
317         wrappers of getphdr_impl.
318
319 2008-08-21  Petr Machata  <pmachata@redhat.com>
320
321         * elf32_getehdr.c, libelfP.h
322         (__elfNN_getehdr_internal): Rename to __elfNN_getehdr_rdlock.
323         * gelf_getehdr, libelfP.h:
324         (__gelf_getehdr_internal): Rename to __gelf_getehdr_rdlock.
325
326 2008-08-21  Petr Machata  <pmachata@redhat.com>
327
328         * elf32_getshdr.c
329         (__elfNN_getshdr_internal): Drop.
330         (load_shdr_wrlock, scn_valid): New functions, contain bits of
331         behaviour from __elfNN_getshdr_internal.
332         (__elfNN_getshdr_rdlock, __elfNN_getshdr_wrlock): Replacements for
333         dropped _internal functions above.
334         * elf_getshnum.c
335         (__elf_getshnum_internal): Rename to __elf_getshnum_rdlock.
336
337 2008-08-04  Petr Machata  <pmachata@redhat.com>
338
339         * libelfP.h (RWLOCK_RDLOCK, RWLOCK_WRLOCK, RWLOCK_UNLOCK): New macros.
340
341 2008-07-28  Roland McGrath  <roland@redhat.com>
342
343         * elf.h: Update from glibc.
344
345 2008-03-31  Roland McGrath  <roland@redhat.com>
346
347         * elf32_offscn.c: Make sure shdrs have been read in.
348
349 2008-02-19  Roland McGrath  <roland@redhat.com>
350
351         * elf.h: Update from glibc.
352
353 2008-02-08  Roland McGrath  <roland@redhat.com>
354
355         * elf.h: Update from glibc.
356
357 2008-01-31  Ulrich Drepper  <drepper@redhat.com>
358
359         * elf_strptr.c (elf_strptr): Don't fail if the ELF file is currently
360         under construction and no raw data can be read from disk.
361
362 2008-01-30  Roland McGrath  <roland@redhat.com>
363
364         * elf.h: Update from glibc.
365
366 2008-01-26  Roland McGrath  <roland@redhat.com>
367
368         * elf_begin.c (__libelf_next_arhdr): Rewrite conversions using a macro.
369         Fixes various pastos in wrong type in sizeof, wrong string parsed.
370
371 2008-01-20  Roland McGrath  <roland@redhat.com>
372
373         * elf_getaroff.c: Calculate from start_offset, instead of using
374         parent's state.ar.offset field.
375
376 2008-01-08  Roland McGrath  <roland@redhat.com>
377
378         * Makefile.am (euinclude): Variable removed.
379         (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
380
381 2008-01-03  Roland McGrath  <roland@redhat.com>
382
383         * common.h: Add __attribute__ ((unused)) to static functions.
384
385 2007-12-20  Ulrich Drepper  <drepper@redhat.com>
386
387         * Makefile.am (libelf_a_SOURCES): Add elf_scnshndx.
388         * libelfP.h (struct Elf_Scn): Add shndx_index field.
389         Declare __elf_scnshndx_internal.
390         * elf32_getshdr.c: Record location of extended section header.
391         * elf_begin.c (file_read_elf): Likewise.
392         * elf_scnshndx.c: New file.
393         * libelf.h: Declare elf_scnshndx.
394         * libelf.map: Add elf_scnshndx to version ELFUTILS_1.4.
395
396 2007-11-12  Roland McGrath  <roland@redhat.com>
397
398         * libelf.h: Replace off64_t with loff_t throughout.
399         Only that type name is unconditionally defined by <sys/types.h>
400
401 2007-11-03  Roland McGrath  <roland@redhat.com>
402
403         * libelf.h (Elf_Data): Comment fix.
404
405 2007-10-18  Roland McGrath  <roland@redhat.com>
406
407         * elf.h: Update from glibc.
408
409 2007-10-07  Roland McGrath  <roland@redhat.com>
410
411         * elf_begin.c (__libelf_next_arhdr): Fix fencepost error and wrong
412         member access in terminating name with no trailing /.  Trim trailing
413         spaces when there is no /.
414
415 2007-10-04  Roland McGrath  <roland@redhat.com>
416
417         * elf_end.c (elf_end): Don't free ELF->state.ar.ar_sym when it's -1l.
418
419 2007-10-03  Roland McGrath  <roland@redhat.com>
420
421         * libelf.h (Elf_Data): Use off64_t for d_off.
422         (Elf_Arhdr): Use off64_t for ar_size.
423         (elf_update, elf_getbase, elf_getaroff): Return off64_t.
424
425         * gelf_rawchunk.c: File removed.
426         * gelf_freechunk.c: File removed.
427         * Makefile.am (libelf_a_SOURCES): Remove them.
428         * libelf.map (ELFUTILS_1.0): Remove exports.
429         * gelf.h: Remove decls.
430
431         * elf_getdata_rawchunk.c: New file.
432         * Makefile.am (libelf_a_SOURCES): Add it.
433         * libelf.map (ELFUTILS_1.3): Add elf_getdata_rawchunk.
434         * libelf.h: Declare it.
435         * libelfP.h (Elf_Data_Chunk): New type.
436         (struct Elf.elf): New member `rawchunks'.
437         * elf_end.c (elf_end): Free recorded rawchunk buffers.
438
439 2007-08-24  Roland McGrath  <roland@redhat.com>
440
441         * gelf_getnote.c: New file.
442         * Makefile.am (libelf_a_SOURCES): Add it.
443         * gelf.h: Declare gelf_getnote.
444         * libelf.map (ELFUTILS_1.3): Add gelf_getnote.
445
446         * libelfP.h (NOTE_ALIGN): New macro.
447         * note_xlate.h: New file.
448         * Makefile.am (noinst_HEADERS): Add it.
449         * gelf_xlate.c: Include it.
450         (__elf_xfctstom): Use elf_cvt_note.
451         * elf_getdata.c (shtype_map, __libelf_type_align): Handle SHT_NOTE.
452         (__libelf_set_rawdata): Likewise.
453
454 2007-08-19  Roland McGrath  <roland@redhat.com>
455
456         * gelf_update_auxv.c: New file.
457         * gelf_getauxv.c: New file.
458         * Makefile.am (libelf_a_SOURCES): Add them.
459         * gelf.h: Declare gelf_getauxv, gelf_update_auxv.
460         * libelf.map (ELFUTILS_1.3): New set, inherits fom ELFUTILS_1.2.
461         Export gelf_getauxv, gelf_update_auxv.
462
463         * libelf.h (Elf_Type): Add ELF_T_AUXV.
464         * abstract.h: Add auxv_t entries.
465         * exttypes.h: Likewise.
466         * gelf_xlate.h: Likewise.
467         * gelf_xlate.c (__elf_xfctstom): Add ELF_T_AUXV entries.
468         * gelf_fsize.c (__libelf_type_sizes): Likewise.
469
470 2007-08-12  Roland McGrath  <roland@redhat.com>
471
472         * elf32_updatefile.c (compare_sections): Sort secondarily on sh_size,
473         and only tertiarily on index.
474
475 2007-07-09  Roland McGrath  <roland@redhat.com>
476
477         * elf.h: Update from glibc.
478
479 2007-04-22  Roland McGrath  <roland@redhat.com>
480
481         * elf.h: Update from glibc.
482
483 2007-03-18  Roland McGrath  <roland@redhat.com>
484
485         * elf_begin.c (get_shnum): Fix test for e_shoff being out of bounds.
486         Return zero when the section headers do not fit within MAXSIZE.
487
488 2007-03-09  Roland McGrath  <roland@redhat.com>
489
490         * libelfP.h (LIBELF_EV_IDX): New macro.
491         (__libelf_type_align): New macro.
492         [! ALLOW_UNALIGNED]: Declare __libc_type_aligns array.
493         * elf_getdata.c (shtype_map): Convert to just Elf_Type[][].
494         (convert_data, __libelf_set_rawdata): Use that, __libelf_type_align,
495         and __libelf_type_sizes, in place of old table.
496         (__libc_type_aligns): New const variable.
497
498 2007-02-04  Ulrich Drepper  <drepper@redhat.com>
499
500         * Makefile (libelf.so): Build with -z relro.
501
502         * elf_begin.c (read_file): When using ELF_C_READ_MMAP use MAP_PRIVATE.
503
504 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
505
506         * nlist.c: Close file descriptor before returning.
507
508 2007-01-20  Roland McGrath  <roland@redhat.com>
509
510         * gnuhash_xlate.h (elf_cvt_gnuhash): Fix fence-post error so we
511         convert the final word.
512
513         * elf32_getshdr.c: Don't byteswap shdr fields when EI_DATA matches
514         MY_ELFDATA on !ALLOW_UNALIGNED machines.
515
516 2007-01-18  Roland McGrath  <roland@redhat.com>
517
518         * gelf_rawchunk.c (gelf_rawchunk): Clear RESULT pointer after freeing
519         it on read error.
520
521 2006-10-13  Roland McGrath  <roland@redhat.com>
522
523         * elf32_updatenull.c: Look for and accept phdr also for ET_CORE.
524         * elf_error.c (msgstr): Change ELF_E_INVALID_PHDR string.
525
526 2006-08-29  Roland McGrath  <roland@redhat.com>
527
528         * elf32_getphdr.c: Don't byteswap phdr fields when EI_DATA matches
529         MY_ELFDATA on !ALLOW_UNALIGNED machines.
530         Reported by Christian Aichinger <Greek0@gmx.net>.
531
532         * Makefile.am (CLEANFILES): Add libelf.so.$(VERSION).
533
534 2006-08-08  Ulrich Drepper  <drepper@redhat.com>
535
536         * elf.h (DT_VALNUM): Update.
537         (DT_ADDRNUM): Likewise.
538
539 2006-07-12  Ulrich Drepper  <drepper@redhat.com>
540
541         * elf32_updatefile.c: Adjust for internal_function_def removal.
542         * elf32_updatenull.c: Likewise.
543         * elf_begin.c: Likewise.
544         * elf_getdata.c: Likewise.
545
546 2006-07-11  Ulrich Drepper  <drepper@redhat.com>
547
548         * libelf.h: Define ELF_T_GNUHASH.
549         * elf_getdata.c (TYPEIDX): Handle SHT_GNU_HASH.
550         (shtype_map): Add SHT_GNU_HASH entries.
551         * gelf_xlate.c (__elf_xfctstom): Add ELF_T_GNUHASH entries.
552         * gnuhash_xlate.h: New file.
553         * Makefile.am (noinst_HEADERS): Add gnuhash_xlate.h.
554
555 2006-07-06  Ulrich Drepper  <drepper@redhat.com>
556
557         * elf_gnu_hash.c: New file.
558         * libelf.h: Declare elf_gnu_hash.
559         * Makefile.am (libelf_a_SOURCES): Add elf_gnu_hash.
560         * libelf.map: Add elf_gnu_map for version ELFUTILS_1.2.
561
562 2006-06-15  Roland McGrath  <roland@redhat.com>
563
564         * libelf.h (elf_getarsym): Fix comment typo.
565         Rename second parameter to be more explanatory.
566         (elf_getident, elf_rawhide): Likewise.
567
568 2006-05-28  Ulrich Drepper  <drepper@redhat.com>
569
570         * elf32_updatefile.c (updatemmap): Preserve section content if
571         copying would overwrite them.
572         Fix msync paramters.
573
574 2006-04-04  Roland McGrath  <roland@redhat.com>
575
576         * elf32_updatefile.c (updatemmap): Handle other-endian case.
577
578 2006-04-04  Ulrich Drepper  <drepper@redhat.com>
579
580         * elf32_updatefile.c (updatemmap): Cleanups.  Remove shdr_dest
581         variable.  Before writing sections, make a copy of the section
582         header data if necessary.  Don't write section header while
583         writing the section constent, it might overwrite some sections.
584         Restore the pointer afterwards.
585         * elf32_updatenull.c (updatenull): If the offset of a section in a
586         file changed make sure we read the section so that it'll be written
587         out.
588
589         * elf_update.c: Remove debug message.
590
591 2005-12-07  Roland McGrath  <roland@redhat.com>
592
593         * gelf_xlate.c [! ALLOW_UNALIGNED] (union unaligned): New type.
594         (FETCH, STORE): New macros.
595         (INLINE3): Use those to do alignment-friendly conversion.
596
597         * elf32_getshdr.c: Include map_address and start_offset in alignment
598         calculations.
599         * elf32_getphdr.c: Likewise.
600
601 2005-11-19  Roland McGrath  <roland@redhat.com>
602
603         * elf.h: Update from glibc.
604
605 2005-11-17  Roland McGrath  <roland@redhat.com>
606
607         * elf.h: Update from glibc.
608
609 2005-11-10  Roland McGrath  <roland@redhat.com>
610
611         * elf.h: Update from glibc.
612
613 2005-09-09  Roland McGrath  <roland@redhat.com>
614
615         * elf_update.c (write_file): Stat the file and fchmod it after update
616         if its mode had S_ISUID or S_ISGID bits set.
617
618 2005-08-28  Ulrich Drepper  <drepper@redhat.com>
619
620         * elf32_getphdr.c: Include <system.h>.  Use pread_retry instead of
621         pread.  And branch prediction where useful.
622         * elf_begin.c: Likewise.
623         * elf_getdata.c: Likewise.
624         * elf_getshstrndx.c: Likewise.
625         * elf_readall.c: Likewise.
626         * gelf_rawchunk.c: Likewise.
627         * elf32_updatefile.c: Include <system.h>.  Use pread_retry instead of
628         pread.  And branch prediction where useful.
629         * elf_getarsym.c: Don't define pread_retry here.
630
631         * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
632         (%.os): Use COMPILE.os.
633         (COMPILE.os): Filter out gconv options.
634
635 2005-08-27  Ulrich Drepper  <drepper@redhat.com>
636
637         * elf_begin.c (file_read_elf): Avoid reading ELF header from file
638         again.  Instead accept additional parameter which points to it if we
639         don't use mmap.
640         (get_shnum): Use passed in e_ident value as source of ELF header.
641
642 2005-08-15  Ulrich Drepper  <drepper@redhat.com>
643
644         * elf_begin.c (__libelf_next_arhdr): Use TEMP_FAILURE_RETRY.
645
646         * Makefile (libelf_a_SOURCES): Add elf_getaroff.c.
647         * libelf.map: Export elf_getaroff.
648         * libelf.h: Declare elf_getaroff.
649         * elf_getaroff.c: New file.
650
651 2005-08-13  Ulrich Drepper  <drepper@redhat.com>
652
653         * elf_begin.c (get_shnum): Optimize memory handling.  Always read from
654         mapped file if available.  Fix access to 64-bit sh_size.  Recognize
655         overflow.
656         (file_read_elf): Likewise.
657
658 2005-08-12  Roland McGrath  <roland@redhat.com>
659
660         * elf32_offscn.c: Do not match empty sections at OFFSET unless
661         there are no nonempty sections at that offset.
662
663 2005-08-07  Ulrich Drepper  <drepper@redhat.com>
664
665         * elf.h: Update from glibc.
666
667 2005-08-06  Ulrich Drepper  <drepper@redhat.com>
668
669         * Makefile.am (AM_CFLAGS): Add -fpic when BUILD_STATIC.
670
671 2005-08-03  Ulrich Drepper  <drepper@redhat.com>
672
673         * libelf.map: Move elf32_offscn, elf64_offscn, and gelf_offscn in
674         new version ELFUTILS_1.1.1.
675
676 2005-08-02  Ulrich Drepper  <drepper@redhat.com>
677
678         * elf_error.c: Add handling of ELF_E_INVALID_OFFSET.
679         * elf32_offscn.c: New file.
680         * elf64_offscn.c: New file.
681         * gelf_offscn.c: New file.
682         * Makefile.am (libelf_a_SOURCES): Add elf32_offscn.c, elf64_offscn.c,
683         and gelf_offscn.c.
684         * libelf.sym: Export new symbols.
685
686 2005-07-23  Ulrich Drepper  <drepper@redhat.com>
687
688         * elf-knowledge.h (SECTION_STRIP_P): Don't handle removal of debug
689         sections here anymore.
690         * elf32_checksum.c: Adjust for change in SECTION_STRIP_P interface.
691
692         * elf_update.c (elf_update): Get write lock, not read lock.
693
694         * elf32_updatenull.c (updatenull): Get section headers if necessary
695         and possible.
696
697 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
698
699         * elf32_updatenull.c (updatenull): If program header hasn't been loaded
700         yet, try to do it now.
701         Don't unnecessarily update overflow of section count in zeroth section
702         sh_size field.
703         If section content hasn't been read yet, do it before looking for the
704         block size.  If no section data present, infer size of section header.
705
706 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
707
708         * elf.h: Update again.
709
710 2005-05-09  Ulrich Drepper  <drepper@redhat.com>
711
712         * elf.h: Update from glibc.
713
714 2005-05-08  Roland McGrath  <roland@redhat.com>
715
716         * elf_begin.c (read_file) [_MUDFLAP]: Don't use mmap for now.
717         * elf_update.c (write_file) [_MUDFLAP]: Likewise.
718
719 2005-03-29  Ulrich Drepper  <drepper@redhat.com>
720
721         * elf32_checksum.c: Use INTUSE and INTDEF to avoid PLTs.
722         * elf_end.c: Likewise.
723         * elf_getdata.c: Likewise.
724         * gelf_getehdr.c: Likewise.
725         * nlist.c: Likewise.
726         * libelfP.h: Add declarations of internal functions.
727
728 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
729
730         * common.h (CONVERT): Make sure all values are unsigned.
731         (CONVERT_TO): Likewise.
732
733         * Makefile.am (AM_CFLAGS): Add -Wformat=2.
734         Fix rule to build libelf.so.
735
736 2005-02-06  Ulrich Drepper  <drepper@redhat.com>
737
738         * Makefile.am: Cleanup AM_CFLAGS handling.  Add -Wunused -Wextra.
739         Remove lint handling.
740         * elf32_getphdr.c: Minor cleanups.
741         * elf32_getshdr.c: Likewise.
742         * elf32_updatefile.c: Likewise.
743         * elf32_updatenull.c: Likewise.
744         * elf_begin.c: Likewise.
745         * elf_error.c: Likewise.
746         * elf_getarsym.c: Likewise.
747         * elf_getdata.c: Likewise.
748         * elf_update.c: Likewise.
749         * gelf_xlate.c: Likewise.
750
751 2005-02-05  Ulrich Drepper  <drepper@redhat.com>
752
753         * Makefile.am: Check for text relocations in constructed DSO.
754
755         * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -Werror -fpic -fmudflap.
756
757 2005-02-04  Ulrich Drepper  <drepper@redhat.com>
758
759         * gelf_getehdr.c (gelf_getehdr): Slight optimization.
760
761         * elf32_checksum.c (checksum): Do not look at NOBITS sections.
762
763         * gelf.h: Add gelf_checksum prototype.
764
765 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
766
767         * elf32_checksum.c: Make compile with gcc 4.0.
768         * elf32_updatefile.c: Likewise.
769         * elf32_updatenull.c: Likewise.
770         * elf_begin.c: Likewise.
771         * elf_error.c: Likewise.
772         * elf_getdata.c: Likewise.
773         * elf_getident.c: Likewise.
774
775 2004-04-01  Ulrich Drepper  <drepper@redhat.com>
776
777         * elf.h: Update from glibc.
778
779 2004-01-23  Ulrich Drepper  <drepper@redhat.com>
780
781         * elf_update.c: Fix locking.
782         * elf_clone.c: Likewise.
783
784         * libelf.h: Define ELF_T_LIB.
785         * gelf_getlib.c: New file.
786         * gelf_update_lib.c: New file.
787         * gelf.h: Declare the new functions.  Define GElf_Lib.
788         * abstract.h: Define Lib, Lib32, Lib64.
789         * gelf_xlate.c (__elf_xfctstom): Add ELF_T_LIB entry.
790         * gelf_xlate.h: Add entry for ElfXX_Lib.
791         * elf_getdata.c: Recognize SHT_GNU_LIBLIST as a known section type.
792         * libelf.map: Add new symbols to ELFUTILS_1.1.
793         * Makefile.am (libelf_a_SOURCES): Add gelf_getlib.c and
794         gelf_update_lib.c.
795
796 2004-01-17  Ulrich Drepper  <drepper@redhat.com>
797
798         * Makefile.am: Support building with mudflap.
799
800         * gelf_xlate.c (INLINE3): Avoid using cast as lvalue.
801         * dl-hash.h (_dl_elf_hash): Likewise.
802
803 2004-01-05  Ulrich Drepper  <drepper@redhat.com>
804
805         * elf-knowledge.h: New file.  From libelf subdir.
806         * Makefile.am (euincludedir): Define.
807         (euinclude_HEADERS): Add elf-knowledge.h.
808
809 2003-09-24  Ulrich Drepper  <drepper@redhat.com>
810
811         * elf.h: Define some PT_IA_64_HP_* constants.
812
813 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
814
815         * libelfP.h (struct Elf): Move state.elf64.sizestr_offset after
816         state.elf64.scnincr to match state.elf{,32}.
817
818 2003-08-12  Ulrich Drepper  <drepper@redhat.com>
819
820         * elf32_updatefile.c (__updatemmap): When writing back file where
821         some sections have not been read in, count their sizes based on
822         the section header.
823
824 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
825
826         * Moved to CVS archive.