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

            Bug ID: 25490
           Summary: __patchable_function_entries section doesn't work with
                    --gc-sections
           Product: binutils
           Version: 2.35 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-cfl-2 pr93492]$ cat x.i
void 
_start (void)
{
}
[hjl@gnu-cfl-2 pr93492]$ gcc -c -fpatchable-function-entry=1 x.i
[hjl@gnu-cfl-2 pr93492]$ readelf -SW x.o | grep __patch
  [ 4] __patchable_function_entries PROGBITS        0000000000000000 000048
000008 00  WA  0   0  1
  [ 5] .rela__patchable_function_entries RELA            0000000000000000
000200 000018 18   I 11   4  8
[hjl@gnu-cfl-2 pr93492]$ ld x.o
[hjl@gnu-cfl-2 pr93492]$ readelf -SW a.out | grep __patch
  [ 4] __patchable_function_entries PROGBITS        0000000000404000 003000
000008 00  WA  0   0  1
[hjl@gnu-cfl-2 pr93492]$ ld --gc-sections x.o
[hjl@gnu-cfl-2 pr93492]$ readelf -SW a.out | grep __patch
[hjl@gnu-cfl-2 pr93492]$

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

Reply via email to