[patch][gold] Don't put rodata and text in the same segment.

Rafael Espindola espindola@google.com
Thu Sep 2 14:18:00 GMT 2010


> I think it would be OK to have an option to put read-only data in a
> different segment.

I see. The attached patch moves the it behind an option.

2010-09-01  Rafael Espindola  <espindola@google.com>

	* layout.cc (Layout::attach_allocated_section_to_segment): Add support
	for --rosegment.
	(Layout::find_first_load_seg): Search all segments to find the first
	one.
	(Layout::set_segment_offsets): Align the address of a read only segment
	that follows a read only one.
	* Makefile.am: Add a --rosegment bootstrap test.
	* Makefile.in: Regenerate.
	* options.h (rosegment): New.

> Ian
>

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rodata.patch
Type: text/x-patch
Size: 5069 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100902/4400e415/attachment.bin>


More information about the Binutils mailing list