Re: [RFC] fix the relative jump problem on large modules

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

 



> The theory was that the linker should do the right thing and not emit a
> relocation that can't reach the boundary of the text segment (i.e. it
> should embed a stub between the sections as it combines them).  I'll
> have to fire up a 32 bit compile and see exactly what it thinks it's
> doing ... I've got a nasty feeling it expects us to be able to stub
> either at the beginning or the end, which the in-kernel loader doesn't.

See ld --stub-group-size=N option.  GCC assumes stub sections are at
the beginning and that the linker can insert stubs between input sections.
Merging text sections is likely to cause problems.

Dave
-- 
J. David Anglin                                  dave.anglin@xxxxxxxxxxxxxx
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
--
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