[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/18176] New: Large file size due to padding for PT_GNU_RELRO segm
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/18176] New: Large file size due to padding for PT_GNU_RELRO segment |
Date: |
Sun, 29 Mar 2015 03:17:41 +0000 |
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:
address@hidden 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
address@hidden relro]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/18176] New: Large file size due to padding for PT_GNU_RELRO segment,
hjl.tools at gmail dot com <=