bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22829] objcopy/strip: PT_GNU_RELRO is removed when it's no


From: ngg at tresorit dot com
Subject: [Bug binutils/22829] objcopy/strip: PT_GNU_RELRO is removed when it's not at the beginning of a PT_LOAD area
Date: Sat, 10 Feb 2018 15:45:58 +0000

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

--- Comment #2 from NGG <ngg at tresorit dot com> ---
Created attachment 10802
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10802&action=edit
sample binary created with lld

This sample was generated with clang and lld (version 5.0.1) like this:

clang -fuse-ld=lld -Wl,-z,relro -o sample sample.c

Both "strip sample" and "objcopy sample sample.copied" remove the PT_GNU_RELRO
segment.

sample.c:

#include <stdlib.h>

int main(void)
{
        malloc(1);
        return 0;
}

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