[gold commit] PR 20834: Fix problem causing internal error when -z max-page-size is used
Cary Coutant
ccoutant@gmail.com
Fri Dec 2 03:14:00 GMT 2016
When the -z max-page-size option is used to set the ABI page size
larger than the default text segment starting address, we end up
trying to page align the text segment and moving the file header to a
non-zero offset, later causing an internal error.
This patch fixes the problem by bumping the default starting address
to the page size in that situation.
An alternate approach would have been to keep the default starting
address and separating the file header from the first load segment,
but IMO it's more useful to simply use a larger text segment starting
address.
-cary
2016-12-01 Cary Coutant <ccoutant@gmail.com>
gold/
PR gold/20834
* target.h (Target::default_text_segment_address): Bump default
start address up to ABI page size.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr20834.patch
Type: application/octet-stream
Size: 1210 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20161202/2b56a446/attachment.obj>
More information about the Binutils
mailing list