Просмотр исходного кода

Make bfd happy with the OpenSSL forward compat

Bryan Drewery 6 лет назад
Родитель
Сommit
fad1d898ee
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      src/generate_defs.sh
  2. 5 0
      src/main.cc

+ 1 - 0
src/generate_defs.sh

@@ -31,6 +31,7 @@ for file in ${files}; do
 done
 
 echo "{" > $exportsFile
+echo "bfd_exports_stub;" >> $exportsFile
 for file in ${files}; do
   suffix=${file##*.}
   basename=${file%%.*}

+ 5 - 0
src/main.cc

@@ -938,4 +938,9 @@ int main(int argc, char **argv)
 
   return 0;		/* never reached but what the hell */
 }
+
+/* bfd doesn't link empty --dynamic-list file. */
+void bfd_exports_stub(void)
+{
+}
 /* vim: set sts=2 sw=2 ts=8 et: */