Skip to content

Conversation

@dschuff
Copy link
Member

@dschuff dschuff commented Oct 31, 2024

This test is now failing after WebAssembly/binaryen#7043 because the target_features section is in the output binary and gets copied over to the separate-dwarf file (this is because the separate-dwarf file is just a copy of the original file).

An alternative to this would be to strip all non-debug custom sections from the side file, although there could be sections that emscripten doesn't know about that it would be desirable to have.

…-dwarf files

This test is now failing after WebAssembly/binaryen#7043
because the target_features section is in the output binary and gets copied
over to the separate-dwarf file (this is because the separate-dwarf file is
just a copy of the original file).

An alternative to this would be to strip all non-debug custom sections
from the side file, although there could be sections that emscripten
doesn't know about that it would be desirable to have.
@dschuff dschuff requested a review from kripken October 31, 2024 20:32
@dschuff dschuff changed the title Remove expectation requiring no non-debug custom sections in separate… Remove expectation of no non-debug custom sections in separate-dwarf files Oct 31, 2024
# self.fail(f'section of type "{sec.type}" found in separate dwarf file')
if sec.name and sec.name != 'name' and not sec.name.startswith('.debug'):
self.fail(f'non-debug section "{sec.name}" found in separate dwarf file')
pass
Copy link
Member Author

Choose a reason for hiding this comment

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

oops, this is now very ugly. I just reopened #13084 again. If you'd prefer we can just delete this whole for loop until it gets fixed.

Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with it is as is. There is a TODO so it's clear the code is meant to be fixed up later.

# self.fail(f'section of type "{sec.type}" found in separate dwarf file')
if sec.name and sec.name != 'name' and not sec.name.startswith('.debug'):
self.fail(f'non-debug section "{sec.name}" found in separate dwarf file')
pass
Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with it is as is. There is a TODO so it's clear the code is meant to be fixed up later.

@dschuff dschuff merged commit 7cff758 into emscripten-core:main Oct 31, 2024
2 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants