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

            Bug ID: 18176
           Summary: Large file size due to padding for PT_GNU_RELRO
                    segment
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

Created attachment 8215
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8215&action=edit
A testcase

When a padding in file is used to align PT_GNU_RELRO segment, the maximum
padding size is maximum page size minus 1, which may lead to large file
size:

[hjl@gnu-tools-1 relro]$ make
as   -o x.o x.s
./ld -z relro -T ld.t -z max-page-size=0x200000 -z common-page-size=0x1000
-shared -o x.so x.o
ls -l x.so
-rwxrwxr-x 1 hjl hjl 2419808 Mar 28 20:17 x.so
[hjl@gnu-tools-1 relro]$

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

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to