bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22115] New: ld: read-only segment has dynamic relocations.


From: hjl.tools at gmail dot com
Subject: [Bug ld/22115] New: ld: read-only segment has dynamic relocations.
Date: Fri, 08 Sep 2017 13:45:28 +0000

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

            Bug ID: 22115
           Summary: ld: read-only segment has dynamic relocations.
           Product: binutils
           Version: 2.30 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86

address@hidden ld]$ cat x.c
extern int __ehdr_start __attribute__ ((weak));

int *
_start (void)
{
  return &__ehdr_start;
}
address@hidden ld]$ gcc -c -fPIE -O2 x.c 
address@hidden ld]$ ld -pie x.o -z text  --no-dynamic-linker
ld: x.o: warning: relocation against `__ehdr_start' in readonly section `.text'
ld: read-only segment has dynamic relocations.
address@hidden ld]$

-- 
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]