When creating an annotation section, allocate the reloc section data at the beginning. This simplifies the data model a bit and also saves memory due to the removal of malloc() in elf_rebuild_reloc_section(). With allyesconfig + CONFIG_DEBUG_INFO: - Before: peak heap memory consumption: 53.49G - After: peak heap memory consumption: 49.02G Link: https://lore.kernel.org/r/048e908f3ede9b66c15e44672b6dda992b1dae3e.1685464332.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
13 lines
342 B
C
13 lines
342 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _OBJTOOL_ARCH_ELF
|
|
#define _OBJTOOL_ARCH_ELF
|
|
|
|
#define R_NONE R_PPC_NONE
|
|
#define R_ABS64 R_PPC64_ADDR64
|
|
#define R_ABS32 R_PPC_ADDR32
|
|
#define R_DATA32 R_PPC_REL32
|
|
#define R_DATA64 R_PPC64_REL64
|
|
#define R_TEXT32 R_PPC_REL32
|
|
#define R_TEXT64 R_PPC64_REL32
|
|
|
|
#endif /* _OBJTOOL_ARCH_ELF */
|