microblaze: Remove special register condition check for INST_TYPE_RFSL related insn

Signed-off-by: David Holsgrove <david.holsgrove@petalogix.com>
microblaze: Correct adjustment of global symbols after linker relaxation

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
microblaze: Fixup symbol sizes after linker relaxation

This bug didn't affect code generation, but would have
affected debuggers that got the wrong view of things.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
microblaze: More fixes to the symbol fixups after relaxation

Correct an off-by one when comparing relaxation addresses
with symbol start.
Correct a typo with the fixup of local symbols.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
microblaze: bfd: Remove unneeded variable

It should be the part of patch:
"microblaze: Correct adjustment of global symbols after linker relaxation"
(sha1: 74dbd8cc0ac2374ab6897e82298838e83e3f886d)

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
microblaze: Fix relaxation of assembler resolved references
microblaze: Fixup debug_loc sections after linker relaxation

Adds a new reloctype R_MICROBLAZE_32_NONE, used for passing
reloc info from the assembler to the linker when the linker
manages to fully resolve a local symbol reference.

This is a workaround for design flaws in the assembler to
linker interface with regards to linker relaxation.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Binutils: Added swapb and swaph instructions

Signed-off-by: nagaraju nmekala@xilinx.com
Signed-off-by: David Holsgrove <david.holsgrove@petalogix.com>
Add microblaze TLS support

Add relocations for TLS.

Add support for handling TLS symbol suffixes and generating
TLS relocs for General Dynamic and Local Dynamic models.

Create a got_symbol even when the symbol is directly used
(not just when a GOT reloc is seen)

Checkin generated files that have changed as a result of new TLS Relocs

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Merge branch 'binutils-2_23-branch'

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
microblaze: Disable the warning message for eh_frame_hdr

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
architecture = microblaze
subsystem = Xilinx

short summary = added mnemonic sleep instruction for existing mbar

Signed-off-by [Nagaraju] [nmekala@xilinx.com]
Signed-off-by: David Holsgrove <david.holsgrove@petalogix.com>
libiberty/ * configure: Add Microblaze PICFLAG

Microblaze requires libiberty to be compiled with -fPIC

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
REVERT upstream change to garbage collection sweep which causes mb regression

Upstream change for PR13177 now clears the def_regular during gc_sweep of a
section. (All other archs in binutils/bfd/elf32-*.c received an update
to a warning about unresolvable relocations - this warning is not present
in binutils/bfd/elf32-microblaze.c, but this warning check would not
prevent the error being seen)

The visible issue with this change is when running a c++ application
in Petalinux which links libstdc++.so - it segfaults on execution.

This does not occur if static linking libstdc++.a, so its during the
relocations for a shared lib with garbage collection this occurs

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>