[PATCH 7/9 v2] doc: Add elf32_newphdr.3 and elf64_newphdr.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Mention new program header table is zero'ed out and that NULL is returned if elf is NULL. doc/elf32_newphdr.3 | 72 + doc/elf64_newphdr.3 | 1 + 2 files changed, 73 insertions(+) create mode 100644 doc/elf3

[PATCH 8/9 v2] doc: Add elf{32, 64}_xlatetof.3 and elf{32, 64}_xlatetom.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Merge xlatetof and xlatetom man pages. Added additional details suggested in Mark's review https://sourceware.org/pipermail/elfutils-devel/2024q3/007377.html doc/elf32_xlatetof.3 | 1 + doc/elf32_xlatetom.3 | 130

[PATCH 3/9 v2] doc: Add elf32_getchdr.3 and elf64_getchdr.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Mention that SHF_COMPRESSED must be set. Add elf_compress (3) to SEE ALSO. Remove "This elfutils libelf function may not be found in other libelf implementations". On Tue, Aug 27, 2024 at 1:23 PM Mark Wielaard wrote: > > It should also mention what

[PATCH 5/9 v2] doc: Add elf32_getshdr.3 and elf64_getshdr.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Mention elf_flagshdr. Mention NULL is returned if scn is NULL. doc/elf32_getshdr.3 | 59 + doc/elf64_getshdr.3 | 1 + 2 files changed, 60 insertions(+) create mode 100644 doc/elf32_getshdr.3 create mode 1

[PATCH 9/9] doc/Makefile.am: Add man pages

2024-10-02 Thread Aaron Merey
Add the following man pages to notrans_dist_man3_MANS: elf32_xlatetom.3 elf64_xlatetom.3 elf32_xlatetof.3 elf64_xlatetof.3 elf32_newphdr.3 elf64_newphdr.3 elf32_newehdr.3 elf64_newehdr.3 elf32_getshdr.3 elf64_getshdr.3 elf32_getphdr.3 elf64_getphdr.3 elf32_getchdr.3 elf64_getchdr.3 elf32_fsize.3 e

[PATCH 4/9 v2] doc: Add elf32_getphdr.3 and elf64_getphdr.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Improved description. Mention that NULL is returned if there is no program header. Add elf_getphdrnum and elf32_newphdr to SEE ALSO. doc/elf32_getphdr.3 | 66 + doc/elf64_getphdr.3 | 1 + 2 files changed, 6

[PATCH 6/9 v2] doc: Add elf32_newehdr.3 and elf64_newehdr.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Mention that the existing header will be returned if one is already present. Mention that an ELF header must be present before callling elf_newscn or elf_newphdr doc/elf32_newehdr.3 | 60 + doc/elf64_newehdr

[PATCH 2/9 v2] doc: Add elf32_fsize.3 and elf64_fsize.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: Reword description. State EV_CURRENT is the only valid version. Mention possibility of integer overflow. On Tue, Aug 27, 2024 at 12:32 PM Mark Wielaard wrote: > > Maybe give at least some examples of Elf_Type and which data structure > they represent

[PATCH 1/9 v2] doc: Add elf32_checksum.3 and elf64_checksum.3

2024-10-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2 changes: elf64_checksum.3 now refers to elf32_checksum.3. Explained which sections are used to calculate the checksum. Mentioned DT_CHECKSUM. Mentioned that the checksum is a 4-byte value that might be zero-extended. doc/elf32_checksum.3 | 60 +++

[PATCH] tests: Fix specifying constant of double type

2024-10-02 Thread Khem Raj
'd' suffix seems to be not acceptable by clang compiler Using 'e0' fixes this by keeping value to be same Fixes funcretval_test_struct.c:83:27: error: invalid suffix 'd' on floating constant 83 | dpoint_t dp = dmkpt (3.0d, 1.0d); | ^ funcretval_test_struct.c:83

[Bug libelf/32232] New: Failed tests with lld linker

2024-10-02 Thread raj.khem at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32232 Bug ID: 32232 Summary: Failed tests with lld linker Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libelf