Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-50536

Backport .relro_padding entsize fix

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • binutils
    • None
    • binutils-2.35.2-51.el9
    • No
    • None
    • 2
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • 23
    • 25
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • GCC Sprint 7, GCC Sprint 8
    • Unspecified Release Note Type - Unknown
    • None

      objcopy changes entsize of .relro_padding section generated by lld, which may break processing by other tools (in particular eu-strip). The overall effect is that debuginfo extraction by find-debuginfo may fail on lld-generated artifacts on the i686 architecture.

      This has been fixed in upstream binutils in commit 88141209e25ce19473ec07d7aac09cc68f06a630.


      Issue can be reproduced by running objcopy on the shared object https://drive.google.com/file/d/1Wpju3kKq2-U0BX7NoJ2KFL6hVF494kZJ/view?usp=sharing. Then readelf --section-headers will print

      [24] .relro_padding    NOBITS          02521d2c 251fd2c 0002d4 08  WA  2   0  1
      

      instead of

      [24] .relro_padding    NOBITS          02521d2c 251fd2c 0002d4 00  WA  0   0  1
      

              mprchlik@redhat.com Milos Prchlik
              npopov@redhat.com Nikita Popov
              Nick Clifton Nick Clifton
              Milos Prchlik Milos Prchlik
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: