Re: Compiling parisc without -ffunction-sections?

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

 



On 2018-04-20 10:38 PM, Nicholas Piggin wrote:
Well I'm interested. Would you really have a single .c/.S file that
benefits from it? It's possible.
I take back what I said.

There are files where the text size is significantly larger than the maximum branch distance
for a PA 1.x relative `bl` branch:

dave@mx3210:~/linux/linux$ /usr/bin/hppa64*size ./drivers/scsi/lpfc/lpfc.o
         text    data     bss     dec     hex filename
 734090   19872    2128  756090   b897a ./drivers/scsi/lpfc/lpfc.o

However, the compiler turns these short branches into long branches when the branch can't reach the stub table.  If this works, -ffunction-sections isn't needed.

Sometimes this fails when the stub table overflows but this is rare.

Dave

--
John David Anglin  dave.anglin@xxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux