This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Fix strip-all-gnu test
ClosedPublic

Authored by asi-sc on Feb 1 2023, 8:55 AM.

Details

Summary

Originally the test has a bug: in the input YAML .symtab.dyn section has a type
repeated twice with different values (SHT_SYMTAB and SHT_NOBITS). YAML parser
took SHT_NOBITS as a type of the section, so the test wasn't checking the desired
case.

This patch changes the test to verify that a section with SHT_SYMTAB type and
SHF_ALLOC flag is not removed when --strip-all-gnu flag present.

Diff Detail

Event Timeline

asi-sc created this revision.Feb 1 2023, 8:55 AM
asi-sc requested review of this revision.Feb 1 2023, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 8:55 AM
asi-sc added a comment.Feb 1 2023, 8:58 AM

Discussion related to this fix can be found in D141848 (see 1 , 2, 3).

jhenderson accepted this revision.Feb 2 2023, 12:38 AM

LGTM, thanks. Maybe give 24 hours in case anybody else has any comments.

This revision is now accepted and ready to land.Feb 2 2023, 12:38 AM
MaskRay accepted this revision.Feb 2 2023, 11:57 AM
This revision was automatically updated to reflect the committed changes.