* layout.cc (Layout::set_segment_offsets): Don't try to realign data
commitb382ae7b9dbf0f4bcba370f62cc9ebfcfd465a97
authorCary Coutant <ccoutant@google.com>
Sat, 16 Oct 2010 00:37:24 +0000 (16 00:37 +0000)
committerCary Coutant <ccoutant@google.com>
Sat, 16 Oct 2010 00:37:24 +0000 (16 00:37 +0000)
treeedb7c2946a22bc526d25a576aa95fb68c485e07f
parentd7ac855b802ee646dc03f54b8219081eac0a8ba3
* layout.cc (Layout::set_segment_offsets): Don't try to realign data
segment that has been aligned for relro.
* output.cc (Output_segment::set_section_addresses): Change signature;
adjust all callers.  Account for alignment when totalling
size of relro sections.
* output.h (Output_segment::set_section_addresses): Change signature.
* testsuite/Makefile.am (relro_test.sh, relro_test.stdout): New
targets.
* testsuite/Makefile.in: Regenerate.
* testsuite/relro_test.cc: Add alignment attributes to test proper
alignment of relro sections when padding is necessary.
* testsuite/relro_test.sh: New script.
gold/layout.cc
gold/output.cc
gold/output.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/relro_test.cc
gold/testsuite/relro_test.sh [new file with mode: 0755]