mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-01 06:41:51 -04:00
upgrade to v0.188
Signed-off-by: zhanghaibo <zhanghaibo0@huawei.com> Change-Id: I83c8756f5ce0a464b037bc963cfdce43df82921b
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user