bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/23539] New: --incremental-update doesn't work with GNU propert


From: hjl.tools at gmail dot com
Subject: [Bug gold/23539] New: --incremental-update doesn't work with GNU properties
Date: Thu, 16 Aug 2018 23:01:14 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23539

            Bug ID: 23539
           Summary: --incremental-update doesn't work with GNU properties
           Product: binutils
           Version: 2.32 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: hjl.tools at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

address@hidden gold-2]$ cat x.s
        .section ".note.gnu.property", "a"
.ifdef __64_bit__
        .p2align 3
.else
        .p2align 2
.endif
        .long 1f - 0f           /* name length.  */
        .long 3f - 1f           /* data length.  */
        /* NT_GNU_PROPERTY_TYPE_0 */
        .long 5                 /* note type.  */
0:
        .asciz "GNU"            /* vendor name.  */
1:
.ifdef __64_bit__
        .p2align 3
.else
        .p2align 2
.endif
        /* GNU_PROPERTY_X86_ISA_1_USED */
        .long 0xc0000000        /* pr_type.  */
        .long 5f - 4f           /* pr_datasz.  */
4:
        .long 0xa
5:
.ifdef __64_bit__
        .p2align 3
.else
        .p2align 2
.endif
3:
address@hidden gold-2]$ cat a.s
        .text
        .globl  _start
        .type   _start, @function
_start:
        ret
        .size   _start, .-_start
address@hidden gold-2]$ make
as -defsym __64_bit__=1   -o x.o x.s
as -defsym __64_bit__=1   -o a.o a.s
cp x.o x1.o
./ld --incremental-full --incremental-patch=10 -z norelro -no-pie  -o x1 x1.o
a.o
cp x.o x1.o
cp x1 x1.saved
./ld -z norelro -no-pie  --incremental-update -o x1 x1.o a.o
./ld: internal error in set_section_addresses, at
/export/gnu/import/git/sources/binutils-gdb/gold/output.cc:4443
make: *** [Makefile:39: x2] Error 1
address@hidden gold-2]$ 

merge_gnu_properties doesn't take --incremental-update into account.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]