Skip to content

Commit f946fc3

Browse files
authored
fix: copying debug symbols from debug info section (#1820)
resolves #1646
1 parent 7026bb7 commit f946fc3

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

libwild/src/elf_writer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,6 +1955,7 @@ fn write_symbols<'data>(
19551955
if let Some(section_index) = object.object.symbol_section(sym, sym_index)? {
19561956
match &object.sections[section_index.0] {
19571957
SectionSlot::Loaded(section) => section.output_section_id(),
1958+
SectionSlot::LoadedDebugInfo(section) => section.output_section_id(),
19581959
SectionSlot::MergeStrings(section) => section.part_id.output_section_id(),
19591960
SectionSlot::FrameData(..) => output_section_id::EH_FRAME,
19601961
_ => bail!(

wild/tests/external_tests/mold_skip_tests.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ tests = [
2727
"oformat-binary.sh",
2828
"omagic.sh",
2929
"package-metadata.sh",
30-
"relocatable-debug-info.sh",
3130
"relocatable-exception.sh",
3231
"relocatable-merge-sections.sh",
3332
"repro.sh", # Note in this test's second half that it uses a custom environment variable called `MOLD_REPRO`. While Wild currently doesn't support `--repro`, it will eventually be moved to the "ignore" group once support is added.

0 commit comments

Comments
 (0)