1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-17 21:27:58 +09:00
parent 10d23f945e
commit a1e39bfe5c
2 changed files with 4 additions and 0 deletions

1
elf.h
View File

@ -37,6 +37,7 @@ static constexpr u32 SHT_GNU_HASH = 0x6ffffff6;
static constexpr u32 SHT_GNU_VERDEF = 0x6ffffffd;
static constexpr u32 SHT_GNU_VERNEED = 0x6ffffffe;
static constexpr u32 SHT_GNU_VERSYM = 0x6fffffff;
static constexpr u32 SHT_X86_64_UNWIND = 0x70000001;
static constexpr u32 SHF_WRITE = 0x1;
static constexpr u32 SHF_ALLOC = 0x2;

View File

@ -368,6 +368,9 @@ static std::string_view get_output_name(std::string_view name) {
OutputSection *
OutputSection::get_instance(std::string_view name, u32 type, u64 flags) {
if (name == ".eh_frame" && type == SHT_PROGBITS)
type = SHT_X86_64_UNWIND;
name = get_output_name(name);
flags = flags & ~(u64)SHF_GROUP;