| Summary: | sys-power/powertop-1.10 - intelcstates.c:48: error: can't find a register in class `BREG' while reloading `asm' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Cédric Krier <cedk> |
| Component: | Hardened | Assignee: | The Gentoo Linux Hardened Team <hardened> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | atoth, kanelxake, mobile+disabled |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Modified ebuild applies a PIC patch for the Assembly code
Modifications for the cpuid Asembly code |
||
|
Description
Cédric Krier
2008-09-01 17:51:11 UTC
No time to look deeper right now but this can most likely be worked around by using -hardenednopie gcc specs. I've created a modified ebuild based on Sam Hocevar's discussion on PIC-aware Assembly code. Works for me. http://sam.zoy.org/blog/2007-04-13-shlib-with-non-pic-code-have-inline-assembly-and-pic-mix-well Regards, Dw. Created attachment 165361 [details]
Modified ebuild applies a PIC patch for the Assembly code
Modified ebuild applies a PIC patch for the Assembly code
Created attachment 165365 [details, diff]
Modifications for the cpuid Asembly code
Modifications for the cpuid Asembly code
Thank you Attila Tóth! Adding mobile@g.o to CC. (In reply to comment #5) > Thank you Attila Tóth! Adding mobile@g.o to CC. > It may worth to be reported upstreams. Regards, Dwokfur Reported upstream. Preliminary comments positive. We have to see what enters git, tho. http://www.bughost.org/pipermail/power/2008-November/001463.html (In reply to comment #7) > Reported upstream. Preliminary comments positive. We have to see what enters > git, tho. > > http://www.bughost.org/pipermail/power/2008-November/001463.html > Thanks, Xake. Fortunately cpuid is not a performance limiting instruction of powertop. I don't know how many users are running hardened toolchain on their laptops, but the reporter of the bug probably does, so at least two persons can benefit.. :) Regards, Dw. Fix is in sys-power/powertop-1.11 as per upstream. Many thanks to Attila Tóth for the patch and Xake for pushing it upstream. mobile@ - will you (or may I?) remove sys-power/powertop-1.10 and close out this bug? No reported bugs in sys-power/powertop-1.11. In fact, this is the only bug for sys-power/powertop. ;) sys-power/powertop-1.11 in the tree for 30+ days, works great, no open bugs and no response in this bug. As such, sys-power/powertop-1.10 has been removed, closing. |