Re: Compiling parisc without -ffunction-sections?

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

 



On 2018-04-20 9:20 AM, James Bottomley wrote:
On Fri, 2018-04-20 at 23:07 +1000, Nicholas Piggin wrote:
Does parisc still need to use -ffunction-sections flag, now that we
build with thin archives and don't use `ld -r`? I think it should not
be required anymore.
I think we may have some modules that are too big.  The original
problem is that without -ffunction-sections, the linker doesn't have
any way of inserting trampolines in the middle of the text code, and
our relative jumps are comparatively short distance, so to get from the
code to the PLT is sometimes to far for a single relative jump.
Correct.  This is not just an issue with `ld -r`.

The -ffunction-sections flag is only helpful for 32-bit PA 1.x builds.  PA 2.0 `b,l` branches are 32 times longer and it's unlikely the maximum module size is exceeded in a 32-bit build.

The 64-bit linker doesn't support adding long branch stubs.  This limits the maximum kernel
size to about 8 MB using without using long calls.  They are slow.

I would keep this option for PA 1.x builds.

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