[Uclinux-h8-devel] [PATCH] treewide: remove current_text_addr

Zurück zum Archiv-Index

H. Peter Anvin hpa****@zytor*****
2018年 8月 26日 (日) 13:56:11 JST


On 08/25/18 20:16, H. Peter Anvin wrote:
> On 08/25/18 19:38, H. Peter Anvin wrote:
>>
>> 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




Uclinux-h8-devel メーリングリストの案内
Zurück zum Archiv-Index