This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81490] x86: Handling of symbol ranges for __seg_fs/__seg_gs


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81490

--- Comment #19 from H. Peter Anvin <hpa at zytor dot com> ---
So the Linux kernel, right now, basically does (b); we'd like to do something
more like (a).

Because the stack canary (which is a percpu variable in the Linux kernel) is
hard-coded in gcc to be %gs:0x28, models (c) and (d) are not available to us. 
Even if they were, it would have issues with moving modules further than 2G
from the main kernel.

We don't need the special relocations since we can see which references point
into the appropriate section during our post-link processing, but someone else
may have use for them.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]