upgrade to v0.188

Signed-off-by: zhanghaibo <zhanghaibo0@huawei.com>
Change-Id: I83c8756f5ce0a464b037bc963cfdce43df82921b
This commit is contained in:
zhanghaibo
2023-04-25 18:45:37 +08:00
parent 0076a8b022
commit e660ab2124
274 changed files with 18549 additions and 8555 deletions
+26
View File
@@ -1,3 +1,29 @@
2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
* dwelf_elf_begin.c: Don't include unistd.h.
* dwelf_strtab.c: Likewise.
2022-08-08 Andreas Schwab <schwab@suse.de>
* dwelf_elf_e_machine_string.c (dwelf_elf_e_machine_string): Add
EM_LOONGARCH LoongArch.
2022-03-24 Mark Wielaard <mark@klomp.org>
* dwelf_elf_e_machine_string.c (dwelf_elf_e_machine_string): Add
EM_INTELGT Intel Graphics Technology.
2021-02-14 Alexander Miller <alex.miller@gmx.de>
* dwelf_elf_begin.c (dwelf_elf_begin): Move NEW_VERSION before
definition.
2021-09-06 Dmitry V. Levin <ldv@altlinux.org>
* dwelf_strtab.c (dwelf_strtab_init): Remove cast of calloc return
value.
(morememory): Remove cast of malloc return value.
2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
* libdwelf.h: Fix spelling typos in comments.
+1 -3
View File
@@ -34,8 +34,7 @@
#include "libdwflP.h"
#include "libelfP.h"
#include <unistd.h>
NEW_VERSION (dwelf_elf_begin, ELFUTILS_0.177)
Elf *
dwelf_elf_begin (int fd)
{
@@ -61,4 +60,3 @@ dwelf_elf_begin (int fd)
return NULL;
}
OLD_VERSION (dwelf_elf_begin, ELFUTILS_0.175)
NEW_VERSION (dwelf_elf_begin, ELFUTILS_0.177)
+4
View File
@@ -360,6 +360,8 @@ dwelf_elf_e_machine_string (int machine)
return "XMOS xCORE";
case EM_MCHP_PIC:
return "Microchip 8-bit PIC";
case EM_INTELGT:
return "Intel Graphics Technology";
case EM_KM32:
return "KM211 KM32";
case EM_KMX32:
@@ -396,6 +398,8 @@ dwelf_elf_e_machine_string (int machine)
return "BPF";
case EM_CSKY:
return "C-SKY";
case EM_LOONGARCH:
return "LoongArch";
case EM_ALPHA:
return "Alpha";
+2 -4
View File
@@ -37,7 +37,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "libdwelfP.h"
#include <system.h>
@@ -91,8 +90,7 @@ dwelf_strtab_init (bool nullstr)
assert (sizeof (struct memoryblock) < ps - MALLOC_OVERHEAD);
}
Dwelf_Strtab *ret
= (Dwelf_Strtab *) calloc (1, sizeof (struct Dwelf_Strtab));
Dwelf_Strtab *ret = calloc (1, sizeof (struct Dwelf_Strtab));
if (ret != NULL)
{
ret->nullstr = nullstr;
@@ -117,7 +115,7 @@ morememory (Dwelf_Strtab *st, size_t len)
/* Allocate nearest multiple of pagesize >= len. */
len = ((len / ps) + (len % ps != 0)) * ps - MALLOC_OVERHEAD;
struct memoryblock *newmem = (struct memoryblock *) malloc (len);
struct memoryblock *newmem = malloc (len);
if (newmem == NULL)
return 1;