https://sourceware.org/bugzilla/show_bug.cgi?id=24505
Bug ID: 24505
Summary: Should --nmagic affect MAXPAGESIZE/COMMONPAGESIZE?
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: maskray at google dot com
Target Milestone: ---
-n/--nmagic disables page alignment of sections. Should it affect the target
specific constants MAXPAGESIZE and COMMONPAGESIZE by changing them to 1?
% cat a.lds
maxpagesize = CONSTANT(MAXPAGESIZE);
commonpagesize = CONSTANT(COMMONPAGESIZE);
% as /dev/null -o a.o
% ld.bfd -n a.o -T a.lds -o a
% readelf -Ws a | grep pagesize
2: 0000000000001000 0 NOTYPE GLOBAL DEFAULT ABS commonpagesize
3: 0000000000200000 0 NOTYPE GLOBAL DEFAULT ABS maxpagesize
Feel free to close the issue if CONSTANT(MAXPAGESIZE) /
CONSTANT(COMMONPAGESIZE) are not supposed to change.
I just have a feeling that making commonpagesize=maxpagesize=1 may simplify the
implementation.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils