Page MenuHomeFreeBSD

boot/efi: Prefer nm to objdump
ClosedPublic

Authored by emaste on Mar 11 2016, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2024, 1:35 PM
Unknown Object (File)
Oct 22 2024, 9:14 AM
Unknown Object (File)
Sep 21 2024, 5:24 AM
Unknown Object (File)
Sep 20 2024, 1:54 AM
Unknown Object (File)
Sep 19 2024, 10:28 PM
Unknown Object (File)
Sep 18 2024, 8:20 PM
Unknown Object (File)
Sep 2 2024, 4:11 PM
Unknown Object (File)
Sep 2 2024, 7:24 AM
Subscribers
None

Details

Summary

This gets us a step closer to building without binutils as we have an nm implementation from ELF Tool Chain.

Test Plan
  • apply patch, verify buildworld passes
  • add a call to a dummy undef function, verify buildworld fails

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to boot/efi: Prefer nm to objdump.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added reviewers: imp, bdrewery.

rework test to avoid bare !

bdrewery edited edge metadata.
This revision is now accepted and ready to land.Mar 12 2016, 7:35 PM
bdrewery edited edge metadata.

Wait it has an issue

This revision now requires changes to proceed.Mar 12 2016, 7:36 PM

sh -c 'set -e; true | false && exit 2;'; echo $?
when the && fails it still exits with an error
putting it in a if line fixes that

if ${NM} ${.ALLSRC} | grep ' U'; then exit 1; fi

sh -c 'set -e; true | false && exit 2;'; echo $?
when the && fails it still exits with an error
putting it in a if line fixes that

if ${NM} ${.ALLSRC} | grep ' U'; then exit 1; fi

But exit won't work in make so use false instead.

Or rework it to use || which won't default fail

sh -c 'set -e; true | false && exit 2;'; echo $?
when the && fails it still exits with an error
putting it in a if line fixes that

if ${NM} ${.ALLSRC} | grep ' U'; then exit 1; fi

But exit won't work in make so use false instead.

Sorry, exit is fine here. It's not as a bare command.

emaste edited edge metadata.

Update per @bdrewery's comment

bdrewery edited edge metadata.
This revision is now accepted and ready to land.Mar 12 2016, 8:26 PM
This revision was automatically updated to reflect the committed changes.