[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#588391: gcc-4.4: please automatically use -ffunction-sections when necessary with -fPIC



On 08.07.2010 01:42, brian m. carlson wrote:
Package: gcc-4.4
Version: 4.4.4-6
Severity: wishlist

Because the ELF ABI for hppa requires relative jumps which are limited
to 17 bits[0], programs frequently require the use of
-ffunction-sections.  It would be preferable if (on hppa or otherwise)
-ffunction-sections were implied by -fPIC when otherwise gcc would
generate text sections that are too large.  After all, there's really no
reason to generate .o files that are, for all practical purposes,
useless.  It would also make numerous package maintainers and hppa
porters very happy, I suspect.

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558999#15

as this specific example shows, -ffunction-sections isn't enough, but -mlong-calls is needed.


Reply to: