[parisc-linux] unaligned access using bash on glibc 2.5
Aurelien Jarno
aurelien at aurel32.net
Wed May 2 09:36:37 MDT 2007
John David Anglin a écrit :
>> On Wed, May 02, 2007 at 11:38:51AM +0200, Aurelien Jarno wrote:
>>> Please find the reduced testcase below. When the value is assigned to
>>> __libc_errno, the value of r19 has been overrided by the call to free().
>>>
>> And a smaller one:
>>
>>
>> extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
>
> This is a bug in __attribute__ ((tls_model ("initial-exec"))). It
> doesn't express that it uses r19. As a result, GCC is free to optimize
> the save and restore of r19 across the call to free away.
>
> The same is true of the asm.
What would be the correct way to express that?
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32 at debian.org | aurelien at aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
More information about the parisc-linux
mailing list