2009-04-16 Jeff johnston <jjohnstn@redhat.com>
* libc/misc/init.c (__libc_fini_array): Process fini_array in
        reverse order as compliant with the ELF specification.
			
			
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2009-04-16  Jeff johnston  <jjohnstn@redhat.com> | ||||||
|  |  | ||||||
|  | 	* libc/misc/init.c (__libc_fini_array): Process fini_array in | ||||||
|  | 	reverse order as compliant with the ELF specification. | ||||||
|  |  | ||||||
| 2009-04-16  Ken Werner  <ken.werner@de.ibm.com> | 2009-04-16  Ken Werner  <ken.werner@de.ibm.com> | ||||||
|  |  | ||||||
| 	* libc/machine/spu/Makefile.am: Add new File. | 	* libc/machine/spu/Makefile.am: Add new File. | ||||||
|   | |||||||
| @@ -52,8 +52,8 @@ __libc_fini_array (void) | |||||||
|   size_t i; |   size_t i; | ||||||
|    |    | ||||||
|   count = __fini_array_end - __fini_array_start; |   count = __fini_array_end - __fini_array_start; | ||||||
|   for (i = 0; i < count; i++) |   for (i = count; i > 0; i--) | ||||||
|     __fini_array_start[i] (); |     __fini_array_start[i-1] (); | ||||||
|  |  | ||||||
|   _fini (); |   _fini (); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user