[PATCH] Fix alpha elf_machine_load_address

Ulrich Drepper drepper@redhat.com
Wed Sep 19 11:02:00 GMT 2001


Richard Henderson <rth@redhat.com> writes:

>   asm ("bsr %0,1f	\n\
> 	.data		\n\
> 	.align 3	\n\
> 	nop		\n\
> 1:	ret %0,(%0),0	\n\
> 	.quad .		\n\
> 	.previous"
> 	: "=r"(addr));

This would assume that the data section is executable which isn't
normally the case.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list