Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT][DWARF] Fix handling of debug_str_offsets #75100

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

ayermolo
Copy link
Contributor

@ayermolo ayermolo commented Dec 11, 2023

We were not setting size field of .debug_str_offsets correctly. Fixed it, and added a test.

We were not setting size field of .debug-str-offsets correctly. Fixed it, and
added a test.
Copy link
Contributor

@maksfb maksfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the section name in title and summary: ".debug-str-offsets" -> ".debug_str_offsets".

bolt/test/X86/dwarf5-two-cu-str-offset-table.test Outdated Show resolved Hide resolved
bolt/test/X86/dwarf5-two-cu-str-offset-table.test Outdated Show resolved Hide resolved
@ayermolo ayermolo changed the title [BOLT][DWARF] Fix handling of debug-str-offsets [BOLT][DWARF] Fix handling of debug_str_offsets Dec 11, 2023
@ayermolo ayermolo merged commit fb9a851 into llvm:main Dec 11, 2023
4 checks passed
@ayermolo ayermolo deleted the debugStrOffsetsSizeFix branch December 11, 2023 23:56

# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5_main.s -o %tmain.o
# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5_helper.s -o %thelper.o
# RUN: %clang %cflags -dwarf-5 %tmain.o %thelper.o -o %t.exe -Wl,-q
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it -gdwarf-5 here ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants