2007-11-13 H.J. Lu <hongjiu.lu@intel.com>

PR binutils/5233
	* ld-elf/flags1.d: New.
	* ld-elf/flags1.ld: Likewise.
	* ld-elf/flags1.s: Likewise.
This commit is contained in:
H.J. Lu 2007-11-13 13:20:02 +00:00
parent b5f5fd962e
commit e6760bcc53
4 changed files with 39 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5233
* ld-elf/flags1.d: New.
* ld-elf/flags1.ld: Likewise.
* ld-elf/flags1.s: Likewise.
2007-11-13 Nick Clifton <nickc@redhat.com>
* ld-mn10300/i127740.s: New test: Checks relaxation and alignment.
@ -99,7 +106,7 @@
2007-10-16 Nick Clifton <nickc@redhat.com>
* lf-elfcomm/elfcomm.exp: Add tests of STT_COMMON symbol
* ld-elfcomm/elfcomm.exp: Add tests of STT_COMMON symbol
generation.
2007-10-12 Joseph Myers <joseph@codesourcery.com>

View File

@ -0,0 +1,14 @@
#name: --set-section-flags test 1 (sections)
#ld: -Tflags1.ld
#objcopy_linked_file: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code
#readelf: -l --wide
#...
Program Headers:
Type.*
LOAD +0x[0-9a-f]+ 0x0*0 0x0*0 0x0*0161 0x0*0161 RWE 0x[0-9a-f]+
#...
Segment Sections...
00[ \t]+.text .post_text_reserve[ \t]*
#pass

View File

@ -0,0 +1,12 @@
SECTIONS
{
.text :
{
*(.text)
} =0
.post_text_reserve :
{
. += 0x160;
}
/DISCARD/ : { *(.*) }
}

View File

@ -0,0 +1,5 @@
.text
.globl start
.type start, @function
start:
.byte 0