Thread (16 messages) 16 messages, 6 authors, 2018-08-31

Re: [PATCH] treewide: remove current_text_addr

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2018-08-26 04:58:10
Also in: linux-m68k, linux-mips, linux-riscv, linux-um, linuxppc-dev

On 08/25/18 20:16, H. Peter Anvin wrote:
On 08/25/18 19:38, H. Peter Anvin wrote:
quoted
If it was worthwhile it would make more sense to at least force this
into the rodata section with the string, something like the attached
file for an example; however, I have a hunch it doesn't matter.
An even nuttier version which avoids the extra pointer indirection.
Read it and fear.

	-hpa
OK, so one more thing, I guess: it is necessary to suppress the tailcall
optimization for _RET_IP_ to make any sense, but that should be pretty
simple:

static inline void notailcall(void)
{
	asm volatile("");
}

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help