-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Disable debug sections when optimization flags is set for LLD. #52887
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
083287b
to
e9509d7
Compare
@bors: r+ |
📌 Commit e9509d7 has been approved by |
⌛ Testing commit e9509d7 with merge b76cec425cc1337e49f29ffaa507c30b46a430ca... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
…=alexcrichton Disable debug sections when optimization flags is set for LLD. Currently LLD does not error when optimization is set and debugging information sections are present. (See discussion at https://reviews.llvm.org/D47901) Using `--strip-debug` along with the `-O` option.
…=alexcrichton Disable debug sections when optimization flags is set for LLD. Currently LLD does not error when optimization is set and debugging information sections are present. (See discussion at https://reviews.llvm.org/D47901) Using `--strip-debug` along with the `-O` option.
⌛ Testing commit e9509d7 with merge 3a82002a034c903939a3139b68ec2db50cdf43fa... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry travis-ci/travis-ci#9696
|
⌛ Testing commit e9509d7 with merge 636e3d1db7cd7edc005f94301dd1501c6fd86a53... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Disable debug sections when optimization flags is set for LLD. Currently LLD does not error when optimization is set and debugging information sections are present. (See discussion at https://reviews.llvm.org/D47901) Using `--strip-debug` along with the `-O` option.
☀️ Test successful - status-appveyor, status-travis |
I suspect it creates a regression for tools using debuginfo even in release mode, like |
Ah excellent point @Hywan! I think I noticed this too awhile back but failed to diagnose. @yurydelendik I think what's happening here is that |
/cc @sbc100
No, I don't. AFAIK the name section considered as debug info and in Firefox it forces to store wasm bytecode thus adds overhead to the runtime. |
Originally added in rust-lang#52887 this commit disables passing `--strip-debug` to LLD when optimized. This bring back the original bug of emitting broken debuginfo but currently it *also* strips the `name` section which makes it very difficult to inspect the final binary. A real fix is happening at https://reviews.llvm.org/D50729 and we can reevaluate once we've updated LLD to have that commit.
…yurydelendik wasm: Remove --strip-debug argument to LLD Originally added in rust-lang#52887 this commit disables passing `--strip-debug` to LLD when optimized. This bring back the original bug of emitting broken debuginfo but currently it *also* strips the `name` section which makes it very difficult to inspect the final binary. A real fix is happening at https://reviews.llvm.org/D50729 and we can reevaluate once we've updated LLD to have that commit.
Currently LLD does not error when optimization is set and debugging information sections are present. (See discussion at https://reviews.llvm.org/D47901)
Using
--strip-debug
along with the-O
option.