<commit_before>diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/binutils/ld/scripttempl/elf.sc ./binutils/ld/scripttempl/elf.sc
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/binutils/ld/scripttempl/elf.sc	2015-08-19 02:43:39.183906485 +0100
+++ ./binutils/ld/scripttempl/elf.sc	2015-08-19 02:46:26.363911465 +0100
@@ -536,7 +536,8 @@
   ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
   ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
   ${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
-
+  /* Hacky hackity hack. Need this because otherwise data segment is not aligned enough. */
+  . = ALIGN(0x10000);
   /* Exception handling  */
   .eh_frame     ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
   .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/gcc/gcc/gcc.c ./gcc/gcc/gcc.c
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/gcc/gcc/gcc.c	2015-08-19 02:43:39.183906485 +0100
+++ ./gcc/gcc/gcc.c	2015-08-19 02:47:08.813912731 +0100
@@ -525,8 +525,9 @@
 #endif
 
 /* config.h can define LIB_SPEC to override the default libraries.  */
+#undef LIB_SPEC
 #ifndef LIB_SPEC
-#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lSceKernel_stub -lUVLoader_stub"
 #endif
 
 /* When using -fsplit-stack we need to wrap pthread_create, in order
diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/libelf-0.8.13/configure ./libelf-0.8.13/configure
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/libelf-0.8.13/configure	2015-08-19 02:43:39.183906485 +0100
+++ ./libelf-0.8.13/configure	2015-08-19 02:47:24.203913188 +0100
@@ -1595,7 +1595,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   if test "$cross_compiling" = yes; then
-  ac_cv_sizeof_long_long=0
+  ac_cv_sizeof_long_long=8
 else
   cat > conftest.$ac_ext <<EOF
 #line 1602 "configure"<commit_msg>Revert "Merge pull request #9 from xyzz/revert-8-scertc"<commit_after>diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/binutils/ld/scripttempl/elf.sc ./binutils/ld/scripttempl/elf.sc
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/binutils/ld/scripttempl/elf.sc	2015-08-19 02:43:39.183906485 +0100
+++ ./binutils/ld/scripttempl/elf.sc	2015-08-19 02:46:26.363911465 +0100
@@ -536,7 +536,8 @@
   ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
   ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
   ${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
-
+  /* Hacky hackity hack. Need this because otherwise data segment is not aligned enough. */
+  . = ALIGN(0x10000);
   /* Exception handling  */
   .eh_frame     ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
   .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/gcc/gcc/gcc.c ./gcc/gcc/gcc.c
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/gcc/gcc/gcc.c	2015-08-19 02:43:39.183906485 +0100
+++ ./gcc/gcc/gcc.c	2015-08-19 02:47:08.813912731 +0100
@@ -525,8 +525,9 @@
 #endif
 
 /* config.h can define LIB_SPEC to override the default libraries.  */
+#undef LIB_SPEC
 #ifndef LIB_SPEC
-#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lSceRtc_stub -lSceKernel_stub -lUVLoader_stub"
 #endif
 
 /* When using -fsplit-stack we need to wrap pthread_create, in order
diff -ru ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/libelf-0.8.13/configure ./libelf-0.8.13/configure
--- ../../gcc-arm-none-eabi-4_9-2015q2-20150609/src/libelf-0.8.13/configure	2015-08-19 02:43:39.183906485 +0100
+++ ./libelf-0.8.13/configure	2015-08-19 02:47:24.203913188 +0100
@@ -1595,7 +1595,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   if test "$cross_compiling" = yes; then
-  ac_cv_sizeof_long_long=0
+  ac_cv_sizeof_long_long=8
 else
   cat > conftest.$ac_ext <<EOF
 #line 1602 "configure"
{'fraction_non_alphanumeric': 0.21263958184842005, 'fraction_numerical': 0.14777856973152767, 'mean_word_length': 3.816933638443936, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2515481', 'n_tokens_mistral': 2299, 'n_tokens_neox': 1839, 'n_words': 264}