Advertisement
Guest User

IRIX Fixes for Dropbear 2020.81

a guest
Apr 19th, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. diff -urnp dropbear-2020.81/libtomcrypt/makefile_include.mk dropbear-2020.81-patched/libtomcrypt/makefile_include.mk
  2. *** dropbear-2020.81/libtomcrypt/makefile_include.mk Thu Oct 29 09:35:50 2020
  3. --- dropbear-2020.81-patched/libtomcrypt/makefile_include.mk Wed Apr 14 13:27:29 2021
  4. *************** LTC_CFLAGS += -W
  5. *** 83,89 ****
  6. # older GCCs can't handle the "rotate with immediate" ROLc/RORc/etc macros
  7. # define this to help
  8. LTC_CFLAGS += -DLTC_NO_ROLC
  9. ! else
  10. LTC_CFLAGS += -Wextra
  11. # additional warnings
  12. LTC_CFLAGS += -Wsystem-headers -Wbad-function-cast -Wcast-align
  13. --- 83,91 ----
  14. # older GCCs can't handle the "rotate with immediate" ROLc/RORc/etc macros
  15. # define this to help
  16. LTC_CFLAGS += -DLTC_NO_ROLC
  17. ! endif
  18. !
  19. ! ifdef GNUC
  20. LTC_CFLAGS += -Wextra
  21. # additional warnings
  22. LTC_CFLAGS += -Wsystem-headers -Wbad-function-cast -Wcast-align
  23. diff -urnp dropbear-2020.81/libtommath/Makefile.in dropbear-2020.81-patched/libtommath/Makefile.in
  24. *** dropbear-2020.81/libtommath/Makefile.in Thu Oct 29 09:35:50 2020
  25. --- dropbear-2020.81-patched/libtommath/Makefile.in Wed Apr 14 13:39:24 2021
  26. *************** srcdir=@srcdir@
  27. *** 7,13 ****
  28.  
  29. # So that libtommath can include Dropbear headers for options and m_burn()
  30. CFLAGS += -I$(srcdir) -I../libtomcrypt/src/headers/ -I$(srcdir)/../libtomcrypt/src/headers/ -I../ -I$(srcdir)/../
  31. - CFLAGS += -Wno-deprecated
  32.  
  33. V = 1
  34.  
  35. --- 7,12 ----
  36. diff -urnp dropbear-2020.81/libtommath/makefile_include.mk dropbear-2020.81-patched/libtommath/makefile_include.mk
  37. *** dropbear-2020.81/libtommath/makefile_include.mk Thu Oct 29 09:35:50 2020
  38. --- dropbear-2020.81-patched/libtommath/makefile_include.mk Wed Apr 14 13:40:00 2021
  39. *************** else
  40. *** 48,54 ****
  41. endif
  42. endif
  43.  
  44. - LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow
  45.  
  46. # renamed for Dropbear to avoid clash with oss-fuzz $SANITIZER var
  47. ifdef LTM_SANITIZER
  48. --- 48,53 ----
  49. *************** ifdef LTM_SANITIZER
  50. *** 55,61 ****
  51. LTM_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero
  52. endif
  53.  
  54. ! ifndef NO_ADDTL_WARNINGS
  55. # additional warnings
  56. LTM_CFLAGS += -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align
  57. LTM_CFLAGS += -Wstrict-prototypes -Wpointer-arith
  58. --- 54,63 ----
  59. LTM_CFLAGS += -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero
  60. endif
  61.  
  62. ! ifdef GNUC
  63. ! LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wno-deprecated
  64. ! else ifdef NO_ADDTL_WARNINGS
  65. ! LTM_CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wno-deprecated
  66. # additional warnings
  67. LTM_CFLAGS += -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align
  68. LTM_CFLAGS += -Wstrict-prototypes -Wpointer-arith
  69. *************** LTM_CFLAGS += -std=c89 -Wconversion -Wsi
  70. *** 66,72 ****
  71. ifeq ($(CONV_WARNINGS), strict)
  72. LTM_CFLAGS += -DMP_USE_ENUMS -Wc++-compat
  73. endif
  74. ! else
  75. LTM_CFLAGS += -Wsystem-headers
  76. endif
  77.  
  78. --- 68,74 ----
  79. ifeq ($(CONV_WARNINGS), strict)
  80. LTM_CFLAGS += -DMP_USE_ENUMS -Wc++-compat
  81. endif
  82. ! else ifdef GNUC
  83. LTM_CFLAGS += -Wsystem-headers
  84. endif
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement