Closed mudbri closed 2 years ago
I added a new option --config-prime-spec-only-globals
(commit 8c49830) that when enabled reduces the likelihood of over-specialization. With this option, the specialized binary should produce the correct answer.
Both of the applications are working correctly with the --config-prime-spec-only-globals option
The specialized binary of readelf and objdump, when specialized with configuration priming, result in an incorrect output. The files required to reproduce the problem can be found here. The issue can be reproduced in the following way:
The test compares the output of the specialized binary against the output of the unspecialized binary using the same arguments and input file. The test fails when the --enable-config-prime flag is provided but passes when the flag is not provided (e.g. slash --work-dir=slash_objdump objdump.manifest). It seems like this issue is also caused by overspecialization.