newlib/include/elf
H.J. Lu 668b4a9519 bfd/
2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/3281
	PR binutils/5037
	* elf-bfd.h (elf_obj_tdata): Remove relro.

	* elf.c (get_program_header_size): Check info->relro instead
	of elf_tdata (abfd)->relro.
	(_bfd_elf_map_sections_to_segments): Likewise.
	(assign_file_positions_for_load_sections): Don't set
	PT_GNU_RELRO segment alignment here.
	(assign_file_positions_for_non_load_sections): Properly set up
	PT_GNU_RELRO segment for copying executable/shared library.
	(rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
	(copy_elf_program_header): Set p_size and p_size_valid fields for
	PT_GNU_RELRO segment.

include/elf/

2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/3281
	PR binutils/5037
	* internal.h (elf_segment_map): Add p_size and p_size_valid.
	(ELF_IS_SECTION_IN_SEGMENT): Allow SHF_TLS sections in
	PT_GNU_RELRO segments.

ld/

2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/3281
	PR binutils/5037
	* ldexp.h (ldexp_control): Add relro, relro_start_stat and
	relro_end_stat.

	* ldexp.c (fold_binary): Set expld.dataseg.relro to
	exp_dataseg_relro_start or exp_dataseg_relro_end when
	seeing DATA_SEGMENT_ALIGN or DATA_SEGMENT_RELRO_END,
	respectively.

	* ldlang.c (lang_size_sections_1): Properly set
	expld.dataseg.relro_start_stat and
	expld.dataseg.relro_end_stat.
	(find_relro_section_callback): New function.
	(lang_find_relro_sections_1): Likewise.
	(lang_find_relro_sections): Likewise.
	(lang_process): Call lang_find_relro_sections for
	non-relocatable link.

ld/testsuite/

2007-09-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/3281
	PR binutils/5037
	* ld-elf/binutils.exp: Update "-z relro" tests to use relro1.s.
	Add "-z relro" tests with relro2.s.  Add "-z relro" tests with
	TLS for objcopy.

	* ld-elf/relro1.s: New file.
	* ld-elf/relro2.s: Likewise.
2007-09-18 00:25:07 +00:00
..
alpha.h
arc.h
arm.h bfd: 2007-06-29 16:29:16 +00:00
avr.h Add support for AVR6 family 2006-05-24 07:36:11 +00:00
bfin.h * elf/bfin.h (R_BFIN_GOT17M4, R_BFIN_GOTHI, R_BFIN_GOTLO, 2006-03-25 18:21:47 +00:00
ChangeLog bfd/ 2007-09-18 00:25:07 +00:00
ChangeLog-9103
common.h include/elf/ 2007-08-25 13:20:40 +00:00
cr16.h New port: National Semiconductor's CR16 2007-06-29 14:09:34 +00:00
cr16c.h
cris.h
crx.h
d10v.h
d30v.h
dlx.h
dwarf2.h Add ability to report when a variable's value is uninitialized, 2007-05-18 19:42:42 +00:00
dwarf.h
external.h Define ATTRIBUTE_PACKED and use as necessary. 2006-12-06 14:36:41 +00:00
fr30.h
frv.h
h8.h
hppa.h Add TLS support for hppa-linux 2006-05-24 11:05:42 +00:00
i370.h
i386.h include/elf/ChangeLog: 2006-01-18 21:07:47 +00:00
i860.h
i960.h
ia64.h * elf/ia64.h (SHF_IA_64_HP_TLS): New. 2006-02-06 21:52:48 +00:00
internal.h bfd/ 2007-09-18 00:25:07 +00:00
ip2k.h
iq2000.h
m32c.h [include/elf] 2006-02-24 22:10:35 +00:00
m32r.h Add support for a 32bit PC relative reloc 2005-07-20 11:35:03 +00:00
m68hc11.h
m68k.h bfd/ 2007-09-11 16:07:50 +00:00
mcore.h
mep.h 2007-02-05 Dave Brolley <brolley@redhat.com> 2007-02-05 19:15:43 +00:00
mips.h bfd: 2007-06-29 16:41:32 +00:00
mmix.h
mn10200.h
mn10300.h
msp430.h
mt.h Second part of ms1 to mt renaming. 2005-12-16 10:23:10 +00:00
openrisc.h
or32.h
pj.h
ppc64.h
ppc.h bfd: 2007-06-30 00:03:40 +00:00
reloc-macros.h Fix comment attached to #endif 2007-02-06 14:50:58 +00:00
s390.h
score.h Fix score bugs 2006-10-19 15:47:34 +00:00
sh.h
sparc.h
spu.h include/elf/ 2007-05-12 06:45:32 +00:00
v850.h include/elf/ 2007-03-08 11:28:35 +00:00
vax.h
x86-64.h Patch by matz@suse.de: 2006-03-23 08:23:09 +00:00
xc16x.h Add support for the Infineon XC16X. 2006-02-17 14:36:26 +00:00
xstormy16.h
xtensa.h bfd/ 2007-06-11 16:53:08 +00:00