1
0

patch-csu_linux_crtbegin_c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- pcc-libs-1.0.0.orig/csu/linux/crtbegin.c 2009-08-17 01:07:07.000000000 +0200
  2. +++ pcc-libs-1.0.0/csu/linux/crtbegin.c 2011-04-12 08:36:48.951412645 +0200
  3. @@ -1,4 +1,4 @@
  4. -/* $Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $ */
  5. +/* $Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $ */
  6. /*-
  7. * Copyright (c) 1998, 2001, 2002 The NetBSD Foundation, Inc.
  8. * All rights reserved.
  9. @@ -40,16 +40,16 @@ void __do_global_dtors_aux(void);
  10. extern void (*__CTOR_LIST__[1])(void);
  11. extern void (*__DTOR_LIST__[1])(void);
  12. -asm( " .section .ctors\n"
  13. - " .align 2\n"
  14. +asm( " .section .ctors,\"aw\",@progbits\n"
  15. + " .align 4\n"
  16. "__CTOR_LIST__:\n"
  17. #ifdef __x86_64__
  18. " .quad -1\n"
  19. #else
  20. " .long -1\n"
  21. #endif
  22. - " .section .dtors\n"
  23. - " .align 2\n"
  24. + " .section .dtors,\"aw\",@progbits\n"
  25. + " .align 4\n"
  26. "__DTOR_LIST__:\n"
  27. #ifdef __x86_64__
  28. " .quad -1\n"
  29. @@ -120,4 +120,4 @@ void __call_##func(void) \
  30. MD_CALL_STATIC_FUNCTION(.init, __do_global_ctors_aux)
  31. MD_CALL_STATIC_FUNCTION(.fini, __do_global_dtors_aux)
  32. -IDENT("$Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $");
  33. +IDENT("$Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $");