andreas-abel / nanoBench

A tool for running small microbenchmarks on recent Intel and AMD x86 CPUs.
http://www.uops.info
GNU Affero General Public License v3.0
435 stars 55 forks source link

explicitly copy only the .text segment when assembling measured code #22

Closed eigenform closed 3 years ago

eigenform commented 3 years ago

I updated my Arch Linux machine, and it seems like my binutils behavior has changed (from 2.35.1-1 to 2.36.1-2). I didn't check the behavior on Ubuntu 18.04 but, either:

Either way, this is easily fixed by just explicitly specifying that we only want the .text segment when assembling with the shell scripts.