Actions
Bug #5298
closedfabs is 0-sized, confuses dis(1) and others
Start date:
2014-11-07
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
Because of the synonyms use in libm, fabs is defined to be __fabs
We have an asm implementation on i386, which does:
ENTRY(fabs)
but then needs to use the 'fabs' instruction, so does:
#undef fabs
And then when it's done does
SET_SIZE(fabs)
It never redefines fabs=__fabs though, so it sets the size of the wrong symbol (the weak one). Leaving the function symbol of incorrectly 0 size.
This confuses dis(1), me, and probably other things and people.
Updated by Electric Monk over 8 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
git commit ddc0e0b53c661f6e439e3b7072b3ef353eadb4af
commit ddc0e0b53c661f6e439e3b7072b3ef353eadb4af Author: Richard Lowe <richlowe@richlowe.net> Date: 2014-11-26T22:05:43.000Z 5261 libm should stop using synonyms.h 5298 fabs is 0-sized, confuses dis(1) and others Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Approved by: Gordon Ross <gwr@nexenta.com>
Actions