Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-16798

--compress-debug-sections option doesn't work for GCC >= 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      Wa,-compress-debug-sections was enabled in 4f0694e3af45e535bea8b28c6d4fec31ec81f73e/r59505 to reduce build folder size.
      The official documentation even says that it's for ELF binaries only, but it definitely works for us with RosBE 2.1 see (https://sourceware.org/binutils/docs/as/Overview.html#index-_002d_002dcompress_002ddebug_002dsections_003d-option)

      I tested this on binutils 2.32/GCC 8.3 and binutils 2.34/GCC 8.4
      For the 2.32, it throws messages like this:

      ld: *binary* bad reloc address 0x475 in section `.zdebug_info'
      

      And for 2.34, it says this:

      ld: final link failed: bad value
      

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              extravert34 extravert34
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: