This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Ian, This patch fixes two problems related to the -z relro option. The first one is that .init_array, .fini_array and .preinit_array are not handle properly in Layout::make_output_seciton. The function only force the relro flag if section type if SHT_PROGBITS. The second problem is that the ARM backend ignores the -z now option. This patch fixes this problem and also places the .got section at the RELRO boundary. This is tested on both ARM and x86_64. -Doug 2012-03-15 Doug Kwan <dougkwan@google.com> * arm.cc (Target_arm::got_section): Make .got section read-only if -z now is given. Also place .got section at RELRO boundary. * layout.cc (Layout::make_output_section): Fix a bug that causes .init_array, .fini_array and .preinit_array to be not included in the RELRO segment when -z now is given.
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |