Skip to content

Conversation

@kubamracek
Copy link
Contributor

No description provided.

@kubamracek kubamracek requested a review from mikeash August 13, 2020 01:04
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1beec2645d0bb9a484cdb91338d411610e3f1cd6

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1beec2645d0bb9a484cdb91338d411610e3f1cd6

@jckarter
Copy link
Contributor

Instead of #ifdef-ing half of ImageInspectionMachO, maybe this variant could be put in its own ImageInspectionStatic.cpp file. It would also be useful to do this for static executables on Linux.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1beec2645d0bb9a484cdb91338d411610e3f1cd6

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1beec2645d0bb9a484cdb91338d411610e3f1cd6

…y look up sections in modules, and only assumes a single static module
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1564b5449002e1e67218592b22fb4ea7a6616e66

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1564b5449002e1e67218592b22fb4ea7a6616e66

@kubamracek
Copy link
Contributor Author

@jckarter I've introduced the ImageInspectionStatic.cpp file instead of changing ImageInspectionMacho.cpp. Would you take another look now?

@@ -0,0 +1,77 @@
//===--- ImageInspectionMachO.cpp - Mach-O image inspection ---------------===//
Copy link
Contributor

Choose a reason for hiding this comment

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

Still has the old name and short description.

@mikeash
Copy link
Contributor

mikeash commented Aug 18, 2020

Thanks to both of you, this approach looks much nicer.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e2f1e55

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e2f1e55

Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Looks much nicer this way. Thanks @kubamracek !

@kubamracek kubamracek merged commit db18dea into swiftlang:master Aug 18, 2020
@kubamracek kubamracek deleted the macho-no-dyld branch August 18, 2020 18:46
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.

4 participants