Messages in this thread | | | Date | Fri, 23 Nov 2018 10:40:52 -0600 | From | Josh Poimboeuf <> | Subject | Re: [PATCH] x86: only use ERMS for user copies for larger sizes |
| |
On Thu, Nov 22, 2018 at 12:13:41PM +0100, Ingo Molnar wrote: > Note to self: watch out for patches that change altinstructions and don't > make premature vmlinux size impact assumptions. :-)
I noticed a similar problem with ORC data. As it turns out, size's "text" calculation also includes read-only sections. That includes .rodata and anything else not writable.
Maybe we need a more sensible "size" script for the kernel. It would be trivial to implement based on the output of "readelf -S vmlinux".
-- Josh
| |