~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to debian/patches/klibc-hppa-fix-atexit.patch

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2006-01-16 10:19:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060116101939-6nkaq9p9s6xd5nxo
Tags: 1.1.16-1ubuntu1
Resync with debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
The PA-RISC ELF ABI puts the function pointer to be registered
 
2
with atexit in %r23. Use this instead of passing in NULL. While
 
3
it's unlikely to be used, doing the right thing is good.
 
4
 
 
5
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
 
6
 
 
7
diff --git a/klibc/arch/parisc/crt0.S b/klibc/arch/parisc/crt0.S
 
8
index 7428443..a9b6e96 100644
 
9
--- a/klibc/arch/parisc/crt0.S
 
10
+++ b/klibc/arch/parisc/crt0.S
 
11
@@ -25,8 +25,8 @@ _start: 
 
12
        ldil    L%$global$, %dp
 
13
        ldo     R%$global$(%dp), %dp
 
14
 
 
15
-/* Indicate that we don't need no stinkin' atexit callback */
 
16
-       ldi     0,%r25
 
17
+/* parisc abi puts the atexit pointer in %r23, see ELF_PLAT_INIT() */
 
18
+       copy    %r23, %r25
 
19
 
 
20
 /* branch to __libc_init */
 
21
        bl      __libc_init,%r2
 
22
 
 
23
_______________________________________________
 
24
klibc mailing list
 
25
klibc@zytor.com
 
26
http://www.zytor.com/mailman/listinfo/klibc
 
27