mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add more flags for llvm-readobj
This commit is contained in:
parent
ac47dbad50
commit
6db3289de7
@ -102,6 +102,24 @@ impl LlvmReadobj {
|
||||
self
|
||||
}
|
||||
|
||||
/// Pass `--program-headers` to display program headers.
|
||||
pub fn program_headers(&mut self) -> &mut Self {
|
||||
self.cmd.arg("--program-headers");
|
||||
self
|
||||
}
|
||||
|
||||
/// Pass `--symbols` to display the symbol.
|
||||
pub fn symbols(&mut self) -> &mut Self {
|
||||
self.cmd.arg("--symbols");
|
||||
self
|
||||
}
|
||||
|
||||
/// Pass `--dynamic-table` to display the dynamic symbol table.
|
||||
pub fn dynamic_table(&mut self) -> &mut Self {
|
||||
self.cmd.arg("--dynamic-table");
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify the section to display.
|
||||
pub fn section(&mut self, section: &str) -> &mut Self {
|
||||
self.cmd.arg("--string-dump");
|
||||
|
Loading…
Reference in New Issue
Block a user