Advertisement
Guest User

Untitled

a guest
Nov 5th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. --- a/toolchain/toolchain-wrapper.c
  2. +++ b/toolchain/toolchain-wrapper.c
  3. @@ -447,6 +447,19 @@ int main(int argc, char **argv)
  4. !strcmp(argv[i], "-D__UBOOT__"))
  5. break;
  6. }
  7. +
  8. + /* Catch the case where headers are being generated
  9. + * and the link time RELRO flags shouldn't be set.
  10. + *
  11. + * https://bugzilla.redhat.com/show_bug.cgi?id=718719
  12. + * https://lists.fedoraproject.org/pipermail/devel/2011-July/153864.html
  13. + * https://github.com/domoticz/domoticz/commit/68698e7a5dce80dea5a9b997d7e171b80bf566ac
  14. + */
  15. + for (i = 1; i < argc; i++) {
  16. + if (!strcmp(argv[i], "-xc-header") ||
  17. + !strcmp(argv[i], "-xc++-header"))
  18. + break;
  19. + }
  20. if (i == argc) {
  21. /* https://wiki.gentoo.org/wiki/Hardened/Toolchain#Mark_Read-Only_Appropriate_Sections */
  22. #ifdef BR2_RELRO_PARTIAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement