Skip to content

goto-ld: handle EFI binaries gracefully #2557

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

Merged
merged 1 commit into from
May 4, 2021

Conversation

tautschnig
Copy link
Collaborator

Running objcopy on EFI binaries does not work, hence we need to give up on the
goto-cc sections in a graceful manner.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Passed Diffblue compatibility checks (cbmc commit: bf3e60e).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/78363133

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

Passed Diffblue compatibility checks (cbmc commit: e0a6c3c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/80735410

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 0c43341).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/89856627

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 87572ed).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/103512523

@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #2557 (5f993c1) into develop (0e34169) will increase coverage by 0.02%.
The diff coverage is 36.94%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2557      +/-   ##
===========================================
+ Coverage    74.25%   74.27%   +0.02%     
===========================================
  Files         1445     1445              
  Lines       157479   157669     +190     
===========================================
+ Hits        116933   117113     +180     
- Misses       40546    40556      +10     
Impacted Files Coverage Δ
src/ansi-c/expr2c.cpp 58.48% <ø> (ø)
src/goto-cc/ld_mode.cpp 35.71% <0.00%> (-11.91%) ⬇️
src/util/format_expr.cpp 84.87% <0.00%> (-0.79%) ⬇️
src/util/pointer_expr.cpp 72.82% <0.00%> (-18.96%) ⬇️
src/util/pointer_expr.h 77.34% <0.00%> (-22.66%) ⬇️
src/util/simplify_expr_class.h 100.00% <ø> (ø)
...riable-sensitivity/abstract_object/index_range.cpp 100.00% <ø> (ø)
src/solvers/flattening/bv_pointers.cpp 81.26% <13.04%> (-3.36%) ⬇️
src/goto-cc/hybrid_binary.cpp 62.06% <50.00%> (-7.50%) ⬇️
src/ansi-c/c_typecheck_expr.cpp 75.17% <75.00%> (-0.01%) ⬇️
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc30590...5f993c1. Read the comment docs.

@tautschnig tautschnig requested a review from a team as a code owner March 16, 2021 23:49
@@ -40,7 +40,7 @@ class ld_modet : public goto_cc_modet
/// \brief call ld with original command line
int run_ld();

int ld_hybrid_binary(bool);
int ld_hybrid_binary(bool, const std::list<std::string> &);
};
Copy link
Member

Choose a reason for hiding this comment

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

This is a case where I would include the parameter declarators, as a means of documenting what the arguments would do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done and documentation for the method added.

Running objcopy on EFI binaries does not work, hence we need to give up
on the goto-cc sections in a graceful manner.

This makes the Xen build GitHub action complete successfully without
having to fall back to the `-k || true` workaround that was in place.
Copy link
Contributor

@chrisr-diffblue chrisr-diffblue left a comment

Choose a reason for hiding this comment

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

Looks sensible to me.

@tautschnig tautschnig merged commit 7795e1e into diffblue:develop May 4, 2021
@tautschnig tautschnig deleted the efi-handling branch May 4, 2021 13:53
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