Offer an option to build the gdbserver statically. This helps in case of debugging shared library loading.
1 Trivial fix to allow compiling with gcc3.3.
3 --- glibc-2.2.5/sysdeps/alpha/elf/initfini.c.old Fri Jun 6 17:59:45 2003
4 +++ glibc-2.2.5/sysdeps/alpha/elf/initfini.c Fri Jun 6 18:00:20 2003
6 files, all of which may have different GP values. So we must reload
7 the GP value from crti.o in crtn.o. */
15 -/*@_init_PROLOG_BEGINS*/
16 - .section .init, \"ax\", @progbits
22 - lda $27, __gmon_start__
27 - jsr $26, ($27), __gmon_start__
33 -/*@_init_PROLOG_ENDS*/
35 -/*@_init_EPILOG_BEGINS*/
36 - .section .init, \"ax\", @progbits
41 -/*@_init_EPILOG_ENDS*/
43 -/*@_fini_PROLOG_BEGINS*/
44 - .section .fini, \"ax\", @progbits
56 -/*@_fini_PROLOG_ENDS*/
58 -/*@_fini_EPILOG_BEGINS*/
59 - .section .fini, \"ax\", @progbits
64 -/*@_fini_EPILOG_ENDS*/
69 +#include \"defs.h\"\n\
73 +/*@_init_PROLOG_BEGINS*/\n\
74 + .section .init, \"ax\", @progbits\n\
79 + subq $30, 16, $30\n\
80 + lda $27, __gmon_start__\n\
85 + jsr $26, ($27), __gmon_start__\n\
91 +/*@_init_PROLOG_ENDS*/\n\
93 +/*@_init_EPILOG_BEGINS*/\n\
94 + .section .init, \"ax\", @progbits\n\
97 + addq $30, 16, $30\n\
99 +/*@_init_EPILOG_ENDS*/\n\
101 +/*@_fini_PROLOG_BEGINS*/\n\
102 + .section .fini, \"ax\", @progbits\n\
106 + ldgp $29, 0($27)\n\
107 + subq $30, 16, $30\n\
114 +/*@_fini_PROLOG_ENDS*/\n\
116 +/*@_fini_EPILOG_BEGINS*/\n\
117 + .section .fini, \"ax\", @progbits\n\
120 + addq $30, 16, $30\n\
122 +/*@_fini_EPILOG_ENDS*/\n\
124 +/*@TRAILER_BEGINS*/\n\