Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/core/sys/dragonflybsd/sys/elf_common.d
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ enum SHF_LINK_ORDER = (1 << 7);
enum SHF_OS_NONCONFORMING = (1 << 8);
enum SHF_GROUP = (1 << 9);
enum SHF_TLS = (1 << 10);
enum SHF_COMPRESSED = (1 << 11);

enum SHF_MASKOS = 0x0ff00000;
enum SHF_MASKPROC = 0xf0000000;
Expand Down
1 change: 1 addition & 0 deletions src/core/sys/freebsd/sys/elf_common.d
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ enum SHF_LINK_ORDER = (1 << 7);
enum SHF_OS_NONCONFORMING = (1 << 8);
enum SHF_GROUP = (1 << 9);
enum SHF_TLS = (1 << 10);
enum SHF_COMPRESSED = (1 << 11);
enum SHF_MASKOS = 0x0ff00000;
enum SHF_MASKPROC = 0xf0000000;

Expand Down
1 change: 1 addition & 0 deletions src/core/sys/linux/elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ enum SHF_LINK_ORDER = (1 << 7);
enum SHF_OS_NONCONFORMING = (1 << 8);
enum SHF_GROUP = (1 << 9);
enum SHF_TLS = (1 << 10);
enum SHF_COMPRESSED = (1 << 11);
enum SHF_MASKOS = 0x0ff00000;
enum SHF_MASKPROC = 0xf0000000;
enum SHF_ORDERED = (1 << 30);
Expand Down
3 changes: 3 additions & 0 deletions src/rt/backtrace/elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ struct Image
if (dbgSectionIndex != -1)
{
auto dbgSectionHeader = ElfSectionHeader(&file, dbgSectionIndex);
// we don't support compressed debug sections
if ((dbgSectionHeader.shdr.sh_flags & SHF_COMPRESSED) != 0)
return null;
// debug_line section found and loaded
return ElfSection(&file, &dbgSectionHeader);
}
Expand Down