old-cross-binutils/gas/config
Max Filippov a35d5e823f Fix alignment for the first section frag on xtensa
Linking object files produced by partial linking with link-time
relaxation enabled sometimes fails with the following error message:

dangerous relocation: call8: misaligned call target: (.text.unlikely+0x63)

This happens because no basic block with an XTENSA_PROP_ALIGN flag in the
property table is generated for the first basic block, even if the
.align directive is present.
It was believed that the first frag alignment could be derived from the
section alignment, but this was not implemented for the partial linking
case: after partial linking first frag of a section may become not
first, but no additional alignment frag is inserted before it.
Basic block for such frag may be merged with previous basic block into
extended basic block during relaxation pass losing its alignment
restrictions.

Fix this by always recording alignment for the first section frag.

2014-04-22  Max Filippov  <jcmvbkbc@gmail.com>

gas/
    * config/tc-xtensa.c (xtensa_handle_align): record alignment for the
    first section frag.

gas/testsuite/
    * gas/xtensa/all.exp: Add test for the first section frag alignment.
    * gas/xtensa/first_frag_align.d: First section frag alignment expected
    dump.
    * gas/xtensa/first_frag_align.s: First section frag alignment test
    source.
2014-04-22 22:53:49 +04:00
..
aout_gnu.h Update copyright years 2014-03-05 22:16:15 +10:30
atof-ieee.c Update copyright years 2014-03-05 22:16:15 +10:30
atof-vax.c Update copyright years 2014-03-05 22:16:15 +10:30
bfin-aux.h Update copyright years 2014-03-05 22:16:15 +10:30
bfin-defs.h Update copyright years 2014-03-05 22:16:15 +10:30
bfin-lex-wrapper.c Update copyright years 2014-03-05 22:16:15 +10:30
bfin-lex.l Update copyright years 2014-03-05 22:16:15 +10:30
bfin-parse.y Update copyright years 2014-03-05 22:16:15 +10:30
e-crisaout.c Update copyright years 2014-03-05 22:16:15 +10:30
e-criself.c Update copyright years 2014-03-05 22:16:15 +10:30
e-i386aout.c Update copyright years 2014-03-05 22:16:15 +10:30
e-i386coff.c Update copyright years 2014-03-05 22:16:15 +10:30
e-i386elf.c Update copyright years 2014-03-05 22:16:15 +10:30
e-mipself.c Update copyright years 2014-03-05 22:16:15 +10:30
itbl-mips.h Update copyright years 2014-03-05 22:16:15 +10:30
m68k-parse.h Update copyright years 2014-03-05 22:16:15 +10:30
m68k-parse.y Update copyright years 2014-03-05 22:16:15 +10:30
obj-aout.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-aout.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-coff-seh.c This patch adds a new pseudo-op - .seh_code - to structured exception handling 2014-03-25 16:50:10 +00:00
obj-coff-seh.h This patch adds a new pseudo-op - .seh_code - to structured exception handling 2014-03-25 16:50:10 +00:00
obj-coff.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-coff.h Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
obj-ecoff.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-ecoff.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-elf.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-elf.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-evax.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-evax.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-fdpicelf.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-fdpicelf.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-macho.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-macho.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-multi.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-multi.h Update copyright years 2014-03-05 22:16:15 +10:30
obj-som.c Update copyright years 2014-03-05 22:16:15 +10:30
obj-som.h Update copyright years 2014-03-05 22:16:15 +10:30
rl78-defs.h Add opcode relaxation for rl78-elf 2014-03-20 17:56:01 -04:00
rl78-parse.y Add opcode relaxation for rl78-elf 2014-03-20 17:56:01 -04:00
rx-defs.h Update copyright years 2014-03-05 22:16:15 +10:30
rx-parse.y Update copyright years 2014-03-05 22:16:15 +10:30
tc-aarch64.c Enable verbose error messages by default for AArch64 gas. 2014-03-18 17:41:43 +00:00
tc-aarch64.h Fix a few more targets affected by the change to the TC_CONS_FIX_NEW macro. 2014-04-09 14:05:58 +01:00
tc-alpha.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-alpha.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-arc.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-arc.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-arm.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-arm.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-avr.c bfd/ChangeLog 2014-04-10 19:50:33 +04:00
tc-avr.h bfd/ChangeLog 2014-04-10 19:50:33 +04:00
tc-bfin.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-bfin.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-cr16.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-cr16.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-cris.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-cris.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-crx.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-crx.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-d10v.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-d10v.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-d30v.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-d30v.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-dlx.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-dlx.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-epiphany.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-epiphany.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-fr30.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-fr30.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-frv.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-frv.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-generic.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-generic.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-h8300.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-h8300.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-hppa.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-hppa.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-i370.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-i370.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-i386-intel.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-i386.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-i386.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-i860.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-i860.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-i960.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-i960.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-ia64.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-ia64.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-ip2k.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-ip2k.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-iq2000.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-iq2000.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-lm32.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-lm32.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-m32c.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-m32c.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-m32r.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-m32r.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-m68hc11.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-m68hc11.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-m68k.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-m68k.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-m68851.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-mcore.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-mcore.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-mep.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-mep.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-metag.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-metag.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-microblaze.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-microblaze.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-mips.c Add support for the MIPS P5600 family of CPUs. 2014-04-10 10:20:50 +01:00
tc-mips.h gas/ 2014-03-20 21:18:43 +00:00
tc-mmix.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-mmix.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-mn10200.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-mn10200.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-mn10300.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-mn10300.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-moxie.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-moxie.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-msp430.c This patch enhances the MSP430 port of GAS so that, if requested, it will 2014-03-03 17:27:55 +00:00
tc-msp430.h This patch enhances the MSP430 port of GAS so that, if requested, it will 2014-03-03 17:27:55 +00:00
tc-mt.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-mt.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-nds32.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-nds32.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-nios2.c Fix Nios II assembler self-test mode. 2014-04-22 10:56:02 -07:00
tc-nios2.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-ns32k.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-ns32k.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-or1k.c Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
tc-or1k.h Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
tc-pdp11.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-pdp11.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-pj.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-pj.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-ppc.c ppc476 gas warn on data in code sections 2014-04-09 14:30:38 +09:30
tc-ppc.h ppc476 gas warn on data in code sections 2014-04-09 14:30:38 +09:30
tc-rl78.c Add checks for overfar branches 2014-04-02 16:50:29 -04:00
tc-rl78.h Fix a few more targets affected by the change to the TC_CONS_FIX_NEW macro. 2014-04-09 14:05:58 +01:00
tc-rx.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-rx.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-s390.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-s390.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-score.c This fixes a compile time error triggered by -Werror=format-security because 2014-03-27 09:41:06 +00:00
tc-score.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-score7.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-sh.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-sh.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-sh64.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-sh64.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-sparc.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-sparc.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-spu.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-spu.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-tic4x.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-tic4x.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-tic6x.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-tic6x.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-tic30.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-tic30.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-tic54x.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-tic54x.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-tilegx.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-tilegx.h Fix more fallout from TC_CONS_FIX_NEW change 2014-04-16 23:00:29 +09:30
tc-tilepro.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-tilepro.h Fix more fallout from TC_CONS_FIX_NEW change 2014-04-16 23:00:29 +09:30
tc-v850.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-v850.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-vax.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-vax.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-xc16x.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-xc16x.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-xgate.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-xgate.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-xstormy16.c gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-xstormy16.h gas TC_PARSE_CONS_EXPRESSION communication with TC_CONS_FIX_NEW 2014-04-09 14:29:05 +09:30
tc-xtensa.c Fix alignment for the first section frag on xtensa 2014-04-22 22:53:49 +04:00
tc-xtensa.h Add support to the Xtensa target for creating trampolines for out-of-range branches. 2014-03-21 11:53:42 +00:00
tc-z8k.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-z8k.h Update copyright years 2014-03-05 22:16:15 +10:30
tc-z80.c Update copyright years 2014-03-05 22:16:15 +10:30
tc-z80.h Fix a few more targets affected by the change to the TC_CONS_FIX_NEW macro. 2014-04-09 14:05:58 +01:00
te-386bsd.h Update copyright years 2014-03-05 22:16:15 +10:30
te-aix5.h Update copyright years 2014-03-05 22:16:15 +10:30
te-armeabi.h Update copyright years 2014-03-05 22:16:15 +10:30
te-armlinuxeabi.h Update copyright years 2014-03-05 22:16:15 +10:30
te-dragonfly.h Update copyright years 2014-03-05 22:16:15 +10:30
te-dynix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-epoc-pe.h Update copyright years 2014-03-05 22:16:15 +10:30
te-freebsd.h Update copyright years 2014-03-05 22:16:15 +10:30
te-generic.h Update copyright years 2014-03-05 22:16:15 +10:30
te-gnu.h Update copyright years 2014-03-05 22:16:15 +10:30
te-go32.h Update copyright years 2014-03-05 22:16:15 +10:30
te-hppa.h Update copyright years 2014-03-05 22:16:15 +10:30
te-hppa64.h Update copyright years 2014-03-05 22:16:15 +10:30
te-hppalinux64.h Update copyright years 2014-03-05 22:16:15 +10:30
te-hpux.h Update copyright years 2014-03-05 22:16:15 +10:30
te-i386aix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-ia64aix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-interix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-irix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-linux.h Update copyright years 2014-03-05 22:16:15 +10:30
te-lynx.h Update copyright years 2014-03-05 22:16:15 +10:30
te-mach.h Update copyright years 2014-03-05 22:16:15 +10:30
te-macos.h Update copyright years 2014-03-05 22:16:15 +10:30
te-nacl.h Update copyright years 2014-03-05 22:16:15 +10:30
te-nbsd.h Update copyright years 2014-03-05 22:16:15 +10:30
te-nbsd532.h Update copyright years 2014-03-05 22:16:15 +10:30
te-netware.h Update copyright years 2014-03-05 22:16:15 +10:30
te-pc532mach.h Update copyright years 2014-03-05 22:16:15 +10:30
te-pe.h Update copyright years 2014-03-05 22:16:15 +10:30
te-pep.h Update copyright years 2014-03-05 22:16:15 +10:30
te-psos.h Update copyright years 2014-03-05 22:16:15 +10:30
te-riscix.h Update copyright years 2014-03-05 22:16:15 +10:30
te-solaris.h Update copyright years 2014-03-05 22:16:15 +10:30
te-sparcaout.h Update copyright years 2014-03-05 22:16:15 +10:30
te-sun3.h Update copyright years 2014-03-05 22:16:15 +10:30
te-svr4.h Update copyright years 2014-03-05 22:16:15 +10:30
te-symbian.h Update copyright years 2014-03-05 22:16:15 +10:30
te-tmips.h Update copyright years 2014-03-05 22:16:15 +10:30
te-uclinux.h Update copyright years 2014-03-05 22:16:15 +10:30
te-vms.c Update copyright years 2014-03-05 22:16:15 +10:30
te-vms.h Update copyright years 2014-03-05 22:16:15 +10:30
te-vxworks.h Update copyright years 2014-03-05 22:16:15 +10:30
te-wince-pe.h Update copyright years 2014-03-05 22:16:15 +10:30
vax-inst.h Update copyright years 2014-03-05 22:16:15 +10:30
xtensa-istack.h Update copyright years 2014-03-05 22:16:15 +10:30
xtensa-relax.c Update copyright years 2014-03-05 22:16:15 +10:30
xtensa-relax.h Update copyright years 2014-03-05 22:16:15 +10:30