Skip to content
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

Add --dwarf-start=0 option to remove the file path in the output #205

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

lebr0nli
Copy link
Contributor

@lebr0nli lebr0nli commented Jul 7, 2023

This should probably resolve #204

@david942j
Copy link
Owner

Thanks for the fix! The change looks good. The test failure seems caused by deprecated package, I will check how to fix it.

@@ -31,7 +31,12 @@ def extra_options=(options)
# @param [Integer] stop The end address.
# @return [String] The CLI command to be executed.
def command(start: nil, stop: nil)
cmd = [bin, '--no-show-raw-insn', '-w', '-d', *@options, @file]
# --dwarf-start=0 is to make sure `suppress_bfd_header` is true to eliminate the information that includes the file path:
Copy link
Owner

Choose a reason for hiding this comment

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

lib/one_gadget/fetchers/objdump.rb:34:121: C: Layout/LineLength: Line is too long. [129/120] (https://rubystyle.guide#max-line-length)
# --dwarf-start=0 is to make sure suppress_bfd_header is true to eliminate the information that includes the file path:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, done :)
I moved some details to #204, hopefully this problem has been resolved now.

@david942j
Copy link
Owner

Hi @lebr0nli, I just submitted a fix for the test failure #208, could you rebase the master branch?

@lebr0nli
Copy link
Contributor Author

Hi @lebr0nli, I just submitted a fix for the test failure #208, could you rebase the master branch?

No problem, done :)

@david942j david942j merged commit cdf889a into david942j:master Jul 26, 2023
@david942j
Copy link
Owner

Thanks for this fix!

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.

The filename that ends with a number might cause one_gadget to fail to find some gadgets for amd64
2 participants