Hide Forgot
Description of problem: The annobin plugin for gcc uses a new assembler pseudo-op to attach a section to a group. Support for this pseudo-op is available in the assembler shipped with the RHEL-8 binutils, but not currently in the assembler shipped with RHEL-7. Version-Release number of selected component (if applicable): 2.27-37 How reproducible: 100% Steps to Reproduce: 1. Assemble this file: --------------------------------------------- .pushsection .gnu.build.attributes..text.destructor_func, "G", %note, .text.destructor_func.group .balign 4 .dc.l 12 .dc.l 16 .dc.l 0x101 .dc.b 0x47, 0x41, 0x2a, 0x6, 0x12, 0, 0, 0, 0x11, 0, 0xc, 0 .quad .annobin_destructor_func.start .quad .annobin_destructor_func.end .popsection .section .text.destructor_func,"ax",@progbits .type destructor_func, @function destructor_func: .LFB11: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl $0, disabled(%rip) nop popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE11: .size destructor_func, .-destructor_func .pushsection .text.destructor_func .attach_to_group .text.destructor_func.group .popsection ------------------------------------- Actual results: % as attach.s attach.s: Assembler messages: attach.s:31: Error: unknown pseudo-op: `.attach_to_group' Expected results: % as attach.s % Additional info: The file binutils-attach-to-group.patch in the RHEL-8 binutils srpm contains the patch for RHEL-8. All that should be necessary is to backport this patch to RHEL-7.
Fixed in version binutils-2.27-37.base.el7.
Verified with binutils-2.27-41.base.el7.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:2075