Add more flags for llvm-readobj

This commit is contained in:
Jerry Wang 2024-06-19 16:12:15 -04:00
parent ac47dbad50
commit 6db3289de7
No known key found for this signature in database
GPG Key ID: B9657729C5192EDC

View File

@ -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");