Toolchains

Toolchains for all supported devices.

317 Commits   7 Branches   32 Tags   |
Index: toolshains-1.6.4/.svnignore
===================================================================
--- toolshains-1.6.4/.svnignore	(revision 316)
+++ toolshains-1.6.4/.svnignore	(nonexistent)
@@ -1,84 +0,0 @@
-
-# Target bin dirs
-build-system/etc/
-build-system/gnattools/
-build-system/sbin/
-
-# Build system config files
-build-system/targets-config.mk
-
-# Target build dirs
-.noarch/
-.host/
-
-.arm32-newlib/
-.a33xx-newlib/
-.a9xx-newlib/
-.h5-newlib/
-.s9xx-newlib/
-.rk33xx-newlib/
-.m1000-newlib/
-.riscv64-newlib/
-.at91sam7s-newlib/
-
-.a1x-glibc/
-.a2x-glibc/
-.h3-glibc/
-.h5-glibc/
-.imx6-glibc/
-.jz47xx-glibc/
-.p5600-glibc/
-.m1000-glibc/
-.omap543x-glibc/
-.rk328x-glibc/
-.s8xx-glibc/
-.s9xx-glibc/
-.a9xx-glibc/
-.rk33xx-glibc/
-.rk339x-glibc/
-.a33xx-glibc/
-.power8-glibc/
-.power9-glibc/
-.power8le-glibc/
-.power9le-glibc/
-.riscv64-glibc/
-.i686-glibc/
-.x86_64-glibc/
-
-# Hidden files (each file)
-.makefile
-.src_requires
-.src_requires_depend
-.dist
-
-# Destinations
-dist/products/
-
-
-# Tarballs
-*.gz
-*.bz2
-*.xz
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Patches
-*.patch
-
-# Text files
-*.txt
-
-# Default linux config files
-*.defconfig
-
-# Object Files
-*.[ao]
-
-# backup copies
-*~
Index: toolshains-1.6.4/LICENSE
===================================================================
--- toolshains-1.6.4/LICENSE	(revision 316)
+++ toolshains-1.6.4/LICENSE	(nonexistent)
@@ -1,23 +0,0 @@
-
-The MIT License (MIT)
-
-Copyright (c) 2016 Andrey V. Kosteltsev
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
Index: toolshains-1.6.4/doc/README
===================================================================
--- toolshains-1.6.4/doc/README	(revision 316)
+++ toolshains-1.6.4/doc/README	(nonexistent)
@@ -1,24 +0,0 @@
-
-build:
-=====
-
-cd products && make -j32 all
-
-make targets:
-============
-
-tree_clean      - clean whole tree including dist and sources(.makefile stamps) directories but
-                  !!!NOT CLEAN downloaded sources!!!
-
-downloads_clean - remove downloaded sources in sources directory
-
-
-NOTE:
-====
-  Directory names in products folder shouldn't match with any toolchain name.
-  For example, if we have toolchain name 'x86_64-glibc' then directory name
-  for this toolchain should be at least 'X86_64-glibc'.
-
-NOTE JZ47XX GLibc:
-  The -O3 optimisation for glibc made wrong executables. We have to use -O2 only.
-
Index: toolshains-1.6.4/doc
===================================================================
--- toolshains-1.6.4/doc	(revision 316)
+++ toolshains-1.6.4/doc	(nonexistent)

Property changes on: toolshains-1.6.4/doc
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_POWER9_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -mcpu=power9 -mlong-double-128"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/main.c
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -m32 -mcpu=power9 -mlong-double-128"
-
-
-$TARGET-gcc -m32 -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc -m32 $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/.config
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64-power9-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64-POWER9-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/.config
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64-power9-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64-POWER9-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER9-glibc/1.6.4/POWER9-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_POWER8_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -mcpu=power8 -mlong-double-128"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/main.c
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -m32 -mcpu=power8 -mlong-double-128"
-
-
-$TARGET-gcc -m32 -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc -m32 $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/.config
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64-power8-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64-POWER8-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/.config
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64-power8-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64-POWER8-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER8-glibc/1.6.4/POWER8-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_build.sh
===================================================================
--- toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_build.sh	(revision 316)
+++ toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_build.sh	(nonexistent)
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-arm-at91sam7s-eabi-gcc -g -gdwarf-2 -fomit-frame-pointer -mcpu=arm7tdmi -mbig-endian  -I$TOOLCHAIN_PATH/include -c -o main.o main.c
-arm-at91sam7s-eabi-gcc -mcpu=arm7tdmi -mbig-endian  -o main main.o
-
-arm-at91sam7s-eabi-objdump -x main > main.map
-
-arm-at91sam7s-eabi-strip main -o main.elf
-
-arm-at91sam7s-eabi-objcopy -O srec main.elf main.srec
-arm-at91sam7s-eabi-objcopy -O ihex main.elf main.hex
-arm-at91sam7s-eabi-objdump -S -d main.o > main.asm
-arm-at91sam7s-eabi-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_clean.sh
===================================================================
--- toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_clean.sh	(revision 316)
+++ toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_clean.sh	(nonexistent)
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm main main.asm main.elf main.hex main.map main.o main.srec

Property changes on: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/_clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/.config
===================================================================
--- toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/AT91SAM7S-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-at91sam7s-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-AT91SAM7S-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/AT91SAM7S-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,33 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_AT91SAM7S_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/main.c	(nonexistent)
@@ -1,19 +0,0 @@
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   double   y, x = 3.5;
-
-   y = x + 2.8;
-
-   c = a / b;
-   r = a % b;
-
-   printf("\nHello, World!\n\n");
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/build.sh	(nonexistent)
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
-$TARGET-gcc -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/.config
===================================================================
--- toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-slamd64-linux
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=i686-radix-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/i686-PC-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/I686-glibc/1.6.4/I686-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/I686-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/I686-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/I686-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_I686_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/main.c
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/main.c	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/build.sh
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/build.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a7"
-
-FPU_FLAGS=" -mfpu=neon-vfpv4 -mfloat-abi=hard"
-
-$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/.config
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/.config	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-imx6ull-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-IMX6ULL-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/clean.sh
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST-vfp/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a7"
-
-
-$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/.config
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-imx6ull-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-IMX6ULL-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/IMX6-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/IMX6ULL-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_IMX6ULL_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a73.cortex-a53 -mabi=lp64"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-a311x-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-A311X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A311X-glibc/1.6.4/A311X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A311X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A311X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A311X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A311X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/build.sh	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS="-mthumb -march=armv6-m -mcpu=cortex-m0"
-#NO_STD_FLAGS=" -nostdlib -nostartfiles"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-
-$TARGET-gcc ${NO_STD_FLAGS} $ARCH_FLAGS $FPU_FLAGS $LDFLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-a33xx-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-A33XX-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A33XX-newlib/1.6.4/A33XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A33XX-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A33XX-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A33XX-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A33XX_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-fp-armv8 -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=armv8l-a9xx-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/armv8l-A9XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A9XX-glibc/1.6.4/A9XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A9XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A9XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A9XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/main.c
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/main.c	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/build.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/.config
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/.config	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-rk33xx-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK33XX-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/clean.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-ilp32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RK33XX_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/main.c
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/main.c	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/build.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/.config
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/.config	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-rk33xx-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK33XX-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/clean.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RK33XX-newlib/1.6.4/RK33XX-TEST-lp64/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/main.c
===================================================================
--- toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/main.c	(revision 316)
+++ toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/build.sh
===================================================================
--- toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a17"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/.config
===================================================================
--- toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/.config	(revision 316)
+++ toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-rk328x-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-RK328X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/clean.sh
===================================================================
--- toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RK328X-glibc/1.6.4/RK328X-TEST-vfp/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK328X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RK328X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RK328X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RK328X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a72.cortex-a53 -mabi=lp64"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-rk339x-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK339X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RK339X-glibc/1.6.4/RK339X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK339X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RK339X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RK339X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RK339X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -mcpu=power9 -mlong-double-128"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/.config
===================================================================
--- toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64le-power9-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64le-POWER9-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/POWER9LE-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/POWER9LE-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_POWER9LE_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -g -O3 -mcpu=power8 -mlong-double-128"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/.config
===================================================================
--- toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=ppc64le-power8-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/ppc64le-POWER8-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/POWER8LE-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/POWER8LE-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_POWER8LE_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/main.c	(nonexistent)
@@ -1,19 +0,0 @@
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   double   y, x = 3.5;
-
-   y = x + 2.8;
-
-   c = a / b;
-   r = a % b;
-
-   printf("\nHello, World!\n\n");
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/build.sh	(nonexistent)
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
-$TARGET-gcc -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/main.c
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/main.c	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/main.c	(nonexistent)
@@ -1,19 +0,0 @@
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   double   y, x = 3.5;
-
-   y = x + 2.8;
-
-   c = a / b;
-   r = a % b;
-
-   printf("\nHello, World!\n\n");
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/build.sh
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/build.sh	(nonexistent)
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-$TARGET-gcc -m32 -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
-$TARGET-gcc -m32 -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/.config
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/.config	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-slamd64-linux
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=x86_64-radix-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/x86_64-PC-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/clean.sh
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/.config
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-slamd64-linux
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=x86_64-radix-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/x86_64-PC-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/X86_64-glibc/1.6.4/X86_64-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/X86_64-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/X86_64-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/X86_64-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_X86_64_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/main.c
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/main.c	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/build.sh
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/build.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a9"
-
-FPU_FLAGS=" -mfpu=vfpv3 -mfloat-abi=hard"
-
-$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/.config
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/.config	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-imx6-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-IMX6-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/clean.sh
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST-vfp/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a9"
-
-
-$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/.config
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-imx6-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-IMX6-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/IMX6-glibc/1.6.4/IMX6-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/IMX6-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/IMX6-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/IMX6-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_IMX6_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/Makefile
===================================================================
--- toolshains-1.6.4/products/Makefile	(revision 316)
+++ toolshains-1.6.4/products/Makefile	(nonexistent)
@@ -1,170 +0,0 @@
-
-
-COMPONENT_TARGETS  = $(TOOLCHAIN_ARM32_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_M1000_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_AT91SAM7S_NEWLIB)
-COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_NEWLIB)
-
-COMPONENT_TARGETS += $(TOOLCHAIN_A1X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_A2X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_H3_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_H5_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_IMX6_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_IMX6ULL_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_JZ47XX_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_P5600_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_M1000_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_OMAP543X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_RK328X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_A311X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
-
-COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_POWER9_GLIBC)
-
-COMPONENT_TARGETS += $(TOOLCHAIN_POWER8LE_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_POWER9LE_GLIBC)
-
-COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_GLIBC)
-
-COMPONENT_TARGETS += $(TOOLCHAIN_I686_GLIBC)
-COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
-
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-
-include ../build-system/config.mk
-
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_ARM32_NEWLIB))
-REQUIRES  = products/ARM32-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
-REQUIRES  = products/A33XX-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB))
-REQUIRES  = products/A9XX-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
-REQUIRES  = products/H5-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
-REQUIRES  = products/S9XX-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
-REQUIRES  = products/RK33XX-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_M1000_NEWLIB))
-REQUIRES  = products/M1000-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AT91SAM7S_NEWLIB))
-REQUIRES  = products/AT91SAM7S-newlib/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_NEWLIB))
-REQUIRES  = products/RISCV64-newlib/1.6.4
-endif
-
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC))
-REQUIRES  = products/A1X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC))
-REQUIRES  = products/A2X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC))
-REQUIRES  = products/H3-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC))
-REQUIRES  = products/H5-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC))
-REQUIRES  = products/IMX6-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC))
-REQUIRES  = products/IMX6ULL-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
-REQUIRES  = products/JZ47XX-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC))
-REQUIRES  = products/P5600-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC))
-REQUIRES  = products/M1000-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC))
-REQUIRES  = products/OMAP543X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC))
-REQUIRES  = products/RK328X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC))
-REQUIRES  = products/S8XX-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC))
-REQUIRES  = products/S9XX-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_GLIBC))
-REQUIRES  = products/A9XX-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC))
-REQUIRES  = products/A311X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC))
-REQUIRES  = products/RK33XX-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC))
-REQUIRES  = products/RK339X-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC))
-REQUIRES  = products/A33XX-glibc/1.6.4
-endif
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC))
-REQUIRES  = products/POWER8-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC))
-REQUIRES  = products/POWER9-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC))
-REQUIRES  = products/POWER8LE-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC))
-REQUIRES  = products/POWER9LE-glibc/1.6.4
-endif
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
-REQUIRES  = products/RISCV64-glibc/1.6.4
-endif
-
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC))
-REQUIRES  = products/I686-glibc/1.6.4
-endif
-ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC))
-REQUIRES  = products/X86_64-glibc/1.6.4
-endif
-
-
-# ======= __END_OF_REQUIRES__ =======
-
-install_target     = $(TARGET_BUILD_DIR)/.install_done
-
-BUILD_TARGETS      = $(install_target)
-
-
-include ../build-system/core.mk
-
-
-$(install_target):
-	@touch $@
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   double d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.0;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/build.sh	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS="-march=armv7-m -mcpu=cortex-m3 -mthumb"
-#NO_STD_FLAGS=" -nostdlib -nostartfiles"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-
-$TARGET-gcc ${NO_STD_FLAGS} $ARCH_FLAGS $FPU_FLAGS $LDFLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-a9xx-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-A9XX-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/clean.sh	(nonexistent)
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.gdb
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/main.c
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/main.c	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   double d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.0;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/build.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/build.sh	(nonexistent)
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS="-march=armv7-m -mcpu=cortex-m3 -mthumb"
-FPU_FLAGS=" -mfpu=fpv4-sp-d16 -mfloat-abi=hard"
-#NO_STD_FLAGS=" -nostdlib -nostartfiles"
-
-$TARGET-gcc -g $DEBUG_FLAGS -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS  -c -o main.o main.c
-
-$TARGET-gcc ${NO_STD_FLAGS} $ARCH_FLAGS $FPU_FLAGS $LDFLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/.config
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/.config	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-a9xx-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-A9XX-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/clean.sh
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/clean.sh	(nonexistent)
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.gdb
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A9XX-newlib/1.6.4/A9XX-TEST-fpv4/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A9XX-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A9XX-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A9XX-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A9XX_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target): $(build_requires)
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a15"
-
-
-$TARGET-gcc -g -O3 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-omap543x-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-OMAP543X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/main.c
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/main.c	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/build.sh
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/build.sh	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a15"
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math"
-
-$TARGET-gcc -g -O3 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/.config
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/.config	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-omap543x-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-OMAP543X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/clean.sh
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/OMAP543X-TEST-vfp/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/OMAP543X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_OMAP543X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-s9xx-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-S9XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/S9XX-glibc/1.6.4/S9XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/S9XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/S9XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_S9XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/main.c
===================================================================
--- toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/main.c	(revision 316)
+++ toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/build.sh
===================================================================
--- toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/build.sh	(revision 316)
+++ toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a5"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/.config
===================================================================
--- toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/.config	(revision 316)
+++ toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-s8xx-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-S8XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/clean.sh
===================================================================
--- toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/S8XX-glibc/1.6.4/S8XX-TEST-neon/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S8XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/S8XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/S8XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_S8XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/main.c	(nonexistent)
@@ -1,18 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float f = 3.1415;
-   double g = 5.0, h = 2.0, d;
-   uint32_t a = 7, b = 3, c, r;
-
-   d = g * h;
-   c = a / b;
-   r = a % b;
-
-   d += f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -g -O3 -march=rv64gc -mabi=lp64d -mcmodel=medany"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_FLAGS} -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_FLAGS} -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/.config
===================================================================
--- toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=riscv64-rv64gc-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/riscv64-RV64GC-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/rv64gc-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RISCV64-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RISCV64-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,35 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RISCV64_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/main.c
===================================================================
--- toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/main.c	(revision 316)
+++ toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/build.sh
===================================================================
--- toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a7"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/.config
===================================================================
--- toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/.config	(revision 316)
+++ toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-a2x-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-A2X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/clean.sh
===================================================================
--- toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A2X-glibc/1.6.4/A2X-TEST-vfp/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A2X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A2X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A2X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,38 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A2X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += tools/sunxi/sunxi-tools/1.3
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/main.c
===================================================================
--- toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/main.c	(revision 316)
+++ toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/build.sh
===================================================================
--- toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a8"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/.config
===================================================================
--- toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/.config	(revision 316)
+++ toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-a1x-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-A1X-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/clean.sh
===================================================================
--- toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A1X-glibc/1.6.4/A1X-TEST-neon/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A1X-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A1X-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A1X-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,38 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A1X_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += tools/sunxi/sunxi-tools/1.3
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=mips32r2 -mhard-float"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=mipsel-jz47xx-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/mipsel-JZ47XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/JZ47XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/JZ47XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_JZ47XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-fp-armv8 -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=armv8l-a33xx-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/armv8l-A33XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/A33XX-glibc/1.6.4/A33XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/A33XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/A33XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/A33XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_A33XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/main.c
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/main.c	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/build.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/build.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/.config
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/.config	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-s9xx-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-S9XX-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/clean.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-lp64/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/main.c
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/main.c	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/build.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/.config
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/.config	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-s9xx-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-S9XX-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/clean.sh
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/S9XX-newlib/1.6.4/S9XX-TEST-ilp32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/S9XX-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/S9XX-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/S9XX-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_S9XX_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a57 -mabi=lp64"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/.config
===================================================================
--- toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-m1000-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-M1000-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/M1000-glibc/1.6.4/M1000-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/M1000-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/M1000-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_M1000_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-rk33xx-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK33XX-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/RK33XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RK33XX-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RK33XX-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RK33XX-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RK33XX_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/main.c
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/main.c	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/build.sh
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/build.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a57 -mabi=lp64 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/.config
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/.config	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-m1000-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-M1000-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/clean.sh
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-lp64/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/main.c
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/main.c	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/build.sh
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a57 -mabi=ilp32 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/.config
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/.config	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-m1000-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-M1000-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/clean.sh
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/M1000-newlib/1.6.4/M1000-TEST-ilp32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/M1000-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/M1000-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/M1000-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_M1000_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/.config
===================================================================
--- toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-h5-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-H5-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/H5-glibc/1.6.4/H5-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/H5-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/H5-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,36 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_H5_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/main.c
===================================================================
--- toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/main.c	(revision 316)
+++ toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-//#include <stdlib.h>
-//#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-   
-//   uint32_t a = 7, b = 3, c, r;
-
-//   c = a / b;
-//   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/build.sh
===================================================================
--- toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/build.sh	(revision 316)
+++ toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/build.sh	(nonexistent)
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a7"
-
-FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ftree-vectorize -fomit-frame-pointer -ffast-math"
-
-$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/.config
===================================================================
--- toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/.config	(revision 316)
+++ toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-h3-linux-gnueabihf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-H3-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/clean.sh
===================================================================
--- toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/H3-glibc/1.6.4/H3-TEST-neon/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H3-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/H3-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/H3-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_H3_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7ve -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/OMAP543X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv8-a -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/armv8l-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7-a -mtune=cortex-a5 -mfpu=neon -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/S8XX-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7ve -mtune=cortex-a17 -mfpu=neon-vfpv4 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/RK328X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/IMX6-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A1X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7ve -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/A2X-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/main.c	(nonexistent)
@@ -1,16 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=armv7ve -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -mlittle-endian -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -mlittle-endian  -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/.config
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=arm-none-eabi
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/arm-NONE-eabi-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/ARM32-newlib/1.6.4/H3-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/ARM32-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/ARM32-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/ARM32-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_ARM32_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target): $(build_requires)
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/main.c
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/main.c	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/build.sh
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/build.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/.config
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/.config	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-h5-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-H5-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/clean.sh
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-ilp32/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/main.c
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/main.c	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/main.c	(nonexistent)
@@ -1,13 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/build.sh
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/build.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-DEBUG_FLAGS="-gdwarf-2"
-ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
-
-$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer  -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/.config
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/.config	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=aarch64-h5-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/aarch64-H5-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/clean.sh
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/H5-newlib/1.6.4/H5-TEST-lp64/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/H5-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/H5-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/H5-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_H5_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/main.c	(nonexistent)
@@ -1,17 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   float d, f = 3.1415;
-
-   uint32_t a = 7, b = 3, c, r;
-
-   c = a / b;
-   r = a % b;
-
-   d = f * 2.1;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/build.sh	(nonexistent)
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_FLAGS=" -march=mips32r5 -mtune=p5600 -mhard-float"
-
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/.config
===================================================================
--- toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=mipsel-p5600-linux-gnu
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/mipsel-P5600-linux-glibc/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/P5600-glibc/1.6.4/P5600-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/P5600-glibc/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/P5600-glibc/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/P5600-glibc/1.6.4/Makefile	(nonexistent)
@@ -1,37 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_P5600_GLIBC)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += tools/chrpath/0.16
-REQUIRES += tools/patchelf/0.12
-REQUIRES += tools/u-boot/denx/2014.01
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target):
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/main.c
===================================================================
--- toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/main.c	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/main.c	(nonexistent)
@@ -1,18 +0,0 @@
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-int main()
-{
-   uint32_t a = 7, b = 3, c, r;
-   float pi = 3.1415, e = 2.71, f;
-   double g = 5.0, h = 2.0, d;
-
-   d = g * h;
-   c = a / b;
-   r = a % b;
-
-   f = pi * e;
-
-   return( 0 );
-}
Index: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/build.sh
===================================================================
--- toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/build.sh	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/build.sh	(nonexistent)
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-. ./.config
-
-export PATH=$TOOLCHAIN_PATH/bin:$PATH
-
-ARCH_OPTIONS=" -march=rv64imafdc -mabi=lp64d"
-
-$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer ${ARCH_OPTIONS} -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
-$TARGET-gcc ${ARCH_OPTIONS} -o main main.o
-
-$TARGET-objdump -x main > main.map
-
-$TARGET-strip main -o main.elf
-
-$TARGET-objcopy -O srec main.elf main.srec
-$TARGET-objcopy -O ihex main.elf main.hex
-$TARGET-objdump -S -d main.o > main.asm
-$TARGET-objdump -S -d main > full.program.asm

Property changes on: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/build.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/.config
===================================================================
--- toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/.config	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/.config	(nonexistent)
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-#################################################################
-#
-# default common variables:
-#
-if test -z "$HOST"; then
-  export HOST=x86_64-pc-linux-gnu
-fi
-
-if test -z "$TARGET"; then
-  export TARGET=riscv64-none-elf
-fi
-
-if test -z "$TOOLCHAIN_PATH"; then
-  export TOOLCHAIN_PATH=/opt/toolchains/riscv64-NONE-elf-newlib/1.6.4
-fi
-
-#
-# END of default common variables.
-#
-#################################################################
Index: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/clean.sh
===================================================================
--- toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/clean.sh	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/clean.sh	(nonexistent)
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-rm -f full.program.asm
-rm -f main
-rm -f main.asm
-rm -f main.elf
-rm -f main.hex
-rm -f main.map
-rm -f main.o
-rm -f main.srec

Property changes on: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/rv64imafdc-TEST/clean.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/products/RISCV64-newlib/1.6.4/Makefile
===================================================================
--- toolshains-1.6.4/products/RISCV64-newlib/1.6.4/Makefile	(revision 316)
+++ toolshains-1.6.4/products/RISCV64-newlib/1.6.4/Makefile	(nonexistent)
@@ -1,34 +0,0 @@
-
-
-COMPONENT_TARGETS = $(TOOLCHAIN_RISCV64_NEWLIB)
-
-export TOOLCHAIN_VERSION = 1.6.4
-
-include ../../../build-system/config.mk
-
-REQUIRES  = core/gcc/10.2.0^full
-REQUIRES += core/gdb/10.1
-
-# ======= __END_OF_REQUIRES__ =======
-
-tarball_name    = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
-tarball         = $(TARGET_BUILD_DIR)/$(tarball_name)
-
-tarball_target  = $(TARGET_BUILD_DIR)/.tarball-created
-
-BUILD_TARGETS   = $(tarball_target)
-
-PRODUCT_TARGETS = $(tarball)
-
-include ../../../build-system/core.mk
-
-
-$(tarball): $(tarball_target)
-
-$(tarball_target): $(build_requires)
-	@echo ""
-	@echo "Creating $(tarball_name) tarball..."
-	@cd $(TOOLCHAINS_BASE_PATH) ; \
-	  tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
-	@mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
-	@touch $@
Index: toolshains-1.6.4/products
===================================================================
--- toolshains-1.6.4/products	(revision 316)
+++ toolshains-1.6.4/products	(nonexistent)

Property changes on: toolshains-1.6.4/products
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/build-system/_kxLab.pm
===================================================================
--- toolshains-1.6.4/build-system/_kxLab.pm	(revision 316)
+++ toolshains-1.6.4/build-system/_kxLab.pm	(nonexistent)
@@ -1,39 +0,0 @@
-
-use strict;
-use warnings FATAL => 'all';
-
-package _kxLab;
-
-sub error
-{
-  my $message = shift;
-  my $func = shift;
-
-  print STDERR "Error: $message\n";
-  if( defined( $func ) )
-  {
-    &$func();
-  }
-  exit 1;
-}
-
-sub command_error
-{
-  my $command = shift;
-  my $context = shift;
-
-  error( "$command failed at @{$context}[1] line @{$context}[2]" );
-}
-
-sub system
-{
-  my $command = shift;
-
-  if( system( $command ) )
-  {
-    my @context = caller;
-    command_error($command, \@context);
-  }
-}
-
-1;
Index: toolshains-1.6.4/build-system/dist_clean
===================================================================
--- toolshains-1.6.4/build-system/dist_clean	(revision 316)
+++ toolshains-1.6.4/build-system/dist_clean	(nonexistent)
@@ -1,23 +0,0 @@
-#!/usr/bin/perl
-
-use File::Basename;
-
-$base = $ARGV[0];
-
-open( F, '<', '.dist' ) or die "Could not open .dist";
-
-while( <F> )
-{
-  chomp;
-  $f = "$base/$_";
-  unlink $f;
-  $dirs{dirname($f)}++;
-}
-
-foreach ( sort { length($b) <=> length($a) } keys %dirs )
-{
-  while( rmdir )
-  {
-    $_ = dirname( $_ );
-  }
-}

Property changes on: toolshains-1.6.4/build-system/dist_clean
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/core.mk
===================================================================
--- toolshains-1.6.4/build-system/core.mk	(revision 316)
+++ toolshains-1.6.4/build-system/core.mk	(nonexistent)
@@ -1,842 +0,0 @@
-
-# include once
-ifndef CORE_MK
-
-#######
-####### helpful variables
-#######
-
-comma := ,
-empty :=
-space := $(empty) $(empty)
-
-
-#######
-####### Set up TOP_BUILD_DIR, TOP_BUILD_DIR_ABS and BUILDSYSTEM variables
-#######
-
-ifndef MAKEFILE_LIST
-
-# Work-around for GNU make pre-3.80, which lacks MAKEFILE_LIST and $(eval ...)
-
-TOP_BUILD_DIR := $(shell perl -e 'for ($$_ = "$(CURDIR)"; ! -d "$$_/build-system"; s!(.*)/(.*)!\1!) { $$q .= "../"; } chop $$q; print "$$q"')
-ifeq ($(TOP_BUILD_DIR),)
-TOP_BUILD_DIR=.
-endif
-export TOP_BUILD_DIR_ABS := $(shell perl -e 'for ($$_ = "$(CURDIR)"; ! -d "$$_/build-system"; s!(.*)/(.*)!\1!) { } print')
-export BUILDSYSTEM := $(TOP_BUILD_DIR_ABS)/build-system
-
-else
-
-# Normal operation for GNU make 3.80 and above
-
-__pop = $(patsubst %/,%,$(dir $(1)))
-__tmp := $(call __pop,$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
-# Special case for build-system/Makefile
-ifeq ($(__tmp),.)
-__tmp := ../$(notdir $(CURDIR))
-endif
-
-ifndef TOP_BUILD_DIR
-TOP_BUILD_DIR := $(call __pop,$(__tmp))
-endif
-
-ifndef TOP_BUILD_DIR_ABS
-TOP_BUILD_DIR_ABS := $(CURDIR)
-ifneq ($(TOP_BUILD_DIR),.)
-$(foreach ,$(subst /, ,$(TOP_BUILD_DIR)),$(eval TOP_BUILD_DIR_ABS := $(call __pop,$(TOP_BUILD_DIR_ABS))))
-endif
-export TOP_BUILD_DIR_ABS
-endif
-
-ifndef BUILDSYSTEM
-export BUILDSYSTEM := $(TOP_BUILD_DIR_ABS)/$(notdir $(__tmp))
-endif
-
-endif
-
-#######
-####### Set up SOURCE PACKAGE directory:
-#######
-
-export SRC_PACKAGE_DIR      := sources
-export SRC_PACKAGE_PATH     := $(TOP_BUILD_DIR)/$(SRC_PACKAGE_DIR)
-export SRC_PACKAGE_PATH_ABS := $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR)
-
-
-
-#######
-####### Config:
-#######
-
-include $(BUILDSYSTEM)/config.mk
-
-TOOLCHAIN_ALL = $(strip $(foreach t, $(filter TOOLCHAIN_%,       \
-                                 $(filter-out TOOLCHAIN_ALL      \
-                                              TOOLCHAIN_NAMES    \
-                                              TOOLCHAIN_DIR      \
-                                              TOOLCHAIN_PATH     \
-                                              TOOLCHAIN_VERSION, \
-                                              $(.VARIABLES))), $($(t))))
-
-TOOLCHAIN_NAMES = $(filter-out $(TOOLCHAIN_NOARCH), $(TOOLCHAIN_ALL))
-
-COMPONENT_TOOLCHAINS = $(TOOLCHAIN_ALL)
-
-
-#######
-####### Set up targets etc
-#######
-
-ifneq ($(wildcard $(BUILDSYSTEM)/targets-config.mk),)
-include $(BUILDSYSTEM)/targets-config.mk
-else
-include $(BUILDSYSTEM)/targets-config.mk.template
-endif
-
-# Reading targets-config.mk:
-
-# BUILD_NOARCH always enabled:
-BUILD_NOARCH = true
-
-enabled = $(filter BUILD_%, $(filter-out BUILD_TARGETS BUILD_ARCH, $(.VARIABLES)))
-
-toolchain_filter = $(strip $(foreach t, \
-                     $(strip $(foreach b, \
-                       $(enabled), $(if $(filter true, $($(b))), \
-                         $(subst BUILD_, TOOLCHAIN_, $(b))))), $($(t))))
-
-
-# If no TOOLCHAIN set
-ifeq ($(TOOLCHAIN),)
-
-# COMPONENT_TARGETS must have a value specified in the Makefile
-ifeq ($(COMPONENT_TARGETS),)
-$(error Error: COMPONENT_TARGETS must have a value)
-endif
-
-# End if no TARGET set
-endif
-
-# Error ff TOOLCHAIN is invalid
-ifneq ($(TOOLCHAIN),)
-ifeq ($(filter $(TOOLCHAIN), $(TOOLCHAIN_ALL)),)
-$(error Error: TOOLCHAIN is invalid)
-endif
-endif
-
-
-#######
-####### Filter out disabled targets
-#######
-
-COMPONENT_TARGETS := $(filter $(toolchain_filter), $(COMPONENT_TARGETS))
-
-
-#######
-####### Targets setup:
-#######
-
-COMPONENT_TOOLCHAINS := $(filter $(COMPONENT_TARGETS),$(COMPONENT_TOOLCHAINS))
-
-
-#
-# TARGET, TOOLCHAIN_PATH variables should be set up for each makefile
-#
-
-# If toolchain version is not exported then we use default one 
-ifeq ($(TOOLCHAIN_VERSION),)
-TOOLCHAIN_VERSION = $(TOOLCHAINS_VERSION)
-endif
-
-#
-# Setup current toolchain variables
-#
-
-TOOLCHAIN_DIR  = $($(shell echo $(TOOLCHAIN) | tr '[a-z-]' '[A-Z_]')_DIR)
-TOOLCHAIN_PATH = $($(shell echo $(TOOLCHAIN) | tr '[a-z-]' '[A-Z_]')_PATH)/$(TOOLCHAIN_VERSION)
-TARGET         = $($(shell echo $(TOOLCHAIN) | tr '[a-z-]' '[A-Z_]')_ARCH)
-
-
-#######
-####### Configuration:
-#######
-
-# Build environment:
-
-DEST_DIR_ABS           = $(TOP_BUILD_DIR_ABS)/dist
-
-ifeq ($(NEEDS_ABS_PATHS),)
-DEST_DIR               = $(TOP_BUILD_DIR)/dist
-else
-DEST_DIR               = $(DEST_DIR_ABS)
-endif
-
-TARGET_DEST_DIR        = $(DEST_DIR)/$(TOOLCHAIN)
-
-
-################################################################
-# Check the list of available targets for current Makefile
-#
-__available_targets =                                                                 \
-  $(foreach arch, $(shell echo $(COMPONENT_TOOLCHAINS) | sed -e 's/x86_64/x86-64/g'), \
-    $(if $(FLAVOURS),                                                                 \
-      $(foreach flavour, $(FLAVOURS),                                                 \
-        .target_$(arch)_$(flavour)                                                    \
-       ) .target_$(arch),                                                             \
-      .target_$(arch)                                                                 \
-     )                                                                                \
-   )
-
-__available_targets := $(strip $(__available_targets))
-__available_targets := $(sort $(__available_targets))
-#
-#
-################################################################
-
-
-
-#######
-####### Number of CPU cores:
-#######
-
-NUMPROCS := 1
-OS       := $(shell uname -s)
-
-ifeq ($(OS),Linux)
-NUMPROCS := $(shell grep -c ^processor /proc/cpuinfo)
-endif
-
-
-#######
-####### Parallel control:
-#######
-
-ifneq ($(NO_PARALLEL),)
-MAKEFLAGS += -j1
-.NOTPARALLEL:
-endif
-
-ifeq ($(VERBOSE),)
-guiet = @
-else
-quiet =
-endif
-
-
-
-#######
-####### Default PREFIX:
-#######
-
-PREFIX ?= $(DEST_DIR)
-
-
-#######
-####### Setup ccache:
-#######
-
-ifeq ($(NO_CCACHE),)
-CCACHE = /usr/bin/ccache$(space)
-
-ifeq ($(wildcard $(CCACHE)),)
-$(info )
-$(info #######)
-$(info ####### Please install 'ccache' package)
-$(info ####### or disable ccache with "NO_CCACHE=1 make ...")
-$(info #######)
-$(info )
-$(error Error: ccache not found)
-endif
-
-ifeq ($(wildcard $(CACHED_CC_OUTPUT)),)
-$(info )
-$(info #######)
-$(info ####### Please create directory $(CACHED_CC_OUTPUT) for cached compiler output)
-$(info ####### or disable ccache with "NO_CCACHE=1 make ...")
-$(info #######)
-$(info )
-$(error Error: cached compiler output directory doesn't exist)
-endif
-
-export CCACHE_BASEDIR = $(TOP_BUILD_DIR_ABS)
-export CCACHE_DIR     = $(CACHED_CC_OUTPUT)
-export CCACHE_UMASK   = 000
-
-unexport CCACHE_PREFIX
-else
-CCACHE =
-endif
-
-
-
-#######
-####### Cleanup files:
-#######
-
-CLEANUP_FILES += .dist.*
-CLEANUP_FILES += $(addprefix ., $(TOOLCHAIN))
-CLEANUP_FILES += .*requires*
-CLEANUP_FILES += $(SRC_DIR)
-CLEANUP_FILES += $(SRC_DIR).back.??????
-
-
-#######
-####### Build rules:
-#######
-
-all: BUILD_TREE := true
-export BUILD_TREE
-
-all:
-	@$(MAKE) local_all
-
-#
-# clean is equal to local_clean
-#
-clean:
-	@$(MAKE) local_clean
-
-
-__quick_targets := help configure_targets local_clean downloads_clean targets-config.mk $(HACK_TARGETS)
-
-
-#
-# GLOBAL setup targets:
-# ====================
-#   These targets are built before all targets. For example, source tarballs
-#   have to be downloaded before starting the build.
-#
-#   NOTE:
-#     BUILDSYSTEM is a setup target for other directories and the BUILDSYSTEM
-#     requires only '.sources' target as a setup target.
-#
-ifeq ($(filter %_clean,$(MAKECMDGOALS)),)
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-__setup_targets = .sources
-else
-__setup_targets = .sources .build_system
-endif
-endif
-
-
-
-.setup:
-ifeq ($(__final__),)
-.setup: $(__setup_targets)
-else
-.setup: .makefile
-endif
-
-
-# Check if Makefile has been changed:
-
-.makefile: Makefile
-ifneq ($(shell pwd),$(TOP_BUILD_DIR_ABS))
-ifneq ($(if $(MAKECMDGOALS),$(filter-out $(__quick_targets),$(MAKECMDGOALS)),true),)
-	@touch $@
-ifeq ($(shell pwd | grep $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR))$(shell pwd | grep $(BUILDSYSTEM)/3pp/sources),)
-	@echo -e "\n======= New makefile ($(<F)), clean! ======="
-	@$(MAKE) dist_clean
-	@if $(MAKE) local_clean ; then true ; else rm -f $@ ; fi
-else
-	@if $(MAKE) download_clean ; then true ; else rm -f $@; fi
-endif
-endif
-endif
-
-
-
-#######
-####### Build directory dependencies into .src_requires  which
-####### is used as a Makefile for srource tarballs downloading
-#######
-
-.sources: .src_requires
-
-.src_requires_depend: .src_requires ;
-
-.src_requires: .makefile
-ifneq ($(shell pwd),$(TOP_BUILD_DIR_ABS))
-ifeq ($(filter %_clean,$(MAKECMDGOALS)),)
-ifeq ($(__final__),)
-	@echo ""
-	@echo -e "################################################################"
-	@echo -e "#######"
-	@echo -e "####### Start of building source requires for '$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))':"
-	@echo -e "#######"
-	@$(BUILDSYSTEM)/build_src_requires $(TOP_BUILD_DIR_ABS)
-	@__final__= TREE_RULE=local_all $(MAKE) TOOLCHAIN=$(TOOLCHAIN_NOARCH) FLAVOUR= -f .src_requires
-	@echo -e "#######"
-	@echo -e "####### End of building source requires for '$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))'."
-	@echo -e "#######"
-	@echo -e "################################################################"
-	@echo ""
-	@touch $@
-	@touch .src_requires_depend
-endif
-endif
-endif
-
-
-
-.build_system:
-ifneq ($(shell pwd),$(TOP_BUILD_DIR_ABS))
-ifeq ($(shell pwd | grep $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR))$(shell pwd | grep $(BUILDSYSTEM)/3pp/sources),)
-ifeq ($(shell pwd | grep $(BUILDSYSTEM)),)
-	@echo -e "################################################################"
-	@echo -e "#######"
-	@echo -e "####### Start to Check the BUILDSYSTEM is ready:"
-	@echo -e "#######"
-	@( cd $(BUILDSYSTEM) ; __final__= $(MAKE) TOOLCHAIN=$(TOOLCHAIN_HOST) FLAVOUR= all )
-	@echo -e "#######"
-	@echo -e "####### End of checking the BUILDSYSTEM."
-	@echo -e "#######"
-	@echo -e "################################################################"
-endif
-endif
-endif
-
-
-
-#######
-####### Clean up default rules (not depend of TOOLCHAIN):
-#######
-
-dist_clean:
-	@if [ -f .dist ]; then $(BUILDSYSTEM)/dist_clean $(DEST_DIR); rm .dist; fi
-
-
-# NOTE:
-# ====
-#   Do not create directories with names that match the names of architectures!!!
-#
-tree_clean: .tree_clean
-
-.tree_clean:
-	@echo "Tree Clean..."
-	@$(BUILDSYSTEM)/tree_clean $(addprefix ., $(TOOLCHAIN_NAMES)) $(TOP_BUILD_DIR_ABS)
-
-
-#######
-####### Clean all downloaded source tarballs
-#######
-
-downloads_clean: .downloads_clean
-
-.downloads_clean:
-	@echo ""
-	@echo -e "#######"
-	@echo -e "####### Cleaning Up all downloaded sources..."
-	@echo -e "#######"
-	@$(BUILDSYSTEM)/downloads_clean $(addprefix ., $(TOOLCHAIN_NOARCH)) $(BUILDSYSTEM)/3pp/sources
-ifneq ($(wildcard $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR)),)
-	@$(BUILDSYSTEM)/downloads_clean $(addprefix ., $(TOOLCHAIN_NOARCH)) $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR)
-endif
-
-help:
-	@echo ""
-	@echo -e "You can build and install software using command line such as follow:"
-	@echo ""
-	@echo -e "   $$ [TOOLCHAIN_VERSION=version] [TOOLCHAIN=toolchain] [FLAVOUR=flavour] make [goal]"
-	@echo ""
-	@echo -e "The following MAKE goals are available:"
-	@echo ""
-	@echo -e "   all                - perform make build and install software in the all"
-	@echo -e "                        required directories which defined by REQUIRES"
-	@echo -e "                        variable in the local Makefile;"
-	@echo -e "   local_all          - build and install software prepared onlu by local"
-	@echo -e "                        Makefile;"
-	@echo -e "   dist_clean,"
-	@echo -e "   local_dist_clean   - remove distribution packages from target directory"
-	@echo -e "                        defined by PRODUCTS_DEST_DIR variable. Note that"
-	@echo -e "                        is depends from targets defined by COMPONENT_TARGETS"
-	@echo -e "                        variable or command line;"
-	@echo -e "   clean,"
-	@echo -e "   local_clean        - clean up all built targets by this Makefile;"
-	@echo ""
-	@echo -e "   If the one from above goals has prefix 'local_' then this goal affects only"
-	@echo -e "   current directory.  Otherwise this goal will be performed for all required"
-	@echo -e "   directories which defined by REQUIRES variable."
-	@echo ""
-	@echo -e "   configure_targets  - select toolchains you want to built."
-	@echo -e "                        This command edits the targets-config.mk file;"
-	@echo ""
-	@echo -e "   tree_clean         - clean up whole sourses tree excluding downloaded"
-	@echo -e "                        source tarballs;"
-	@echo -e "   downloads_clean    - remove all sourse tarball from 'sourses' directory;"
-	@echo ""
-	@echo -e "Local Makefile is prepared for following target toolchains:"
-	@echo ""
-	@for toolchain in $(COMPONENT_TARGETS) ; do \
-	  echo -e "   $$toolchain"; \
-	 done
-	@echo ""
-	@echo -e "Enjoy."
-	@echo ""
-
-configure_targets: $(BUILDSYSTEM)/targets-config.mk
-	@BUILDSYSTEM=$(BUILDSYSTEM)              \
-	 CONFIG=$(BUILDSYSTEM)/targets-config.mk \
-	 CONSTANTS=$(BUILDSYSTEM)/config.mk \
-	 $(BUILDSYSTEM)/configure-targets
-
-
-#######
-####### Source archive and patch handling
-#######
-
-# Patch dependency:
-PATCHES_DEP = $(foreach patch,$(PATCHES),\
-	$(shell $(BUILDSYSTEM)/apply_patches $(patch) -dep-))
-
-SRC_DIR_BASE = $(dir $(SRC_DIR))
-
-# Unpack SRC_ARCHIVE in SRC_DIR and backup old SRC_DIR:
-UNPACK_SRC_ARCHIVE = \
-	@echo "Expanding $(SRC_ARCHIVE)"; \
-	if [ -d $(SRC_DIR) ]; then mv $(SRC_DIR) $$(mktemp -d $(SRC_DIR).bak.XXXXXX); fi; \
-	mkdir -p $(SRC_DIR_BASE); \
-	$(if $(findstring .rpm,$(SRC_ARCHIVE)), \
-	  cd $(SRC_DIR_BASE) && rpm2cpio $(SRC_ARCHIVE) | cpio -id --quiet, \
-	  $(if $(findstring .zip,$(SRC_ARCHIVE)), \
-	    unzip -q -d $(SRC_DIR_BASE) $(SRC_ARCHIVE), \
-	    tar $(if $(findstring .bz2,$(SRC_ARCHIVE)),-xjf, \
-	             $(if $(findstring .xz,$(SRC_ARCHIVE)),-xJf, \
-	             $(if $(findstring .txz,$(SRC_ARCHIVE)),-xJf,-xzf))) \
-	      $(SRC_ARCHIVE) -C $(SRC_DIR_BASE))); \
-	chmod -R u+w $(SRC_DIR)
-
-# Apply patches in PATCHES on SRC_DIR_BASE:
-APPLY_PATCHES = $(quiet)$(foreach patch,$(PATCHES),\
-	$(BUILDSYSTEM)/apply_patches $(patch) $(SRC_DIR_BASE) &&) true
-
-# Apply optional patches in OPT_PATCHES on SRC_DIR_BASE:
-APPLY_OPT_PATCHES = $(quiet)$(foreach patch,$(OPT_PATCHES),\
-	$(BUILDSYSTEM)/apply_patches $(patch) $(SRC_DIR_BASE) &&) true
-
-
-# Example rule:
-#
-# src_done = $(SRC_DIR)/.source-done
-#
-# $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
-# 	$(UNPACK_SRC_ARCHIVE)
-# 	$(APPLY_PATCHES)
-# 	 <other stuff that needs to be done to the source,
-# 	   should be empty in most cases>
-# 	@touch $@
-
-
-################################################################
-#######
-####### Include files with references to BUILD-SYSTEM scripts:
-#######
-
--include $(BUILDSYSTEM)/sbin/.config
-
-#######
-####### References to BUILD-SYSTEM scripts.
-#######
-################################################################
-
-
-
-
-################################################################
-#
-# No '__final__' target selected:
-# ==============================
-#
-# Parse TOOLCHAIN, HARDWARE, FLAVOUR selected in command line
-# and build the list of '__final__' targets.
-#
-ifeq ($(__final__),)
-
-#
-# The FLAVOUR can be defined in command line.
-# If command line defines empty flavour FLAVOUR= then
-# we define that variable is set but has no values.
-#
-__cmdline_flavour_defined = $(if $(filter FLAVOUR,$(.VARIABLES)),true,false)
-ifeq ($(__cmdline_flavour_defined),true)
-__cmdline_flavour_value = $(FLAVOUR)
-else
-__cmdline_flavour_value =
-endif
-
-
-##################################################
-# -----------+---------+-------------------+-----
-#  TOOLCHAIN | FLAVOUR | FLAVOUR has VALUE | REF
-# -----------+---------+-------------------+-----
-#    defined | defined |         no        | (0)
-#    defined | defined |         yes       | (1)
-#    defined |    ~    |         ~         | (2)
-#       ~    | defined |         no        | (3)
-#       ~    | defined |         yes       | (4)
-#       ~    |    ~    |         ~         | (5)
-# -----------+---------+-------------------+-----
-##################################################
-
-ifeq ($(TOOLCHAIN),)
-ifeq ($(__cmdline_flavour_defined),false)
-ifeq ($(FLAVOUR),)
-# (5) then we loop over all available flavours
-__target_args = $(__available_targets)
-endif
-else
-ifneq ($(FLAVOUR),)
-# (4) then we use only one defined flavour
-__target_args = $(foreach toolchain,                                                          \
-                    $(shell echo $(COMPONENT_TOOLCHAINS) | sed -e 's/x86_64/x86-64/g'),       \
-                    .target_$(toolchain)_$(FLAVOUR)                                           \
-                 )
-else
-# (3) then we define flavour as empty
-__target_args = $(foreach toolchain,                                                          \
-                    $(shell echo $(COMPONENT_TOOLCHAINS) | sed -e 's/x86_64/x86-64/g'),       \
-                    .target_$(toolchain)                                                      \
-                 )
-endif
-endif
-else
-ifeq ($(__cmdline_flavour_defined),false)
-ifeq ($(FLAVOUR),)
-# (2) then we loop over all available flavours
-__target_args = .target_$(shell echo $(TOOLCHAIN) | sed -e 's/x86_64/x86-64/g') $(if $(FLAVOURS), $(foreach flavour, $(FLAVOURS), .target_$(shell echo $(TOOLCHAIN) | sed -e 's/x86_64/x86-64/g')_$(flavour)),)
-endif
-else
-ifneq ($(FLAVOUR),)
-# (1) then we use only one defined flavour
-__target_args = .target_$(shell echo $(TOOLCHAIN) | sed -e 's/x86_64/x86-64/g')_$(FLAVOUR)
-else
-# (0) then we define flavour as empty
-__target_args = .target_$(shell echo $(TOOLCHAIN) | sed -e 's/x86_64/x86-64/g')
-endif
-endif
-endif
-
-
-__target_args := $(strip $(__target_args))
-
-
-__targets = $(filter $(__target_args), $(__available_targets))
-
-# Now we have to sort targets for that the main targets should be built before flavours!
-__targets := $(sort $(__targets))
-
-
-ifeq ($(__targets),)
-$(error Error: Selected combination [TOOLCHAIN=$(TOOLCHAIN), FLAVOUR=$(FLAVOUR)] is invalid for this Makefile)
-endif
-
-
-$(__targets): .setup
-
-local_all: GOAL = local_all
-local_all: $(__targets)
-
-local_clean: GOAL = local_clean
-local_clean: $(__targets)
-
-
-.target_%: TOOLCHAIN = $(shell echo $(word 2, $(subst _, , $@)) | sed -e 's/x86-64/x86_64/g')
-.target_%: FLAVOUR = $(word 3, $(subst _, , $@))
-.target_%:
-	@echo ""
-	@echo "======="
-	@echo "======= TOOLCHAIN: $(TOOLCHAIN); FLAVOUR =$(if $(FLAVOUR), $(FLAVOUR));  ====="
-	@echo "======="
-	@__final__=true $(MAKE) TOOLCHAIN=$(TOOLCHAIN) FLAVOUR=$(FLAVOUR) $(GOAL)
-
-else
-#
-################################################################
-#
-# The '__final__' target is defined, run the build process.
-
-
-# Target is selected, build it
-
-ifneq ($(NO_CREATE_DIST_FILES),true)
-local_all: CREATE_DIST_FILES = 1
-endif
-
-ifneq ($(findstring $(TOOLCHAIN),$(TOOLCHAIN_NAMES)),)
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-$(shell mkdir -p .$(TOOLCHAIN))
-else
-$(shell mkdir -p .$(TOOLCHAIN)$(if $(FLAVOUR),/$(FLAVOUR)))
-endif
-endif
-
-# TOOLCHAIN/FLAVOUR depended directories
-
-ifneq ($(TOOLCHAIN),$(TOOLCHAIN_NOARCH))
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-targetflavour = .$(TOOLCHAIN)
-else
-targetflavour = .$(TOOLCHAIN)$(if $(FLAVOUR),/$(FLAVOUR))
-endif
-else
-targetflavour = $(CURDIR)
-endif
-
-TARGET_BUILD_DIR = $(targetflavour)
-
-
-
-ifeq ($(BUILD_TREE),true)
-_tree := .tree_all
-else
-_tree := .requires_tree
-endif
-
-
-local_all: $(_tree) install
-
-local_clean:
-
-
-.tree_all: $(TARGET_BUILD_DIR)/.requires
-ifneq ($(shell pwd),$(TOP_BUILD_DIR_ABS))
-ifeq ($(shell pwd | grep $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR))$(shell pwd | grep $(BUILDSYSTEM)/3pp/sources),)
-	@echo -e "################################################################"
-	@echo -e "#######"
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-	@echo -e "####### Start of building requires for '$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))':"
-else
-	@echo -e "####### Start of building requires for TOOLCHAIN=$(TOOLCHAIN) FLAVOUR=$(FLAVOUR) in '$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))':"
-endif
-	@echo -e "#######"
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-	@__final__=true TREE_RULE=local_all $(MAKE) TOOLCHAIN=$(TOOLCHAIN_HOST) FLAVOUR= -f $(TARGET_BUILD_DIR)/.requires
-else
-	@__final__=true TREE_RULE=local_all $(MAKE) TOOLCHAIN=$(TOOLCHAIN) FLAVOUR= -f $(TARGET_BUILD_DIR)/.requires
-endif
-	@echo -e "#######"
-	@echo -e "####### End of building requires for '$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))'."
-	@echo -e "#######"
-	@echo -e "################################################################"
-endif
-endif
-
-
-.requires_tree: $(TARGET_BUILD_DIR)/.requires
-
-#######
-####### Build directory dependencies into $(TARGET_BUILD_DIR)/.requires
-####### file which is used as a Makefile for tree builds.
-#######
-
-$(TARGET_BUILD_DIR)/.requires_depend: $(TARGET_BUILD_DIR)/.requires ;
-
-$(TARGET_BUILD_DIR)/.requires: .makefile
-ifeq ($(filter %_clean,$(MAKECMDGOALS)),)
-ifneq ($(shell pwd),$(TOP_BUILD_DIR_ABS))
-ifeq ($(shell pwd | grep $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR))$(shell pwd | grep $(BUILDSYSTEM)/3pp/sources),)
-ifeq ($(shell pwd),$(BUILDSYSTEM))
-	@$(BUILDSYSTEM)/build_requires $(TOP_BUILD_DIR_ABS) $(TOOLCHAIN_HOST) ; wait
-else
-	@$(BUILDSYSTEM)/build_requires $(TOP_BUILD_DIR_ABS) $(TOOLCHAIN) $(FLAVOUR) ; wait
-endif
-endif
-endif
-endif
-
-
-
-
-################################################################
-#######
-####### Waiting for build whole required tree:
-#######
-
-$(BUILD_TARGETS): | $(_tree)
-
-#######
-####### End of waiting for build whole required tree.
-#######
-################################################################
-
-$(PRODUCT_TARGETS) : | $(BUILD_TARGETS)
-
-
-#######
-####### Install:
-#######
-
-install: .install
-	@if [ "$$(echo .dist*)" != ".dist*" ]; then \
-	  sort -o .dist.tmp -u .dist* && mv .dist.tmp .dist; \
-	fi
-	@rm -f .dist.*
-
-
-.install: .install_builds .install_products
-
-
-
-
-.install_builds: $(BUILD_TARGETS)
-# Do nothing
-
-.install_products: DO_CREATE_DIST_FILES = $(CREATE_DIST_FILES)
-export DO_CREATE_DIST_FILES
-
-.install_products: $(PRODUCT_TARGETS)
-ifdef PRODUCT_TARGETS
-	@$(BUILDSYSTEM)/install_targets $^ $(PREFIX)/products
-endif
-
-
-
-
-#######
-####### Clean up default rules:
-#######
-
-clean: local_clean
-
-local_clean: .local_clean
-
-.local_clean:
-ifeq ($(shell pwd | grep $(TOP_BUILD_DIR_ABS)/$(SRC_PACKAGE_DIR))$(shell pwd | grep $(BUILDSYSTEM)/3pp/sources),)
-ifneq ($(wildcard .$(TOOLCHAIN)),)
-	@echo "Cleaning... $(TOOLCHAIN)"
-	@rm -rf $(CLEANUP_FILES)
-endif
-endif
-
-
--include .src_requires_depend
--include $(TARGET_BUILD_DIR)/.requires_depend
-
-
-endif
-#
-# end of ifeq ($(__final__),)
-#
-################################################################
-
-### Declare some targets as phony
-
-.PHONY: .target*
-.PHONY: .setup .sources .build_system .gnat_tools
-
-.PHONY: .tree_all .requites_tree
-
-.PHONY: all local_all .clean local_clean clean
-.PHONY: .install
-
-.PHONY: help
-.PHONY: downloads_clean
-.PHONY: .downloads_clean
-
-.SUFFIXES:
-
-
-
-CORE_MK = 1
-endif
Index: toolshains-1.6.4/build-system/tree-bs.mk
===================================================================
--- toolshains-1.6.4/build-system/tree-bs.mk	(revision 316)
+++ toolshains-1.6.4/build-system/tree-bs.mk	(nonexistent)
@@ -1,9 +0,0 @@
-
-# Generic rule used for directories
-
-all $(TREEDIRS):
-
-$(TREEDIRS):
-	@$(MAKE) FLAVOUR= -C $(TOP_BUILD_DIR_ABS)/$@ $(TREE_RULE)
-
-.PHONY: all $(TREEDIRS)
Index: toolshains-1.6.4/build-system/apply_patches
===================================================================
--- toolshains-1.6.4/build-system/apply_patches	(revision 316)
+++ toolshains-1.6.4/build-system/apply_patches	(nonexistent)
@@ -1,49 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-use _kxLab;
-
-my $filename = shift or die "Error: Need a patch file";
-my $arg2 = shift;
-my $depmode = 0;
-my $dir = ".";
-if( defined( $arg2 ) )
-{
-  if( $arg2 eq "-dep-" )
-  {
-    $depmode = 1;
-  }
-  else
-  {
-    $dir = $arg2;
-  }
-}
-
-open( PATCH, "<$filename" ) or die "Error: Could not open patch file: $filename: $!";
-while( <PATCH> )
-{
-  next if /^#/;
-  if (/(\S+)\s*(.*)/)
-  {
-    if( $depmode )
-    {
-      print "$1 ";
-    }
-    else
-    {
-      my $arg = $2 || "-p0";
-      print "=== Applying $1 ===\n";
-      _kxLab::system( "patch -d $dir $arg < $1" );
-    }
-  }
-}
-close PATCH;
-if( $depmode )
-{
-  print "$filename\n";
-}
-

Property changes on: toolshains-1.6.4/build-system/apply_patches
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/config.mk
===================================================================
--- toolshains-1.6.4/build-system/config.mk	(revision 316)
+++ toolshains-1.6.4/build-system/config.mk	(nonexistent)
@@ -1,391 +0,0 @@
-# include once
-ifndef CONFIG_MK
-
-#######
-####### Constants:
-#######
-
-
-DOWNLOAD_SERVER      = ftp://ftp.radix.pro
-
-WGET_OPTIONS         = -q -N
-
-CACHED_CC_OUTPUT     = /opt/extra/ccache
-
-TOOLCHAINS_BASE_PATH = /opt/toolchains
-
-TOOLCHAINS_VERSION   = 1.0.0
-
-
-# Build machine architrcture:
-
-BUILD_ARCH = x86_64-pc-linux-gnu
-#
-# HOST and BUILD variables should be set up for each makefile.
-# NOTE: the HOST is equal to BUILD because our toolchains work on BUILD machine.
-#
- HOST = $(BUILD_ARCH)
-BUILD = $(BUILD_ARCH)
-
-
-#######
-####### Standard Available Toolchains:
-#######
-
-#
-# NOTE:
-# ====
-#   Toolchain names defined by 'TOOLCHAIN_...' variables.
-#   Configuration variable names such as HOST_ARCH, HOST_DIR, HOST_PATH should have prefix
-#   which is equal to $(TOOLCHAIN_...) in upper case letters and symbol '-' should be replaced with '_'.
-#   In other words the PREFIX is equal to PREFIX = $(shell echo $(TOOLCHAIN_...) | tr '[a-z-]' '[A-Z_]').
-#
-
-# NOARCH
-TOOLCHAIN_NOARCH = noarch
-
-NOARCH_ARCH = noarch
-NOARCH_DIR  = noarch
-NOARCH_PATH = $(TOOLCHAINS_BASE_PATH)/noarch
-
-
-# HOST
-TOOLCHAIN_HOST = host
-
-HOST_ARCH = $(BUILD_ARCH)
-HOST_DIR  = $(word 1, $(subst -, ,$(BUILD_ARCH)))
-HOST_PATH = $(TOOLCHAINS_BASE_PATH)/$(HOST_DIR)
-
-
-#######
-####### Additional Available Toolchains:
-#######
-
-# All ARM 32-bit series with Newlib
-TOOLCHAIN_ARM32_NEWLIB = arm32-newlib
-
-ARM32_NEWLIB_ARCH = arm-none-eabi
-ARM32_NEWLIB_DIR  = arm-NONE-eabi-newlib
-ARM32_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(ARM32_NEWLIB_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-ARM32_NEWLIB_SPEC = All ARM 32-bit series newlib toolchain
-
-
-# AT91SAM7S
-TOOLCHAIN_AT91SAM7S_NEWLIB = at91sam7s-newlib
-
-AT91SAM7S_NEWLIB_ARCH = arm-at91sam7s-eabi
-AT91SAM7S_NEWLIB_DIR  = arm-AT91SAM7S-eabi-newlib
-AT91SAM7S_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(AT91SAM7S_NEWLIB_DIR)
-###                    |---Toolchain-spec-handy-ruler----------------|
-AT91SAM7S_NEWLIB_SPEC = Atmel AT91SAM7S newlib toolchain
-
-
-# IMX6-GLIBC
-TOOLCHAIN_IMX6_GLIBC = imx6-glibc
-
-IMX6_GLIBC_ARCH = arm-imx6-linux-gnueabihf
-IMX6_GLIBC_DIR  = arm-IMX6-linux-glibc
-IMX6_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(IMX6_GLIBC_DIR)
-###              |---Toolchain-spec-handy-ruler----------------|
-IMX6_GLIBC_SPEC = Freescale i.MX6 GNU Libc toolchain
-
-
-# IMX6ULL-GLIBC
-TOOLCHAIN_IMX6ULL_GLIBC = imx6ull-glibc
-
-IMX6ULL_GLIBC_ARCH = arm-imx6ull-linux-gnueabihf
-IMX6ULL_GLIBC_DIR  = arm-IMX6ULL-linux-glibc
-IMX6ULL_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(IMX6ULL_GLIBC_DIR)
-###                 |---Toolchain-spec-handy-ruler----------------|
-IMX6ULL_GLIBC_SPEC = NXP i.MX6ULL GNU Libc toolchain
-
-
-# OMAP543X-GLIBC
-TOOLCHAIN_OMAP543X_GLIBC = omap543x-glibc
-
-OMAP543X_GLIBC_ARCH = arm-omap543x-linux-gnueabihf
-OMAP543X_GLIBC_DIR  = arm-OMAP543X-linux-glibc
-OMAP543X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(OMAP543X_GLIBC_DIR)
-###                  |---Toolchain-spec-handy-ruler----------------|
-OMAP543X_GLIBC_SPEC = Texas OMAP543x GNU Libc toolchain
-
-
-# AllWinner A10-GLIBC
-TOOLCHAIN_A1X_GLIBC = a1x-glibc
-
-A1X_GLIBC_ARCH = arm-a1x-linux-gnueabihf
-A1X_GLIBC_DIR  = arm-A1X-linux-glibc
-A1X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A1X_GLIBC_DIR)
-###             |---Toolchain-spec-handy-ruler----------------|
-A1X_GLIBC_SPEC = Allwinner A1x GNU Libc toolchain
-
-# AllWinner A20-GLIBC
-TOOLCHAIN_A2X_GLIBC = a2x-glibc
-
-A2X_GLIBC_ARCH = arm-a2x-linux-gnueabihf
-A2X_GLIBC_DIR  = arm-A2X-linux-glibc
-A2X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A2X_GLIBC_DIR)
-###             |---Toolchain-spec-handy-ruler----------------|
-A2X_GLIBC_SPEC = Allwinner A2x GNU Libc toolchain
-
-
-# AllWinner H3-GLIBC
-TOOLCHAIN_H3_GLIBC = h3-glibc
-
-H3_GLIBC_ARCH = arm-h3-linux-gnueabihf
-H3_GLIBC_DIR  = arm-H3-linux-glibc
-H3_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(H3_GLIBC_DIR)
-###            |---Toolchain-spec-handy-ruler----------------|
-H3_GLIBC_SPEC = Allwinner H3 GNU Libc toolchain
-
-
-# AllWinner H5-NEWLIB
-TOOLCHAIN_H5_NEWLIB = h5-newlib
-
-H5_NEWLIB_ARCH = aarch64-h5-elf
-H5_NEWLIB_DIR  = aarch64-H5-elf-newlib
-H5_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(H5_NEWLIB_DIR)
-###             |---Toolchain-spec-handy-ruler----------------|
-H5_NEWLIB_SPEC = Allwinner H5 newlib toolchain
-
-# AllWinner H5-GLIBC
-TOOLCHAIN_H5_GLIBC = h5-glibc
-
-H5_GLIBC_ARCH = aarch64-h5-linux-gnu
-H5_GLIBC_DIR  = aarch64-H5-linux-glibc
-H5_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(H5_GLIBC_DIR)
-###            |---Toolchain-spec-handy-ruler----------------|
-H5_GLIBC_SPEC = Allwinner H5 GNU Libc toolchain
-
-
-# Amlogic S8XX-GLIBC
-TOOLCHAIN_S8XX_GLIBC = s8xx-glibc
-
-S8XX_GLIBC_ARCH = arm-s8xx-linux-gnueabihf
-S8XX_GLIBC_DIR  = arm-S8XX-linux-glibc
-S8XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(S8XX_GLIBC_DIR)
-###              |---Toolchain-spec-handy-ruler----------------|
-S8XX_GLIBC_SPEC = Amlogic S8xx GNU Libc toolchain
-
-
-# Amlogic S9XX (especially for u-boot firmware)
-TOOLCHAIN_A9XX_NEWLIB = a9xx-newlib
-
-A9XX_NEWLIB_ARCH = arm-a9xx-eabi
-A9XX_NEWLIB_DIR  = arm-A9XX-eabi-newlib
-A9XX_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(A9XX_NEWLIB_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-A9XX_NEWLIB_SPEC = Amlogic S9xx Cortex-m3 newlib toolchain
-
-# Amlogic S9XX
-TOOLCHAIN_S9XX_NEWLIB = s9xx-newlib
-
-S9XX_NEWLIB_ARCH = aarch64-s9xx-elf
-S9XX_NEWLIB_DIR  = aarch64-S9XX-elf-newlib
-S9XX_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(S9XX_NEWLIB_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-S9XX_NEWLIB_SPEC = Amlogic S9xx newlib toolchain
-
-# Amlogic S9XX-GLIBC
-TOOLCHAIN_S9XX_GLIBC = s9xx-glibc
-
-S9XX_GLIBC_ARCH = aarch64-s9xx-linux-gnu
-S9XX_GLIBC_DIR  = aarch64-S9XX-linux-glibc
-S9XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(S9XX_GLIBC_DIR)
-###              |---Toolchain-spec-handy-ruler----------------|
-S9XX_GLIBC_SPEC = Amlogic S9xx GNU Libc toolchain
-
-# Amlogic A9XX-GLIBC
-TOOLCHAIN_A9XX_GLIBC = a9xx-glibc
-
-A9XX_GLIBC_ARCH = armv8l-a9xx-linux-gnueabihf
-A9XX_GLIBC_DIR  = armv8l-A9XX-linux-glibc
-A9XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A9XX_GLIBC_DIR)
-###              |---Toolchain-spec-handy-ruler----------------|
-A9XX_GLIBC_SPEC = Amlogic S9xx armv8l GNU Libc toolchain
-
-# Amlogic A311X-GLIBC
-TOOLCHAIN_A311X_GLIBC = a311x-glibc
-
-A311X_GLIBC_ARCH = aarch64-a311x-linux-gnu
-A311X_GLIBC_DIR  = aarch64-A311X-linux-glibc
-A311X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A311X_GLIBC_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-A311X_GLIBC_SPEC = Amlogic A311X GNU Libc toolchain
-
-
-# Rockchip A33XX-NEWLIB (ARMv6-M Cortex-m0)
-TOOLCHAIN_A33XX_NEWLIB = a33xx-newlib
-
-A33XX_NEWLIB_ARCH = arm-a33xx-eabi
-A33XX_NEWLIB_DIR  = arm-A33XX-eabi-newlib
-A33XX_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(A33XX_NEWLIB_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-A33XX_NEWLIB_SPEC = Rockchip RK33xx Cortex-m0 newlib toolchain
-
-# Rockchip RK33XX-NEWLIB
-TOOLCHAIN_RK33XX_NEWLIB = rk33xx-newlib
-
-RK33XX_NEWLIB_ARCH = aarch64-rk33xx-elf
-RK33XX_NEWLIB_DIR  = aarch64-RK33XX-elf-newlib
-RK33XX_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK33XX_NEWLIB_DIR)
-###                 |---Toolchain-spec-handy-ruler----------------|
-RK33XX_NEWLIB_SPEC = Rockchip RK33xx newlib toolchain
-
-# Rockchip RK33XX-GLIBC
-TOOLCHAIN_RK33XX_GLIBC = rk33xx-glibc
-
-RK33XX_GLIBC_ARCH = aarch64-rk33xx-linux-gnu
-RK33XX_GLIBC_DIR  = aarch64-RK33XX-linux-glibc
-RK33XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK33XX_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-RK33XX_GLIBC_SPEC = Rockchip RK33xx GNU Libc toolchain
-
-# Rockchip RK339X-GLIBC
-TOOLCHAIN_RK339X_GLIBC = rk339x-glibc
-
-RK339X_GLIBC_ARCH = aarch64-rk339x-linux-gnu
-RK339X_GLIBC_DIR  = aarch64-RK339X-linux-glibc
-RK339X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK339X_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-RK339X_GLIBC_SPEC = Rockchip RK339x GNU Libc toolchain
-
-# Rockchip A33XX-GLIBC
-TOOLCHAIN_A33XX_GLIBC = a33xx-glibc
-
-A33XX_GLIBC_ARCH = armv8l-a33xx-linux-gnueabihf
-A33XX_GLIBC_DIR  = armv8l-A33XX-linux-glibc
-A33XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A33XX_GLIBC_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-A33XX_GLIBC_SPEC = Rockchip RK33xx armv8l GNU Libc toolchain
-
-
-# Rockchip RK328X-GLIBC
-TOOLCHAIN_RK328X_GLIBC = rk328x-glibc
-
-RK328X_GLIBC_ARCH = arm-rk328x-linux-gnueabihf
-RK328X_GLIBC_DIR  = arm-RK328X-linux-glibc
-RK328X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK328X_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-RK328X_GLIBC_SPEC = Rockchip RK328x GNU Libc toolchain
-
-
-# JZ47XX-GLIBC
-TOOLCHAIN_JZ47XX_GLIBC = jz47xx-glibc
-
-JZ47XX_GLIBC_ARCH = mipsel-jz47xx-linux-gnu
-JZ47XX_GLIBC_DIR  = mipsel-JZ47XX-linux-glibc
-JZ47XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(JZ47XX_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-JZ47XX_GLIBC_SPEC = Ingenic MIPS jz47xx GNU Libc toolchain
-
-
-# P5600-GLIBC
-TOOLCHAIN_P5600_GLIBC = p5600-glibc
-
-P5600_GLIBC_ARCH = mipsel-p5600-linux-gnu
-P5600_GLIBC_DIR  = mipsel-P5600-linux-glibc
-P5600_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(P5600_GLIBC_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-P5600_GLIBC_SPEC = Baikal MIPS p5600 core GNU Libc toolchain
-
-# BaikalElectronics M1000-NEWLIB
-TOOLCHAIN_M1000_NEWLIB = m1000-newlib
-
-M1000_NEWLIB_ARCH = aarch64-m1000-elf
-M1000_NEWLIB_DIR  = aarch64-M1000-elf-newlib
-M1000_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(M1000_NEWLIB_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-M1000_NEWLIB_SPEC = BaikalElectronics M1000 newlib toolchain
-
-# BaikalElectronics M1000-GLIBC
-TOOLCHAIN_M1000_GLIBC = m1000-glibc
-
-M1000_GLIBC_ARCH = aarch64-m1000-linux-gnu
-M1000_GLIBC_DIR  = aarch64-M1000-linux-glibc
-M1000_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(M1000_GLIBC_DIR)
-###               |---Toolchain-spec-handy-ruler----------------|
-M1000_GLIBC_SPEC = BaikalElectronics M1000 GNU Libc toolchain
-
-
-# POWER8-GLIBC
-TOOLCHAIN_POWER8_GLIBC = power8-glibc
-
-POWER8_GLIBC_ARCH = ppc64-power8-linux-gnu
-POWER8_GLIBC_DIR  = ppc64-POWER8-linux-glibc
-POWER8_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(POWER8_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-POWER8_GLIBC_SPEC = Openpower POWER8 MSB GNU Libc toolchain
-
-# POWER9-GLIBC
-TOOLCHAIN_POWER9_GLIBC = power9-glibc
-
-POWER9_GLIBC_ARCH = ppc64-power9-linux-gnu
-POWER9_GLIBC_DIR  = ppc64-POWER9-linux-glibc
-POWER9_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(POWER9_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-POWER9_GLIBC_SPEC = Openpower POWER9 MSB GNU Libc toolchain
-
-
-# POWER8LE-GLIBC
-TOOLCHAIN_POWER8LE_GLIBC = power8le-glibc
-
-POWER8LE_GLIBC_ARCH = ppc64le-power8-linux-gnu
-POWER8LE_GLIBC_DIR  = ppc64le-POWER8-linux-glibc
-POWER8LE_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(POWER8LE_GLIBC_DIR)
-###                  |---Toolchain-spec-handy-ruler----------------|
-POWER8LE_GLIBC_SPEC = Openpower POWER8 LSB GNU Libc toolchain
-
-# POWER9LE-GLIBC
-TOOLCHAIN_POWER9LE_GLIBC = power9le-glibc
-
-POWER9LE_GLIBC_ARCH = ppc64le-power9-linux-gnu
-POWER9LE_GLIBC_DIR  = ppc64le-POWER9-linux-glibc
-POWER9LE_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(POWER9LE_GLIBC_DIR)
-###                  |---Toolchain-spec-handy-ruler----------------|
-POWER9LE_GLIBC_SPEC = Openpower POWER9 LSB GNU Libc toolchain
-
-
-# All RISC-V 32,64-bit series with Newlib
-TOOLCHAIN_RISCV64_NEWLIB = riscv64-newlib
-
-RISCV64_NEWLIB_ARCH = riscv64-none-elf
-RISCV64_NEWLIB_DIR  = riscv64-NONE-elf-newlib
-RISCV64_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(RISCV64_NEWLIB_DIR)
-###                  |---Toolchain-spec-handy-ruler----------------|
-RISCV64_NEWLIB_SPEC = All RISC-V 32,64-bit series newlib toolchain
-
-# RISCV64-GLIBC
-TOOLCHAIN_RISCV64_GLIBC = riscv64-glibc
-
-RISCV64_GLIBC_ARCH = riscv64-rv64gc-linux-gnu
-RISCV64_GLIBC_DIR  = riscv64-RV64GC-linux-glibc
-RISCV64_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RISCV64_GLIBC_DIR)
-###                 |---Toolchain-spec-handy-ruler----------------|
-RISCV64_GLIBC_SPEC = RISC-V 64-bit LSB GNU Libc toolchain
-
-
-# X86_64-GLIBC
-TOOLCHAIN_X86_64_GLIBC = x86_64-glibc
-
-X86_64_GLIBC_ARCH = x86_64-radix-linux-gnu
-X86_64_GLIBC_DIR  = x86_64-PC-linux-glibc
-X86_64_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(X86_64_GLIBC_DIR)
-###                |---Toolchain-spec-handy-ruler----------------|
-X86_64_GLIBC_SPEC = Intel x86_64 GNU Libc toolchain
-
-
-# I686-GLIBC
-TOOLCHAIN_I686_GLIBC = i686-glibc
-
-I686_GLIBC_ARCH = i686-radix-linux-gnu
-I686_GLIBC_DIR  = i686-PC-linux-glibc
-I686_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(I686_GLIBC_DIR)
-###              |---Toolchain-spec-handy-ruler----------------|
-I686_GLIBC_SPEC = Intel i686 GNU Libc toolchain
-
-
-
-CONFIG_MK=1
-endif
Index: toolshains-1.6.4/build-system/targets-config.mk.template
===================================================================
--- toolshains-1.6.4/build-system/targets-config.mk.template	(revision 316)
+++ toolshains-1.6.4/build-system/targets-config.mk.template	(nonexistent)
@@ -1,107 +0,0 @@
-
-# host
-BUILD_HOST = true
-
-
-# arm-none-eabi-newlib:
-BUILD_ARM32_NEWLIB = true
-
-# a33xx-newlib:
-BUILD_A33XX_NEWLIB = true
-
-# a9xx-newlib:
-BUILD_A9XX_NEWLIB = true
-
-# h5-newlib:
-BUILD_H5_NEWLIB = true
-
-# s9xx-newlib:
-BUILD_S9XX_NEWLIB = true
-
-# rk33xx-newlib:
-BUILD_RK33XX_NEWLIB = true
-
-# m1000-newlib:
-BUILD_M1000_NEWLIB = true
-
-# at91sam7s-newlib:
-BUILD_AT91SAM7S_NEWLIB = true
-
-# riscv64-none-elf-newlib:
-BUILD_RISCV64_NEWLIB = true
-
-
-# a1x-glibc:
-BUILD_A1X_GLIBC = true
-
-# a2x-glibc:
-BUILD_A2X_GLIBC = true
-
-# h3-glibc:
-BUILD_H3_GLIBC = true
-
-# h5-glibc:
-BUILD_H5_GLIBC = true
-
-# imx6-glibc:
-BUILD_IMX6_GLIBC = true
-
-# imx6ull-glibc:
-BUILD_IMX6ULL_GLIBC = true
-
-# jz47xx-glibc:
-BUILD_JZ47XX_GLIBC = true
-
-# p5600-glibc:
-BUILD_P5600_GLIBC = true
-
-# m1000-glibc:
-BUILD_M1000_GLIBC = true
-
-# omap543x-glibc:
-BUILD_OMAP543X_GLIBC = true
-
-# rk328x-glibc:
-BUILD_RK328X_GLIBC = true
-
-# s8xx-glibc:
-BUILD_S8XX_GLIBC = true
-
-# s9xx-glibc:
-BUILD_S9XX_GLIBC = true
-
-# a9xx-glibc:
-BUILD_A9XX_GLIBC = true
-
-# a311x-glibc:
-BUILD_A311X_GLIBC = true
-
-# rk33xx-glibc:
-BUILD_RK33XX_GLIBC = true
-
-# rk339x-glibc:
-BUILD_RK339X_GLIBC = true
-
-# a33xx-glibc:
-BUILD_A33XX_GLIBC = true
-
-# power8-glibc:
-BUILD_POWER8_GLIBC = true
-
-# power9-glibc:
-BUILD_POWER9_GLIBC = true
-
-# power8le-glibc:
-BUILD_POWER8LE_GLIBC = true
-
-# power9le-glibc:
-BUILD_POWER9LE_GLIBC = true
-
-# riscv64-glibc
-BUILD_RISCV64_GLIBC = true
-
-# i686-glibc:
-BUILD_I686_GLIBC = true
-
-# x86_64-glibc:
-BUILD_X86_64_GLIBC = true
Index: toolshains-1.6.4/build-system/tree_clean
===================================================================
--- toolshains-1.6.4/build-system/tree_clean	(revision 316)
+++ toolshains-1.6.4/build-system/tree_clean	(nonexistent)
@@ -1,152 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-
-use File::Find;
-use _kxLab;
-
-
-# Global variables
-my $header_printed = 0;
-
-my $top_dir;
-my @targets;
-my $verbose = $ENV{VERBOSE};
-
-my %seen;
-my ( @dist_clean_dirs, @clean_dirs, @dist_clean_dirs_all, @clean_dirs_all );
-my ( $dist_clean_count, $clean_count );
-
-sub do_clean
-{
-  unlink "$top_dir/.makefile";
-
-  foreach my $d ( @dist_clean_dirs )
-  {
-    my $printed_d;
-
-    $printed_d = $d;
-    $printed_d =~ s/^$top_dir\///;
-
-    print "\n===\n" if ( $verbose );
-    print "=== Dist cleaning in $printed_d...\n" if ( $verbose );
-    print "===\n" if ( $verbose );
-    _kxLab::system( "make -C $d dist_clean" );
-  }
-
-  foreach my $d ( @clean_dirs )
-  {
-    my $printed_d;
-
-    $printed_d = $d;
-    $printed_d =~ s/^$top_dir\///;
-
-    print "\n===\n" if ( $verbose );
-    print "=== Cleaning in $printed_d...\n" if ( $verbose );
-    print "===\n" if ( $verbose );
-    _kxLab::system( "make -C $d local_clean" );
-    unlink "$d/.makefile";
-  }
-}
-
-sub do_clean_list
-{
-  my $dir = shift;
-  my $cwd = `pwd`;
-
-  chomp $cwd;
-
-  return if( ! -f "$cwd/Makefile" );
-  return if( $dir =~ m/sources/ );
-
-  # needs dist clean:
-  if( -f "$cwd/.dist" ) { push @dist_clean_dirs_all, $cwd; }
-
-  # needs clean:
-  push @clean_dirs_all, $cwd;
-}
-
-sub process_clean
-{
-  # add directory which contains '.makefile' too.
-  if( $_ eq ".makefile" ) { do_clean_list( $File::Find::dir ); }
-
-  return if( ! -d $_ );
-
-  return if( $File::Find::name =~ m/build-system/ );
-  return if( $File::Find::name =~ m/dist/ );
-  return if( $File::Find::name =~ m/sources/ );
-
-  foreach my $d ( @targets )
-  {
-    if( $d eq $_ ) { do_clean_list( $File::Find::dir ); }
-  }
-}
-
-
-foreach ( @ARGV )
-{
-  push @targets, $_;
-}
-$top_dir = pop @targets;
-
-if( ! -d $top_dir )
-{
-  die "\nTop: $top_dir: is not a directory\n\n";
-}
-if( ! $top_dir =~ m/^\// )
-{
-  die "\nTop: $top_dir: is not absolute path\n\n";
-}
-
-find( \&process_clean, "$top_dir" );
-
-# get unique names:
-%seen = ();
-@dist_clean_dirs = grep { ! $seen{ $_ }++ } @dist_clean_dirs_all;
-# delete subdirs which already contains TARGET name:
-foreach my $target ( @targets )
-{
-  my @match = ();
-  @match = grep { /$target/ } keys %seen;
-  foreach my $subdir ( @match ) { delete( $seen{"$subdir"} ); }
-}
-@dist_clean_dirs = reverse( keys %seen );
-
-# get unique names:
-%seen = ();
-@clean_dirs = grep { ! $seen{ $_ }++ } @clean_dirs_all;
-foreach my $target ( @targets )
-{
-  my @match = ();
-  @match = grep { /$target/ } keys %seen;
-  foreach my $subdir ( @match ) { delete( $seen{"$subdir"} ); }
-}
-@clean_dirs = reverse( keys %seen );
-
-push @clean_dirs, "$top_dir/build-system";
-
-$dist_clean_count = @dist_clean_dirs;
-$clean_count = @clean_dirs;
-
-if( $dist_clean_count != 0 || $clean_count != 0 )
-{
-  if( !$header_printed )
-  {
-    print "\n======= Cleaning build tree =======\n";
-    $header_printed = 1;
-  }
-
-  do_clean();
-
-  print "\n";
-}
-else
-{
-  print "Cleaning...   (nothing to be done).\n";
-}
-

Property changes on: toolshains-1.6.4/build-system/tree_clean
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/tree.mk
===================================================================
--- toolshains-1.6.4/build-system/tree.mk	(revision 316)
+++ toolshains-1.6.4/build-system/tree.mk	(nonexistent)
@@ -1,11 +0,0 @@
-
-# Generic rule used for directories
-
-all $(TREEDIRS):
-
-get-flavour = $(if $(shell echo $1 | grep "\^"),$(shell echo $1 | cut -f 2 -d '^'),)
-
-$(TREEDIRS):
-	@$(MAKE) FLAVOUR=$(call get-flavour,$@) -C $(TOP_BUILD_DIR_ABS)/$(shell echo $@ | cut -f 1 -d '^') $(TREE_RULE)
-
-.PHONY: all $(TREEDIRS)
Index: toolshains-1.6.4/build-system/build_src_requires
===================================================================
--- toolshains-1.6.4/build-system/build_src_requires	(revision 316)
+++ toolshains-1.6.4/build-system/build_src_requires	(nonexistent)
@@ -1,299 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-
-use IO::Handle;
-use File::Basename;
-use File::Temp;
-use Getopt::Long;
-
-use _kxLab;
-
-#
-# Generate .src_requires file for current directory
-#
-# usage:
-#   $0 [options] topdir
-#
-# where:
-#   'topdir' - is a absolute path to the top directory of checked out branch
-#
-
-
-# global variables
-my (%all_requires, $top_dir, $opt_max_depth, %requires_depend, $requires_file, %skip_dirs);
-
-my %all_src_requires;
-
-sub usage
-{
-  print <<EOF;
-
-Usage: build_src_requires [options] topdir
-Options:
-   --max-depth=i - where 'i' is a maximal directory depth for finding requires;
-      --skip-dir - directory to be skipped (such as dist or TARGET_BUILD_DIR);
-          topdir - is a absolute path to the top of checked out branch.
-
-EOF
-  exit;
-}
-
-
-sub requires_depend
-{
-  my $makefile = shift;
-
-  if( ! exists $requires_depend{$makefile} )
-  {
-    print REQUIRES_DEPEND_FILE "$requires_file: $makefile\n\n";
-    print REQUIRES_DEPEND_FILE "$makefile:\n\n";
-    $requires_depend{$makefile} = "";
-  }
-}
-
-sub read_src_requires
-{
-  my $makefile  = shift;
-
-  # add a dependency to the Makefile
-  requires_depend($makefile);
-
-  my %requires;
-
-  my $shell_output = `cat $makefile`;
-
-  while( $shell_output =~ m/^SOURCE_REQUIRES(.+= +)(.+)/gm )
-  {
-    my @n = split( " ", $2 );
-    foreach my $d ( @n )
-    {
-      if( $d eq "ALL_DIRS" )
-      {
-        my $dirname = dirname($makefile);
-
-        opendir( DIR, "$dirname" ) or
-          _kxLab::error( "build_src_requires: Could not open directory: $dirname: $!" );
-        my @dirs = grep { ! /^\./ && -d "$_" && -f "$_/Makefile" } readdir( DIR );
-        closedir DIR;
-
-        foreach my $dir (@dirs)
-        {
-          requires_depend("$dirname/$dir/Makefile");
-          "$dirname/$dir" =~ m!$top_dir/(.+)!;
-          $requires{$1} = "";
-        }
-      }
-      else
-      {
-        # Print a nice error message if the SOURCE_REQUIRES statement points to a missing directory
-        _kxLab::error( "build_src_requires: SOURCE_REQUIRES '$d' in $makefile not found. Exit" ) if( ! -d "$top_dir/$d" );
-
-        if( -f "$top_dir/$d/Makefile" )
-        {
-          $requires{$d} = "";
-          requires_depend("$top_dir/$d/Makefile");
-        }
-      }
-    }
-  }
-  return %requires;
-}
-
-sub read_requires
-{
-  my $makefile  = shift;
-
-  # add a dependency to the Makefile
-  requires_depend($makefile);
-
-  my %requires;
-
-  my $shell_output = `cat $makefile`;
-
-  while( $shell_output =~ m/^REQUIRES(.+= +)(.+)/gm )
-  {
-    my @n = split( " ", $2 );
-    foreach my $req ( @n )
-    {
-      my $d = `echo $req | cut -f 1 -d '^'`;
-      $d =~ s/^\s+|\s+$//;
-
-      if( $d eq "ALL_DIRS" )
-      {
-        my $dirname = dirname($makefile);
-
-        opendir( DIR, "$dirname" ) or
-          _kxLab::error( "build_src_requires: Could not open directory: $dirname: $!" );
-        my @dirs = grep { ! /^\./ && -d "$_" && -f "$_/Makefile" } readdir( DIR );
-        closedir DIR;
-
-        foreach my $dir (@dirs)
-        {
-          requires_depend( "$dirname/$dir/Makefile" );
-          "$dirname/$dir" =~ m!$top_dir/(.+)!;
-          $requires{$1} = "";
-
-          my %src_requires = read_src_requires( "$dirname/$dir/Makefile" );
-          my @sort_src_requires = sort(keys %src_requires);
-          foreach my $req ( @sort_src_requires )
-          {
-            $all_src_requires{$req} = "";
-          }
-        }
-      }
-      else
-      {
-        # Print a nice error message if the REQUIRES statement points to a missing directory
-        _kxLab::error( "build_src_requires: REQUIRES '$d' in $makefile not found. Exit" ) if( ! -d "$top_dir/$d" );
-
-        if( -f "$top_dir/$d/Makefile" )
-        {
-          $requires{$d} = "";
-
-          my %src_requires = read_src_requires( "$top_dir/$d/Makefile" );
-          my @sort_src_requires = sort(keys %src_requires);
-          foreach my $req ( @sort_src_requires )
-          {
-            $all_src_requires{$req} = "";
-          }
-        }
-      }
-    }
-  }
-  return %requires;
-}
-
-sub start_depend
-{
-  my $req = shift;
-
-  print REQUIRES_FILE "$req:";
-}
-
-sub depend
-{
-  my $req = shift;
-
-  print REQUIRES_FILE " $req";
-}
-
-sub end_depend
-{
-  print REQUIRES_FILE "\n\n";
-}
-
-sub make_sub_requires
-{
-  my $req = shift;
-
-  if( ! exists $all_requires{$req} )
-  {
-    $all_requires{$req} = "";
-
-    my $d = `echo $req | cut -f 1 -d '^'`;
-    $d =~ s/^\s+|\s+$//;
-
-    # Read sub requires
-    my $makefile = "$top_dir/$d/Makefile";
-    my %sub_requires = read_requires( $makefile );
-    if( scalar(%sub_requires) )
-    {
-      # Make sub sub requires
-      my @sorted_sub_requires = sort(keys %sub_requires);
-      foreach my $sub_req ( @sorted_sub_requires )
-      {
-        make_sub_requires( $sub_req );
-      }
-    }
-  }
-}
-
-
-#
-# Parse the command line options
-#
-$opt_max_depth = 10;
-my @opt_skip_dirs;
-GetOptions( "max-depth=i" => \$opt_max_depth, "skip-dir=s" => \@opt_skip_dirs );
-%skip_dirs = map { $_ => "" } @opt_skip_dirs;
-
-# get the rest of the command line
-my $topdir   = shift;
-my $makefile = "Makefile";
-
-if( ! defined $topdir or $topdir eq "" ) { usage; }
-
-_kxLab::error( "build_requires: $topdir is not a directory" ) if( ! -d $topdir );
-_kxLab::error( "build_requires: Makefile missing: $makefile" ) if ( ! -f $makefile );
-
-# setup $top_build_dir
-$top_dir = $topdir;
-
-$requires_file = ".src_requires";
-my $requires_depend_file = $requires_file . "_depend";
-
-
-# open the output files
-open(REQUIRES_FILE, "> $requires_file") or
-  _kxLab::error( "build_requires: Could not open $requires_file file: $!" );
-open(REQUIRES_DEPEND_FILE, "> $requires_depend_file") or
-  _kxLab::error( "build_requires: Could not open $requires_depend_file file: $!" );
-
-
-# root component
-my $pwd = `pwd`;
-chomp $pwd;
-$pwd =~ m!$top_dir(.*)!;
-my $root;
-if( $1 eq "" )
-{
-  $root = "all";
-}
-else
-{
-  $1 =~ m!/(.+)!;
-  $root = $1;
-}
-
-print REQUIRES_FILE "# ROOT=$root\n\n";
-print REQUIRES_DEPEND_FILE "\n";
-
-# read the makefile
-%all_src_requires = read_src_requires( "$pwd/$makefile" );
-my %requires = read_requires( "$pwd/$makefile" );
-
-
-# check the "build-system" sub dependencies implicitly (excluding sources directories)
-#$requires{"build-system"} = "";
-
-
-# build sub dependencies
-my @sorted_requires = sort(keys %requires);
-foreach my $req ( @sorted_requires )
-{
-  make_sub_requires( $req );
-}
-
-# build the all: rule
-start_depend( "all" );
-my @sorted_src_requires = sort(keys %all_src_requires);
-foreach my $req ( @sorted_src_requires )
-{
-  depend( $req );
-}
-end_depend();
-
-
-# Finish by including tree.mk
-print REQUIRES_FILE "TREEDIRS = ", join(" ", sort(keys %all_src_requires)), "\n\n";
-print REQUIRES_FILE "include \$(BUILDSYSTEM)/tree-src.mk\n";
-
-
-# close output files
-close REQUIRES_FILE;
-close REQUIRES_DEPEND_FILE;

Property changes on: toolshains-1.6.4/build-system/build_src_requires
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/canonical-build
===================================================================
--- toolshains-1.6.4/build-system/canonical-build	(revision 316)
+++ toolshains-1.6.4/build-system/canonical-build	(nonexistent)
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
-  i*:CYGWIN*:*)
-    echo ${UNAME_MACHINE}-pc-cygwin
-    exit ;;
-  *:MINGW*:*)
-    echo ${UNAME_MACHINE}-pc-mingw32
-    exit ;;
-  amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
-    echo x86_64-unknown-cygwin
-    exit ;;
-  i*86:Linux:*:*)
-    if [ -f /etc/slackware-version ]; then
-      system=`cat /etc/slackware-version | cut -f 1 -d ' ' | tr 'S' 's'`
-      echo ${UNAME_MACHINE}-${system}-linux
-    else
-      echo ${UNAME_MACHINE}-unknown-linux-gnu
-    fi
-    exit ;;
-  x86_64:Linux:*:*)
-    if [ -f /etc/slamd64-version ]; then
-      system=`cat /etc/slamd64-version | cut -f 1 -d ' ' | tr 'S' 's'`
-      echo x86_64-${system}-linux
-    elif [ -f /etc/slackware-version ]; then
-      system=`cat /etc/slackware-version | cut -f 1 -d ' ' | tr 'S' 's'`
-      echo x86_64-${system}-linux
-    elif [ -f /etc/os-release ]; then
-      system=`cat /etc/os-release | grep -e '^ID=' | cut -f 2 -d '='`
-      echo x86_64-linux-gnu
-    else
-      echo x86_64-unknown-linux-gnu
-    fi
-    exit ;;
-esac
-
-####### echo "unknown-unknown-unknown-unknown"
-
-cat >&2 <<EOF
-
-`basename $0`: unable to reciognize build system type
-
-   MACHINE = '${UNAME_MACHINE}'
-   SYSTEM  = '${UNAME_SYSTEM}'
-   RELEASE = '${UNAME_RELEASE}'
-   VERSION = '${UNAME_VERSION}'
-
-EOF
-
-exit 1

Property changes on: toolshains-1.6.4/build-system/canonical-build
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/build_requires
===================================================================
--- toolshains-1.6.4/build-system/build_requires	(revision 316)
+++ toolshains-1.6.4/build-system/build_requires	(nonexistent)
@@ -1,305 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-
-use IO::Handle;
-use File::Basename;
-use File::Temp;
-use Getopt::Long;
-
-use _kxLab;
-
-#
-# Generate .$(HARDWARE)_requires file for current directory
-#
-# usage:
-#   $0 [options] topdir toolchain flavour
-#
-# where:
-#      'topdir' - is a absolute path to the top directory of checked out branch
-#   'toolchain' - is a TOOLCHAIN name
-#     'flavour' - is a HARDWARE variant
-#
-
-# global variables
-my (%all_requires, $top_dir, $opt_max_depth, %requires_depend, $requires_file, %skip_dirs);
-
-my ($toolchain, $flavour, $target_build_dir);
-
-
-sub usage
-{
-  print <<EOF;
-
-Usage: build_requires [options] topdir toolchain flavour
-Options:
-   --max-depth=i - where 'i' is a maximal directory depth for finding requires;
-      --skip-dir - directory to be skipped (such as dist or TARGET_BUILD_DIR);
-          topdir - is a absolute path to the top of checked out branch;
-       toolchain - is a TOOLCHAIN name;
-         flavour - is a HARDWARE variant.
-
-EOF
-  exit;
-}
-
-
-sub requires_depend
-{
-  my $makefile = shift;
-
-  if( ! exists $requires_depend{$makefile} )
-  {
-    print REQUIRES_DEPEND_FILE "$requires_file: $makefile\n\n";
-    print REQUIRES_DEPEND_FILE "$makefile:\n\n";
-    $requires_depend{$makefile} = "";
-  }
-}
-
-sub read_requires
-{
-  my $makefile = shift;
-  my $flavour  = shift;
-
-  # Add a dependency to the Makefile
-  requires_depend( $makefile );
-
-  my $cdir = dirname( $makefile );
-
-  my %requires;
-
-  #
-  # We read the head of Makefile until '__END_OF_REQUIRES__' keyword.
-  # The 'build-system/constants.mk' should be included before requires.
-  #
-  my $shell_output = <<`SHELL`;
-cd $cdir
-head -n `cat Makefile | grep -n "__END_OF_REQUIRES__" | cut -f 1 -d ':'` Makefile | \
-  make TOOLCHAIN=$toolchain FLAVOUR=$flavour -f - -p __build_requires__ 2>/dev/null | grep "REQUIRES"
-exit 0
-SHELL
-
-  while( $shell_output =~ m/^REQUIRES(.+= +)(.+)/gm )
-  {
-    my @n = split( " ", $2 );
-    foreach my $req ( @n )
-    {
-      my ($d, $f);
-
-      $d = `echo $req | cut -f 1 -d '^'`;
-      $d =~ s/^\s+|\s+$//;
-      if( $req =~ m/\^/ )
-      {
-        $f = `echo $req | cut -f 2 -d '^'`;
-        $f =~ s/^\s+|\s+$//;
-      }
-      else
-      {
-        $f = "";
-      }
-
-      if( $d eq "ALL_DIRS" )
-      {
-        my $dirname = dirname( $makefile );
-
-        opendir( DIR, "$dirname" ) or
-          _kxLab::error( "build_requires: Could not open directory: $dirname: $!" );
-        my @dirs = grep { ! /^\./ && -d "$_" && -f "$_/Makefile" } readdir( DIR );
-        closedir DIR;
-
-        foreach my $dir (@dirs)
-        {
-          requires_depend( "$dirname/$dir/Makefile" );
-          "$dirname/$dir" =~ m!$top_dir/(.+)!;
-          $requires{$1} = "";
-        }
-      }
-      else
-      {
-        # Print a nice error message if the REQUIRES statement points to a missing directory
-        _kxLab::error( "build_requires: REQUIRES '$d' in $makefile not found. Exit" ) if( ! -d "$top_dir/$d" );
-
-        if( -f "$top_dir/$d/Makefile" )
-        {
-          if( $f eq "" ) { $requires{$d} = "";            }
-          else           { $requires{$d . "^" . $f} = ""; }
-        }
-      }
-    }
-  }
-  return %requires;
-}
-
-sub start_depend
-{
-  my $req = shift;
-
-  print REQUIRES_FILE "$req:";
-}
-
-sub depend
-{
-  my $req = shift;
-
-  print REQUIRES_FILE " $req";
-}
-
-sub end_depend
-{
-  print REQUIRES_FILE "\n\n";
-}
-
-sub make_sub_requires
-{
-  my $req = shift;
-
-  if( ! exists $all_requires{$req} )
-  {
-    $all_requires{$req} = "";
-
-    my ($d, $f);
-
-    $d = `echo $req | cut -f 1 -d '^'`;
-    $d =~ s/^\s+|\s+$//;
-    if( $req =~ m/\^/ )
-    {
-      $f = `echo $req | cut -f 2 -d '^'`;
-      $f =~ s/^\s+|\s+$//;
-    }
-    else
-    {
-      $f = "";
-    }
-
-    # Read sub requires
-    my $makefile = "$top_dir/$d/Makefile";
-    my %sub_requires = read_requires( $makefile, $f );
-    if( scalar(%sub_requires) )
-    {
-      my @sorted_sub_requires = sort(keys %sub_requires);
-
-      # Build dependencies for sub requires
-      if( $f eq "" ) { start_depend( $d );            }
-      else           { start_depend( $d . "^" . $f ); }
-      foreach my $sub_req ( @sorted_sub_requires )
-      {
-        depend( $sub_req );
-      }
-      end_depend();
-
-      # Make sub sub requires
-      foreach my $sub_req ( @sorted_sub_requires )
-      {
-        make_sub_requires( $sub_req );
-      }
-    }
-  }
-}
-
-
-#
-# Parse the command line options
-#
-$opt_max_depth = 10;
-my @opt_skip_dirs;
-GetOptions( "max-depth=i" => \$opt_max_depth, "skip-dir=s" => \@opt_skip_dirs );
-%skip_dirs = map { $_ => "" } @opt_skip_dirs;
-
-# Get the rest of the command line
-my $topdir = shift;
-$toolchain = shift;
-$flavour   = shift;
-
-
-my $makefile = "Makefile";
-
-if( ! defined $topdir    or $topdir eq "" )    { usage; }
-if( ! defined $toolchain or $toolchain eq "" ) { usage; }
-if( ! defined $flavour   or $flavour eq "" )
-{
-  $flavour = "";
-  $target_build_dir = "." . $toolchain ;
-}
-else
-{
-  $target_build_dir = "." . $toolchain . "/" . $flavour;
-}
-
-_kxLab::error( "build_requires: $topdir is not a directory" ) if( ! -d $topdir );
-_kxLab::error( "build_requires: Makefile missing: $makefile" ) if ( ! -f $makefile );
-
-# setup $top_build_dir
-$top_dir = $topdir;
-my $build_system = $top_dir . "/build-system";
-#my $build_system = "build-system";
-
-_kxLab::system( "mkdir -p $target_build_dir" );
-
-$requires_file = $target_build_dir . "/" . ".requires";
-my $requires_depend_file = $requires_file . "_depend";
-
-# open the output files
-open(REQUIRES_FILE, "> $requires_file") or
-  _kxLab::error( "build_requires: Could not open $requires_file file: $!" );
-open(REQUIRES_DEPEND_FILE, "> $requires_depend_file") or
-  _kxLab::error( "build_requires: Could not open $requires_depend_file file: $!" );
-
-
-# root component
-my $pwd = `pwd`;
-chomp $pwd;
-$pwd =~ m!$top_dir(.*)!;
-my $root;
-if( $1 eq "" )
-{
-  $root = "all";
-}
-else
-{
-  $1 =~ m!/(.+)!;
-  $root = $1;
-}
-
-print REQUIRES_FILE "# ROOT=$root\n\n";
-print REQUIRES_DEPEND_FILE "\n";
-
-
-# read the makefile
-my %requires = read_requires( "$pwd/$makefile", $flavour );
-
-# ignore the "build-system" dependency (if any), since this dependency is implicit
-delete $requires{"build-system"};
-
-my @sorted_requires = sort(keys %requires);
-
-# build the all: rule
-start_depend( "all" );
-foreach my $req ( @sorted_requires )
-{
-  depend( $req );
-}
-end_depend();
-
-# build sub dependencies
-foreach my $req ( @sorted_requires )
-{
-  make_sub_requires( $req );
-}
-
-# Finish by including tree.mk
-print REQUIRES_FILE "TREEDIRS = ", join(" ", sort(keys %all_requires)), "\n\n";
-if( $pwd =~ m/$build_system/ )
-{
-  print REQUIRES_FILE "include \$(BUILDSYSTEM)/tree-bs.mk\n";
-}
-else
-{
-  print REQUIRES_FILE "include \$(BUILDSYSTEM)/tree.mk\n";
-}
-
-close REQUIRES_FILE;
-close REQUIRES_DEPEND_FILE;

Property changes on: toolshains-1.6.4/build-system/build_requires
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/install_targets
===================================================================
--- toolshains-1.6.4/build-system/install_targets	(revision 316)
+++ toolshains-1.6.4/build-system/install_targets	(nonexistent)
@@ -1,131 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-
-use File::Basename;
-use File::Temp;
-use _kxLab;
-
-# Global variables
-my $header_printed = 0;
-
-my $cleanup = $ENV{DO_CREATE_DIST_FILES} ? 0 : 1;
-my ($tempfd, $tempname) = File::Temp::tempfile(".dist.XXXXXX", UNLINK => $cleanup);
-
-# cleanpath( path )
-sub cleanpath
-{
-  my $path = shift;
-  $path =~ s!/{2,}!/!g;
-  return $path;
-}
-
-# dist( file )
-sub dist
-{
-  my $file = cleanpath(shift);
-  $file =~ s!^.*dist/!!;
-  print $tempfd "$file\n";
-}
-
-# newer_than( file1, file2 )
-sub newer_than
-{
-  my $file1 = shift;
-  my $file2 = shift;
-  _kxLab::error( "install_targets: Source file missing: $file1" ) if ( ! -f $file1 );
-  return( ! -f $file2 or -M $file1 < -M $file2 );
-}
-
-# install_tree( install_dir, file, target, verbose )
-sub install_tree
-{
-  my $install_dir = cleanpath(shift);
-  my $file = shift;
-  my $target = shift;
-  my $verbose = shift;
-
-  opendir(DIR, "$target");
-  my @files = readdir(DIR);
-  closedir DIR;
-  foreach my $f ( @files )
-  {
-    next if ($f eq "." or $f eq "..");
-    if( -d "$target/$f" )
-    {
-      install_tree( "$install_dir/$f", "$file/$f", "$target/$f", $verbose );
-    }
-    elsif( newer_than( "$target/$f", "$install_dir/$f" ) )
-    {
-      if( !$header_printed )
-      {
-        print "\n======= Installing files =======\n";
-        $header_printed = 1;
-      }
-      print "Installing $f in $install_dir\n" if ( $verbose );
-      _kxLab::system( "mkdir -p $install_dir" );
-      _kxLab::system( "cp -fa $target/$f $install_dir" );
-      dist( "$install_dir/$f" );
-    }
-  }
-}
-
-# install( install_dir, preserve_source_dir, verbose, targets )
-sub install
-{
-  my $install_dir = cleanpath(shift);
-  my $preserve_source_dir = shift;
-  my $verbose = shift;
-  my $targets = shift;
-
-  foreach my $target ( @{$targets} )
-  {
-    my $file = basename($target);
-    my $path = "";
-    if( $preserve_source_dir eq "true" )
-    {
-      $path = dirname( $target );
-    }
-
-    if( -d $target )
-    {
-      install_tree( "$install_dir/$path/$file", "$file", "$target", $verbose );
-    }
-    elsif( newer_than( $target, "$install_dir/$path/$file" ) )
-    {
-      if( !$header_printed )
-      {
-        print "\n======= Installing files =======\n";
-        $header_printed = 1;
-      }
-      print "Installing $file in $install_dir/$path\n" if ( $verbose );
-      _kxLab::system( "mkdir -p $install_dir/$path" );
-      _kxLab::system( "cp -fa $target $install_dir/$path" );
-      dist( "$install_dir/$path/$file" );
-    }
-  }
-}
-
-my $preserve_source_dir = "";
-my $dest_dir;
-my @targets;
-my $verbose = $ENV{VERBOSE};
-
-foreach ( @ARGV )
-{
-  if( /--preserve-source-dir=(\S*)/ )
-  {
-    $preserve_source_dir = $1;
-  }
-  else
-  {
-    push @targets, $_;
-  }
-}
-$dest_dir = pop @targets;
-
-install( $dest_dir, $preserve_source_dir, $verbose, \@targets );

Property changes on: toolshains-1.6.4/build-system/install_targets
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/tree-src.mk
===================================================================
--- toolshains-1.6.4/build-system/tree-src.mk	(revision 316)
+++ toolshains-1.6.4/build-system/tree-src.mk	(nonexistent)
@@ -1,9 +0,0 @@
-
-# Generic rule used for source directories
-
-all $(TREEDIRS):
-
-$(TREEDIRS):
-	@$(MAKE) -C $(TOP_BUILD_DIR_ABS)/$@ $(TREE_RULE)
-
-.PHONY: all $(TREEDIRS)
Index: toolshains-1.6.4/build-system/configure-targets
===================================================================
--- toolshains-1.6.4/build-system/configure-targets	(revision 316)
+++ toolshains-1.6.4/build-system/configure-targets	(nonexistent)
@@ -1,82 +0,0 @@
-#!/bin/bash
-
-CWD=`pwd`
-
-BUILDSYSTEM=${BUILDSYSTEM:-$CWD}
-
-CONFIG=${CONFIG:-targets-config.mk}
-CONSTANTS=${CONSTANTS:-config.mk}
-
-if [ ! -r $CONFIG ] ; then
-  echo "$0: ERROR: There is no $CONFIG file for configuring target HW."
-  echo ""
-  exit 1
-fi
-
-: ${DIALOG=$BUILDSYSTEM/sbin/dialog}
-: ${DIALOGRC=$BUILDSYSTEM/etc/dialogrc}
-
-export DIALOGRC
-
-: ${DIALOG_OK=0}
-: ${DIALOG_CANCEL=1}
-: ${DIALOG_HELP=2}
-: ${DIALOG_EXTRA=3}
-: ${DIALOG_ITEM_HELP=4}
-: ${DIALOG_ESC=255}
-
-: ${SIG_NONE=0}
-: ${SIG_HUP=1}
-: ${SIG_INT=2}
-: ${SIG_QUIT=3}
-: ${SIG_KILL=9}
-: ${SIG_TERM=15}
-
-
-umask 002
-if [ ! -z "$TMPDIR" ] ; then mkdir -p $TMPDIR ; fi
-TMP=$(mkdir -p /tmp/radix && mktemp -d -p /tmp/radix build-system.XXXXXXXX) || { echo "Cannot create '/tmp/...' directory" ; exit 92; }
-trap "rm -rf $TMP" 0 $SIG_NONE $SIG_HUP $SIG_INT $SIG_QUIT $SIG_TERM
-
-
-hwlist=`cat $CONFIG | grep "^BUILD_.*[ \t]*=.*" | sed "s,^BUILD_\(.*\)[ \t]*=.*,\1," | tr 'A-Z' 'a-z' | tr '\n' ' ' | sed 's/host//g' | tr -s ' ' | sed 's/^[ \t]//' | sed 's/[ \t]$//'`
-
-for hw in $hwlist ; do
-  hh=`echo $hw | tr 'a-z' 'A-Z'`
-  spec=`cat $CONSTANTS | grep "^${hh}_SPEC[ \t]*=.*" | sed "s,^${hh}_SPEC[ \t]*=[ \t]*\(.*\),\1," | sed "s,\\\\\,,g"`
-  enabled=`cat $CONFIG | grep "^BUILD_${hh}[ \t]*=.*" | sed "s,^BUILD_${hh}[ \t]*=[ \t]*\(.*\),\1,"`
-  if [ "$enabled" == "true" ] ; then
-    en="on"
-  else
-    en="off"
-  fi
-  echo "\"$hw\" \"$spec\" \"$en\"" >> $TMP/sel$$
-done
-
-$DIALOG --colors \
-        --backtitle "\Z7Build System\Zn" \
-        --title " \Z1SELECTING TOOLCHAINS TO BUILD\Zn " \
-        --clear \
-        --checklist "\n\
-\Zb\Z4Please confirm the toolchains you want to build\Zn\ZB.\n\n\
-Use the UP/DOWN keys to scroll through the list, and the SPACE key\n\
-to deselect any items you don't want to build.\n\n\
-Press ENTER when you are done." \
-21 72 8 \
-        --file $TMP/sel$$  2> $TMP/ret$$
-
-retval=$?
-
-case $retval in
-  $DIALOG_OK)
-    enabled="`cat $TMP/ret$$`"
-    for hw in $hwlist ; do
-      hh=`echo $hw | tr 'a-z' 'A-Z'`
-      sed -i "s,^\(BUILD_${hh}[ \t]*=[ \t]*\).*,\1false," $CONFIG
-    done
-    for hw in $enabled ; do
-      hh=`echo $hw | tr 'a-z' 'A-Z'`
-      sed -i "s,^\(BUILD_${hh}[ \t]*=[ \t]*\).*,\1true," $CONFIG
-    done
-    ;;
-esac

Property changes on: toolshains-1.6.4/build-system/configure-targets
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/downloads_clean
===================================================================
--- toolshains-1.6.4/build-system/downloads_clean	(revision 316)
+++ toolshains-1.6.4/build-system/downloads_clean	(nonexistent)
@@ -1,116 +0,0 @@
-#!/usr/bin/perl
-
-use FindBin;
-use lib $FindBin::Bin;
-
-use strict;
-use warnings FATAL => 'all';
-
-use File::Find;
-use _kxLab;
-
-
-# Global variables
-my $header_printed = 0;
-
-my $top_dir;
-my @targets;
-my $verbose = $ENV{VERBOSE};
-
-my %seen;
-my ( @dist_clean_dirs, @clean_dirs, @dist_clean_dirs_all, @clean_dirs_all );
-my ( $dist_clean_count, $clean_count );
-
-sub do_clean
-{
-  unlink "$top_dir/.makefile";
-
-  foreach my $d ( @clean_dirs )
-  {
-    my $printed_d;
-
-    $printed_d = $d;
-    $printed_d =~ s/^$top_dir\///;
-
-    print "\n=======\n" if ( $verbose );
-    print "======= Cleaning in $printed_d...\n" if ( $verbose );
-    print "=======\n" if ( $verbose );
-    _kxLab::system( "make -C $d download_clean" );
-    unlink "$d/.makefile";
-    unlink <$d/.*_requires*>;
-  }
-}
-
-sub do_clean_list
-{
-  my $dir = shift;
-  my $cwd = `pwd`;
-
-  chomp $cwd;
-
-  # skip not our directories where we create patches
-  return if( $cwd =~ m/.*create\-.*\-patch.*/ );
-
-  return if( ! -f "$cwd/Makefile" );
-
-  # needs clean:
-  push @clean_dirs_all, $cwd;
-}
-
-sub process_clean
-{
-  return if( ! $File::Find::dir =~ m/$top_dir\/sources/ );
-
-  # add directory which contains 'Makefile' too.
-  if( $_ eq "Makefile" ) { do_clean_list( $File::Find::dir ); }
-
-  return if( ! -d $_ );
-
-  foreach my $d ( @targets )
-  {
-    if( $d eq $_ ) { do_clean_list( $File::Find::dir ); }
-  }
-}
-
-
-foreach ( @ARGV )
-{
-  push @targets, $_;
-}
-$top_dir = pop @targets;
-
-if( ! -d $top_dir )
-{
-  die "\nTop: $top_dir: is not a directory\n\n";
-}
-if( ! $top_dir =~ m/^\// )
-{
-  die "\nTop: $top_dir: is not absolute path\n\n";
-}
-
-find( \&process_clean, "$top_dir" );
-
-# get unique names:
-%seen = ();
-@clean_dirs = grep { ! $seen{ $_ }++ } @clean_dirs_all;
-@clean_dirs = reverse( keys %seen );
-
-$clean_count = @clean_dirs;
-
-if( $clean_count != 0 )
-{
-  if( !$header_printed )
-  {
-    print "\n======= Cleaning downloads tree =======\n\n" if ( $verbose );
-    $header_printed = 1;
-  }
-
-  do_clean();
-
-  print "\n";
-}
-else
-{
-  print "\nCleaning...   (nothing to be done).\n\n";
-}
-

Property changes on: toolshains-1.6.4/build-system/downloads_clean
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/3pp/gnattools/10.2.0/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/gnattools/10.2.0/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/gnattools/10.2.0/Makefile	(nonexistent)
@@ -1,90 +0,0 @@
-
-COMPONENT_TARGETS  = $(TOOLCHAIN_HOST)
-
-include ../../../../build-system/config.mk
-
-
-SOURCE_REQUIRES  = build-system/3pp/sources/GNU
-
-# ======= __END_OF_REQUIRES__ =======
-
-tar_xz_archive        = $(BUILDSYSTEM)/3pp/sources/GNU/gcc/gcc-10.2.0/gcc-10.2.0.tar.xz
-tar_xz_archive_gmp    = $(BUILDSYSTEM)/3pp/sources/GNU/gmp/gmp-6.2.1.tar.xz
-tar_xz_archive_mpfr   = $(BUILDSYSTEM)/3pp/sources/GNU/mpfr/mpfr-4.1.0.tar.xz
-tar_gz_archive_mpc    = $(BUILDSYSTEM)/3pp/sources/GNU/mpc/mpc-1.2.1.tar.gz
-SRC_ARCHIVE           = $(tar_xz_archive)
-SRC_DIR               = $(TARGET_BUILD_DIR)/gcc-10.2.0
-src_dir_name          = gcc-10.2.0
-src_done              = $(TARGET_BUILD_DIR)/.source-done
-gmp_src_done          = $(TARGET_BUILD_DIR)/.gmp-source-done
-mpfr_src_done         = $(TARGET_BUILD_DIR)/.mpfr-source-done
-mpc_src_done          = $(TARGET_BUILD_DIR)/.mpc-source-done
-
-PATCHES        = PATCHES
-
-build_dir             = $(TARGET_BUILD_DIR)/build
-
-
-build_target   = $(TARGET_BUILD_DIR)/.built
-install_target = $(TARGET_BUILD_DIR)/.installed
-
-
-BUILD_TARGETS  = $(build_target)
-BUILD_TARGETS += $(install_target)
-
-
-include ../../../../build-system/core.mk
-
-
-JOBS = -j$(NUMPROCS)
-
-environment  = CC="$(CCACHE)/usr/bin/gcc"
-environment += CC_FOR_BUILD="$(CCACHE)/usr/bin/gcc"
-environment += CXX_FOR_BUILD="$(CCACHE)/usr/bin/g++"
-
-
-GNATTOOLS_DEST_DIR = $(BUILDSYSTEM)/gnattools/10.2.0/usr
-
-extra_configure_switches  = --disable-bootstrap
-extra_configure_switches += --enable-languages=c,c++,ada
-
-
-$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
-	$(UNPACK_SRC_ARCHIVE)
-	$(APPLY_PATCHES)
-	@touch $@
-
-$(gmp_src_done): $(src_done)
-	@echo "Expanding $(tar_xz_archive_gmp)"
-	@tar xJf $(tar_xz_archive_gmp) -C $(TARGET_BUILD_DIR)
-	@cd $(SRC_DIR); ln -sf ../gmp-6.2.1 gmp
-	@touch $@
-
-$(mpfr_src_done): $(src_done)
-	@echo "Expanding $(tar_xz_archive_mpfr)"
-	@tar xJf $(tar_xz_archive_mpfr) -C $(TARGET_BUILD_DIR)
-	@cd $(SRC_DIR); ln -sf ../mpfr-4.1.0 mpfr
-	@touch $@
-
-$(mpc_src_done): $(src_done)
-	@echo "Expanding $(tar_gz_archive_mpc)"
-	@tar xzf $(tar_gz_archive_mpc) -C $(TARGET_BUILD_DIR)
-	@cd $(SRC_DIR); ln -sf ../mpc-1.2.1 mpc
-	@touch $@
-
-$(build_target): $(src_done) $(gmp_src_done) $(mpfr_src_done) $(mpc_src_done)
-	@mkdir -p $(build_dir)
-	@cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
-	  --prefix=$(GNATTOOLS_DEST_DIR)                  \
-	  --build=$(shell $(BUILDSYSTEM)/canonical-build) \
-	  --datadir=$(GNATTOOLS_DEST_DIR)/share           \
-	  --infodir=$(GNATTOOLS_DEST_DIR)/share/info      \
-	  --mandir=$(GNATTOOLS_DEST_DIR)/share/man        \
-	  $(extra_configure_switches)
-	@cd $(build_dir) && make $(JOBS)
-	@touch $@
-
-$(install_target): $(build_target)
-	@cd $(build_dir) && make install
-	@rm -f $(GNATTOOLS_DEST_DIR)/share/info/dir
-	@touch $@
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/file.list
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/file.list	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/file.list	(nonexistent)
@@ -1,4 +0,0 @@
-dialog-1.3-20190808/checklist.c
-dialog-1.3-20190808/dialog-config.in
-dialog-1.3-20190808/fselect.c
-dialog-1.3-20190808/menubox.c
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/menubox.c
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/menubox.c	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/menubox.c	(nonexistent)
@@ -1,802 +0,0 @@
-/*
- *  $Id: menubox.c,v 1.164 2019/08/08 21:00:23 tom Exp $
- *
- *  menubox.c -- implements the menu box
- *
- *  Copyright 2000-2018,2019	Thomas E. Dickey
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU Lesser General Public Licens, version 2.1e
- *  as published by the Free Software Foundation.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this program; if not, write to
- *	Free Software Foundation, Inc.
- *	51 Franklin St., Fifth Floor
- *	Boston, MA 02110, USA.
- *
- *  An earlier version of this program lists as authors
- *	Savio Lam (lam836@cs.cuhk.hk)
- */
-
-#include <dlg_internals.h>
-#include <dlg_keys.h>
-
-typedef enum {
-    Unselected = 0,
-    Selected,
-    Editing
-} Mode;
-
-typedef struct {
-    /* the outer-window */
-    WINDOW *dialog;
-    int box_y;
-    int box_x;
-    int tag_x;
-    int item_x;
-    int menu_height;
-    int menu_width;
-    /* the inner-window */
-    WINDOW *menu;
-    DIALOG_LISTITEM *items;
-    int item_no;
-} ALL_DATA;
-
-#define MIN_HIGH  4
-
-#define INPUT_ROWS     3	/* rows per inputmenu entry */
-
-#define RowHeight(i) (is_inputmenu ? ((i) * INPUT_ROWS) : ((i) * 1))
-#define ItemToRow(i) (is_inputmenu ? ((i) * INPUT_ROWS + 1) : (i))
-#define RowToItem(i) (is_inputmenu ? ((i) / INPUT_ROWS + 0) : (i))
-
-/*
- * Print menu item
- */
-static void
-print_item(ALL_DATA * data,
-	   WINDOW *win,
-	   DIALOG_LISTITEM * item,
-	   int choice,
-	   Mode selected,
-	   bool is_inputmenu)
-{
-    chtype save = dlg_get_attrs(win);
-    int climit = (data->item_x - data->tag_x - GUTTER);
-    int my_width = data->menu_width;
-    int my_x = data->item_x;
-    int my_y = ItemToRow(choice);
-    bool both = (!dialog_vars.no_tags && !dialog_vars.no_items);
-    bool first = TRUE;
-    chtype bordchar;
-    const char *show = (dialog_vars.no_items
-			? item->name
-			: item->text);
-
-    switch (selected) {
-    default:
-    case Unselected:
-	bordchar = item_attr;
-	break;
-    case Selected:
-	bordchar = item_selected_attr;
-	break;
-    case Editing:
-	bordchar = dialog_attr;
-	break;
-    }
-
-    /* Clear 'residue' of last item and mark current current item */
-    if (is_inputmenu) {
-	int n;
-
-	dlg_attrset(win, (selected != Unselected) ? item_selected_attr : item_attr);
-	for (n = my_y - 1; n < my_y + INPUT_ROWS - 1; n++) {
-	    wmove(win, n, 0);
-	    wprintw(win, "%*s", my_width, " ");
-	}
-    } else {
-	dlg_attrset(win, menubox_attr);
-	wmove(win, my_y, 0);
-	wprintw(win, "%*s", my_width, " ");
-    }
-
-    /* highlight first char of the tag to be special */
-    if (both) {
-	(void) wmove(win, my_y, data->tag_x);
-	dlg_print_listitem(win, item->name, climit, first, selected);
-	first = FALSE;
-    }
-
-    /* Draw the input field box (only for inputmenu) */
-    (void) wmove(win, my_y, my_x);
-    if (is_inputmenu) {
-	my_width -= 1;
-	dlg_draw_box(win, my_y - 1, my_x, INPUT_ROWS, my_width - my_x - data->tag_x,
-		     bordchar,
-		     bordchar);
-	my_width -= 1;
-	++my_x;
-    }
-
-    /* print actual item */
-    wmove(win, my_y, my_x);
-    dlg_print_listitem(win, show, my_width - my_x, first, selected);
-
-    if (selected) {
-	dlg_item_help(item->help);
-    }
-    dlg_attrset(win, save);
-}
-
-/*
- * Allow the user to edit the text of a menu entry.
- */
-static int
-input_menu_edit(ALL_DATA * data,
-		DIALOG_LISTITEM * items,
-		int choice,
-		char **resultp)
-{
-    chtype save = dlg_get_attrs(data->menu);
-    char *result;
-    int offset = 0;
-    int key = 0, fkey = 0;
-    bool first = TRUE;
-    /* see above */
-    bool is_inputmenu = TRUE;
-    int y = ItemToRow(choice);
-    int code = TRUE;
-    int max_len = dlg_max_input(MAX((int) strlen(items->text) + 1, MAX_LEN));
-
-    result = dlg_malloc(char, (size_t) max_len);
-    assert_ptr(result, "input_menu_edit");
-
-    /* original item is used to initialize the input string. */
-    result[0] = '\0';
-    strcpy(result, items->text);
-
-    print_item(data, data->menu, items, choice, Editing, TRUE);
-
-    /* taken out of inputbox.c - but somewhat modified */
-    for (;;) {
-	if (!first)
-	    key = dlg_mouse_wgetch(data->menu, &fkey);
-	if (dlg_edit_string(result, &offset, key, fkey, first)) {
-	    dlg_show_string(data->menu, result, offset, inputbox_attr,
-			    y,
-			    data->item_x + 1,
-			    data->menu_width - data->item_x - 3,
-			    FALSE, first);
-	    first = FALSE;
-	} else if (key == ESC || key == TAB) {
-	    code = FALSE;
-	    break;
-	} else {
-	    break;
-	}
-    }
-    print_item(data, data->menu, items, choice, Selected, TRUE);
-    dlg_attrset(data->menu, save);
-
-    *resultp = result;
-    return code;
-}
-
-static int
-handle_button(int code, DIALOG_LISTITEM * items, int choice)
-{
-    char *help_result;
-
-    switch (code) {
-    case DLG_EXIT_OK:		/* FALLTHRU */
-    case DLG_EXIT_EXTRA:
-	dlg_add_string(items[choice].name);
-	break;
-    case DLG_EXIT_HELP:
-	dlg_add_help_listitem(&code, &help_result, &items[choice]);
-	dlg_add_string(help_result);
-	break;
-    }
-    AddLastKey();
-    return code;
-}
-
-int
-dlg_renamed_menutext(DIALOG_LISTITEM * items, int current, char *newtext)
-{
-    if (dialog_vars.input_result)
-	dialog_vars.input_result[0] = '\0';
-    dlg_add_result("RENAMED ");
-    dlg_add_string(items[current].name);
-    dlg_add_result(" ");
-    dlg_add_string(newtext);
-    AddLastKey();
-    return DLG_EXIT_EXTRA;
-}
-
-int
-dlg_dummy_menutext(DIALOG_LISTITEM * items, int current, char *newtext)
-{
-    (void) items;
-    (void) current;
-    (void) newtext;
-    return DLG_EXIT_ERROR;
-}
-
-static void
-print_menu(ALL_DATA * data, int choice, int scrollamt, int max_choice, bool is_inputmenu)
-{
-    int i;
-
-    for (i = 0; i < max_choice; i++) {
-	print_item(data,
-		   data->menu,
-		   &data->items[i + scrollamt],
-		   i,
-		   (i == choice) ? Selected : Unselected,
-		   is_inputmenu);
-    }
-
-    /* Clean bottom lines */
-    if (is_inputmenu) {
-	int spare_lines, x_count;
-	spare_lines = data->menu_height % INPUT_ROWS;
-	dlg_attrset(data->menu, menubox_attr);
-	for (; spare_lines; spare_lines--) {
-	    wmove(data->menu, data->menu_height - spare_lines, 0);
-	    for (x_count = 0; x_count < data->menu_width;
-		 x_count++) {
-		waddch(data->menu, ' ');
-	    }
-	}
-    }
-
-    (void) wnoutrefresh(data->menu);
-
-    dlg_draw_scrollbar(data->dialog,
-		       scrollamt,
-		       scrollamt,
-		       scrollamt + max_choice,
-		       data->item_no,
-		       data->box_x,
-		       data->box_x + data->menu_width,
-		       data->box_y,
-		       data->box_y + data->menu_height + 1,
-		       menubox_border2_attr,
-		       menubox_border_attr);
-}
-
-static bool
-check_hotkey(DIALOG_LISTITEM * items, int choice)
-{
-    bool result = FALSE;
-
-    if (dlg_match_char(dlg_last_getc(),
-		       (dialog_vars.no_tags
-			? items[choice].text
-			: items[choice].name))) {
-	result = TRUE;
-    }
-    return result;
-}
-
-/*
- * This is an alternate interface to 'menu' which allows the application
- * to read the list item states back directly without putting them in the
- * output buffer.
- */
-int
-dlg_menu(const char *title,
-	 const char *cprompt,
-	 int height,
-	 int width,
-	 int menu_height,
-	 int item_no,
-	 DIALOG_LISTITEM * items,
-	 int *current_item,
-	 DIALOG_INPUTMENU rename_menutext)
-{
-    /* *INDENT-OFF* */
-    static DLG_KEYS_BINDING binding[] = {
-	HELPKEY_BINDINGS,
-	ENTERKEY_BINDINGS,
-	TOGGLEKEY_BINDINGS,
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT,	KEY_RIGHT ),
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT,	TAB ),
-	DLG_KEYS_DATA( DLGK_FIELD_PREV,	KEY_BTAB ),
-	DLG_KEYS_DATA( DLGK_FIELD_PREV,	KEY_LEFT ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,	'+' ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,	KEY_DOWN ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,  CHR_NEXT ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,	'-' ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,	KEY_UP ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,  CHR_PREVIOUS ),
-	DLG_KEYS_DATA( DLGK_PAGE_FIRST,	KEY_HOME ),
-	DLG_KEYS_DATA( DLGK_PAGE_LAST,	KEY_END ),
-	DLG_KEYS_DATA( DLGK_PAGE_LAST,	KEY_LL ),
-	DLG_KEYS_DATA( DLGK_PAGE_NEXT,	KEY_NPAGE ),
-	DLG_KEYS_DATA( DLGK_PAGE_PREV,	KEY_PPAGE ),
-	END_KEYS_BINDING
-    };
-    static DLG_KEYS_BINDING binding2[] = {
-	INPUTSTR_BINDINGS,
-	HELPKEY_BINDINGS,
-	ENTERKEY_BINDINGS,
-	END_KEYS_BINDING
-    };
-    /* *INDENT-ON* */
-
-#ifdef KEY_RESIZE
-    int old_LINES = LINES;
-    int old_COLS = COLS;
-    int old_height = height;
-    int old_width = width;
-#endif
-    ALL_DATA all;
-    int i, j, x, y, cur_x, cur_y;
-    int key = 0, fkey;
-    int button = dialog_state.visit_items ? -1 : dlg_default_button();
-    int choice = dlg_default_listitem(items);
-    int result = DLG_EXIT_UNKNOWN;
-    int scrollamt = 0;
-    int max_choice;
-    int found;
-    int use_width, name_width, text_width, list_width;
-    WINDOW *dialog, *menu;
-    char *prompt = 0;
-    const char **buttons = dlg_ok_labels();
-    bool is_inputmenu = ((rename_menutext != 0)
-			 && (rename_menutext != dlg_dummy_menutext));
-
-    DLG_TRACE(("# menubox args:\n"));
-    DLG_TRACE2S("title", title);
-    DLG_TRACE2S("message", cprompt);
-    DLG_TRACE2N("height", height);
-    DLG_TRACE2N("width", width);
-    DLG_TRACE2N("lheight", menu_height);
-    DLG_TRACE2N("llength", item_no);
-    /* FIXME dump the items[][] too */
-    DLG_TRACE2N("current", *current_item);
-    DLG_TRACE2N("rename", rename_menutext != 0);
-
-    dialog_state.plain_buttons = TRUE;
-
-    all.items = items;
-    all.item_no = item_no;
-
-    dlg_does_output();
-
-#ifdef KEY_RESIZE
-  retry:
-#endif
-
-    prompt = dlg_strclone(cprompt);
-    dlg_tab_correct_str(prompt);
-
-    all.menu_height = menu_height;
-    use_width = dlg_calc_list_width(item_no, items) + 10;
-    use_width = MAX(26, use_width);
-    if (all.menu_height == 0) {
-	/* calculate height without items (4) */
-	dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, use_width);
-	dlg_calc_listh(&height, &all.menu_height, item_no);
-    } else {
-	dlg_auto_size(title, prompt,
-		      &height, &width,
-		      MIN_HIGH + all.menu_height, use_width);
-    }
-    dlg_button_layout(buttons, &width);
-    dlg_print_size(height, width);
-    dlg_ctl_size(height, width);
-
-    x = dlg_box_x_ordinate(width);
-    y = dlg_box_y_ordinate(height);
-
-    dialog = dlg_new_window(height, width, y, x);
-    all.dialog = dialog;
-
-    dlg_register_window(dialog, "menubox", binding);
-    dlg_register_buttons(dialog, "menubox", buttons);
-
-    dlg_mouse_setbase(x, y);
-
-    dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
-    dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
-    dlg_draw_title(dialog, title);
-
-    dlg_attrset(dialog, dialog_attr);
-    dlg_print_autowrap(dialog, prompt, height, width);
-
-    all.menu_width = width - 6;
-    getyx(dialog, cur_y, cur_x);
-    all.box_y = cur_y + 1;
-    all.box_x = (width - all.menu_width) / 2 - 1;
-
-    /*
-     * After displaying the prompt, we know how much space we really have.
-     * Limit the list to avoid overwriting the ok-button.
-     */
-    if (all.menu_height + MIN_HIGH > height - cur_y)
-	all.menu_height = height - MIN_HIGH - cur_y;
-    if (all.menu_height <= 0)
-	all.menu_height = 1;
-
-    /* Find out maximal number of displayable items at once. */
-    max_choice = MIN(all.menu_height,
-		     RowHeight(item_no));
-    if (is_inputmenu)
-	max_choice /= INPUT_ROWS;
-
-    /* create new window for the menu */
-    menu = dlg_sub_window(dialog, all.menu_height, all.menu_width,
-			  y + all.box_y + 1,
-			  x + all.box_x + 1);
-    all.menu = menu;
-
-    dlg_register_window(menu, "menu", binding2);
-    dlg_register_buttons(menu, "menu", buttons);
-
-    /* draw a box around the menu items */
-    dlg_draw_box(dialog,
-		 all.box_y, all.box_x,
-		 all.menu_height + 2, all.menu_width + 2,
-		 menubox_border_attr, menubox_border2_attr);
-
-    name_width = 0;
-    text_width = 0;
-
-    /* Find length of longest item to center menu  *
-     * only if --menu was given, using --inputmenu *
-     * won't be centered.                         */
-    for (i = 0; i < item_no; i++) {
-	name_width = MAX(name_width, dlg_count_columns(items[i].name));
-	text_width = MAX(text_width, dlg_count_columns(items[i].text));
-    }
-
-    /* If the name+text is wider than the list is allowed, then truncate
-     * one or both of them.  If the name is no wider than 30% of the list,
-     * leave it intact.
-     *
-     * FIXME: the gutter width and name/list ratio should be configurable.
-     */
-    use_width = (all.menu_width - GUTTER);
-    if (dialog_vars.no_tags) {
-	list_width = MIN(use_width, text_width);
-    } else if (dialog_vars.no_items) {
-	list_width = MIN(use_width, name_width);
-    } else {
-	if (text_width >= 0
-	    && name_width >= 0
-	    && use_width > 0
-	    && text_width + name_width > use_width) {
-	    int need = (int) (0.30 * use_width);
-	    if (name_width > need) {
-		int want = (int) (use_width
-				  * ((double) name_width)
-				  / (text_width + name_width));
-		name_width = (want > need) ? want : need;
-	    }
-	    text_width = use_width - name_width;
-	}
-	list_width = (text_width + name_width);
-    }
-
-    all.tag_x = (is_inputmenu
-		 ? 0
-		 : (use_width - list_width) / 2);
-    all.item_x = ((dialog_vars.no_tags
-		   ? 0
-		   : (dialog_vars.no_items
-		      ? 0
-		      : (GUTTER + name_width)))
-		  + all.tag_x);
-
-    if (choice - scrollamt >= max_choice) {
-	scrollamt = choice - (max_choice - 1);
-	choice = max_choice - 1;
-    }
-
-    print_menu(&all, choice, scrollamt, max_choice, is_inputmenu);
-
-    /* register the new window, along with its borders */
-    dlg_mouse_mkbigregion(all.box_y + 1, all.box_x,
-			  all.menu_height + 2, all.menu_width + 2,
-			  KEY_MAX, 1, 1, 1 /* by lines */ );
-
-    dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
-
-    dlg_trace_win(dialog);
-    while (result == DLG_EXIT_UNKNOWN) {
-	if (button < 0)		/* --visit-items */
-	    wmove(dialog,
-		  all.box_y + ItemToRow(choice) + 1,
-		  all.box_x + all.tag_x + 1);
-
-	key = dlg_mouse_wgetch(dialog, &fkey);
-	if (dlg_result_key(key, fkey, &result)) {
-	    if (!dlg_button_key(result, &button, &key, &fkey))
-		break;
-	}
-
-	found = FALSE;
-	if (fkey) {
-	    /*
-	     * Allow a mouse-click on a box to switch selection to that box.
-	     * Handling a button click is a little more complicated, since we
-	     * push a KEY_ENTER back onto the input stream so we'll put the
-	     * cursor at the right place before handling the "keypress".
-	     */
-	    if (key >= DLGK_MOUSE(KEY_MAX)) {
-		key -= DLGK_MOUSE(KEY_MAX);
-		i = RowToItem(key);
-		if (i < max_choice) {
-		    found = TRUE;
-		} else {
-		    beep();
-		    continue;
-		}
-	    } else if (is_DLGK_MOUSE(key)
-		       && dlg_ok_buttoncode(key - M_EVENT) >= 0) {
-		button = (key - M_EVENT);
-		ungetch('\n');
-		continue;
-	    }
-	} else {
-	    /*
-	     * Check if key pressed matches first character of any item tag in
-	     * list.  If there is more than one match, we will cycle through
-	     * each one as the same key is pressed repeatedly.
-	     */
-	    if (button < 0 || !dialog_state.visit_items) {
-		for (j = scrollamt + choice + 1; j < item_no; j++) {
-		    if (check_hotkey(items, j)) {
-			found = TRUE;
-			i = j - scrollamt;
-			break;
-		    }
-		}
-		if (!found) {
-		    for (j = 0; j <= scrollamt + choice; j++) {
-			if (check_hotkey(items, j)) {
-			    found = TRUE;
-			    i = j - scrollamt;
-			    break;
-			}
-		    }
-		}
-		if (found)
-		    dlg_flush_getc();
-	    } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
-		button = j;
-		ungetch('\n');
-		continue;
-	    }
-
-	    /*
-	     * A single digit (1-9) positions the selection to that line in the
-	     * current screen.
-	     */
-	    if (!found
-		&& (key <= '9')
-		&& (key > '0')
-		&& (key - '1' < max_choice)) {
-		found = TRUE;
-		i = key - '1';
-	    }
-	}
-
-	if (!found && fkey) {
-	    found = TRUE;
-	    switch (key) {
-	    case DLGK_PAGE_FIRST:
-		i = -scrollamt;
-		break;
-	    case DLGK_PAGE_LAST:
-		i = item_no - 1 - scrollamt;
-		break;
-	    case DLGK_MOUSE(KEY_PPAGE):
-	    case DLGK_PAGE_PREV:
-		if (choice)
-		    i = 0;
-		else if (scrollamt != 0)
-		    i = -MIN(scrollamt, max_choice);
-		else
-		    continue;
-		break;
-	    case DLGK_MOUSE(KEY_NPAGE):
-	    case DLGK_PAGE_NEXT:
-		i = MIN(choice + max_choice, item_no - scrollamt - 1);
-		break;
-	    case DLGK_ITEM_PREV:
-		i = choice - 1;
-		if (choice == 0 && scrollamt == 0)
-		    continue;
-		break;
-	    case DLGK_ITEM_NEXT:
-		i = choice + 1;
-		if (scrollamt + choice >= item_no - 1)
-		    continue;
-		break;
-	    default:
-		found = FALSE;
-		break;
-	    }
-	}
-
-	if (found) {
-	    if (i != choice) {
-		getyx(dialog, cur_y, cur_x);
-		if (i < 0 || i >= max_choice) {
-		    if (i < 0) {
-			scrollamt += i;
-			choice = 0;
-		    } else {
-			choice = max_choice - 1;
-			scrollamt += (i - max_choice + 1);
-		    }
-		    print_menu(&all, choice, scrollamt, max_choice, is_inputmenu);
-		} else {
-		    choice = i;
-		    print_menu(&all, choice, scrollamt, max_choice, is_inputmenu);
-		    (void) wmove(dialog, cur_y, cur_x);
-		    wrefresh(dialog);
-		}
-	    }
-	    continue;		/* wait for another key press */
-	}
-
-	if (fkey) {
-	    switch (key) {
-	    case DLGK_FIELD_PREV:
-		button = dlg_prev_button(buttons, button);
-		dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
-				 FALSE, width);
-		break;
-	    case DLGK_FIELD_NEXT:
-		button = dlg_next_button(buttons, button);
-		dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
-				 FALSE, width);
-		break;
-	    case DLGK_TOGGLE:
-	    case DLGK_ENTER:
-		if (is_inputmenu)
-		    result = dlg_ok_buttoncode(button);
-		else
-		    result = dlg_enter_buttoncode(button);
-
-		/*
-		 * If dlg_menu() is called from dialog_menu(), we want to
-		 * capture the results into dialog_vars.input_result.
-		 */
-		if (result == DLG_EXIT_ERROR) {
-		    result = DLG_EXIT_UNKNOWN;
-		} else if (is_inputmenu
-			   || rename_menutext == dlg_dummy_menutext) {
-		    result = handle_button(result,
-					   items,
-					   scrollamt + choice);
-		}
-
-		/*
-		 * If we have a rename_menutext function, interpret the Extra
-		 * button as a request to rename the menu's text.  If that
-		 * function doesn't return "Unknown", we will exit from this
-		 * function.  Usually that is done for dialog_menu(), so the
-		 * shell script can use the updated value.  If it does return
-		 * "Unknown", update the list item only.  A direct caller of
-		 * dlg_menu() can free the renamed value - we cannot.
-		 */
-		if (is_inputmenu && result == DLG_EXIT_EXTRA) {
-		    char *tmp;
-
-		    if (input_menu_edit(&all,
-					&items[scrollamt + choice],
-					choice,
-					&tmp)) {
-			result = rename_menutext(items, scrollamt + choice, tmp);
-			if (result == DLG_EXIT_UNKNOWN) {
-			    items[scrollamt + choice].text = tmp;
-			} else {
-			    free(tmp);
-			}
-		    } else {
-			result = DLG_EXIT_UNKNOWN;
-			print_item(&all,
-				   menu,
-				   &items[scrollamt + choice],
-				   choice,
-				   Selected,
-				   is_inputmenu);
-			(void) wnoutrefresh(menu);
-			free(tmp);
-		    }
-
-		    if (result == DLG_EXIT_UNKNOWN) {
-			dlg_draw_buttons(dialog, height - 2, 0,
-					 buttons, button, FALSE, width);
-		    }
-		}
-		break;
-#ifdef KEY_RESIZE
-	    case KEY_RESIZE:
-		dlg_will_resize(dialog);
-		/* reset data */
-		resizeit(height, LINES);
-		resizeit(width, COLS);
-		free(prompt);
-		dlg_clear();
-		dlg_del_window(dialog);
-		dlg_mouse_free_regions();
-		/* repaint */
-		goto retry;
-#endif
-	    default:
-		flash();
-		break;
-	    }
-	}
-    }
-
-    dlg_mouse_free_regions();
-    dlg_unregister_window(menu);
-    dlg_del_window(dialog);
-    free(prompt);
-
-    *current_item = scrollamt + choice;
-    return result;
-}
-
-/*
- * Display a menu for choosing among a number of options
- */
-int
-dialog_menu(const char *title,
-	    const char *cprompt,
-	    int height,
-	    int width,
-	    int menu_height,
-	    int item_no,
-	    char **items)
-{
-    int result;
-    int choice;
-    int i, j;
-    DIALOG_LISTITEM *listitems;
-
-    listitems = dlg_calloc(DIALOG_LISTITEM, (size_t) item_no + 1);
-    assert_ptr(listitems, "dialog_menu");
-
-    for (i = j = 0; i < item_no; ++i) {
-	listitems[i].name = items[j++];
-	listitems[i].text = (dialog_vars.no_items
-			     ? dlg_strempty()
-			     : items[j++]);
-	listitems[i].help = ((dialog_vars.item_help)
-			     ? items[j++]
-			     : dlg_strempty());
-    }
-    dlg_align_columns(&listitems[0].text, sizeof(DIALOG_LISTITEM), item_no);
-
-    result = dlg_menu(title,
-		      cprompt,
-		      height,
-		      width,
-		      menu_height,
-		      item_no,
-		      listitems,
-		      &choice,
-		      (dialog_vars.input_menu
-		       ? dlg_renamed_menutext
-		       : dlg_dummy_menutext));
-
-    dlg_free_columns(&listitems[0].text, sizeof(DIALOG_LISTITEM), item_no);
-    free(listitems);
-    return result;
-}
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog-config.in
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog-config.in	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog-config.in	(nonexistent)
@@ -1,217 +0,0 @@
-#!@SHELL@
-# $Id: dialog-config.in,v 1.11 2019/08/02 00:20:15 tom Exp $
-##############################################################################
-# Copyright (c) 2007-2012,2019 Thomas E. Dickey                              #
-#                                                                            #
-# Permission is hereby granted, free of charge, to any person obtaining a    #
-# copy of this software and associated documentation files (the "Software"), #
-# to deal in the Software without restriction, including without limitation  #
-# the rights to use, copy, modify, merge, publish, distribute, distribute    #
-# with modifications, sublicense, and/or sell copies of the Software, and to #
-# permit persons to whom the Software is furnished to do so, subject to the  #
-# following conditions:                                                      #
-#                                                                            #
-# The above copyright notice and this permission notice shall be included in #
-# all copies or substantial portions of the Software.                        #
-#                                                                            #
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
-# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
-# DEALINGS IN THE SOFTWARE.                                                  #
-#                                                                            #
-# Except as contained in this notice, the name(s) of the above copyright     #
-# holders shall not be used in advertising or otherwise to promote the sale, #
-# use or other dealings in this Software without prior written               #
-# authorization.                                                             #
-##############################################################################
-
-prefix="@prefix@"
-exec_prefix="@exec_prefix@"
-datarootdir="@datarootdir@"
-
-same_prefix=yes
-same_exec_prefix=yes
-
-THIS="@PACKAGE@"
-
-test $# = 0 && exec @SHELL@ "$0" --error
-
-while test $# -gt 0; do
-
-	# (re)evaluate symbols that may depend upon $prefix
-	if [ "x$same_prefix" != "xyes" ]
-	then
-		eval exec_prefix='@exec_prefix@'
-		eval datarootdir='@datarootdir@'
-	elif [ "x$same_exec_prefix" != "xyes" ]
-	then
-		eval datarootdir='@datarootdir@'
-	fi
-
-	eval bindir='"@bindir@"'
-	eval includedir='"@includedir@"'
-	eval libdir='"@libdir@"'
-	eval datadir='"@datadir@"'
-	eval mandir='"@mandir@"'
-
-	[ -z "$includedir" ] && includedir="${prefix}/include" 
-
-	eval LDFLAGS='"@LDFLAGS@"'
-	[ -z "$LDFLAGS" ] && LDFLAGS="-L${libdir}"
-
-	eval LIBS='"@LIBS@"'
-	LIBS="-l${THIS} $LIBS"
-
-	case "$1" in
-	-*=*)
-		ARG=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
-		;;
-	*)
-		ARG=
-		;;
-	esac
-
-	case "$1" in
-	# basic configuration
-	--prefix=*)
-		prefix="$ARG"
-		test -z "$exec_prefix" && exec_prefix="$ARG"
-		same_prefix=no
-		;;
-	--prefix)
-		echo "$prefix"
-		;;
-	--exec-prefix=*)
-		exec_prefix="$ARG"
-		same_exec_prefix=no
-		;;
-	--exec-prefix)
-		echo "$exec_prefix"
-		;;
-	# compile/link
-	--cflags|--cflags-only-I)
-		INCS="-I$includedir"
-		sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
-			$INCS
-ENDECHO
-		;;
-	--cflags-only-other)
-		# no -D/-U options should be needed
-		echo
-		;;
-	--libs)
-		sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
-			$LIBS
-ENDECHO
-		;;
-	--ldflags)
-		OPTS=
-		for opt in $LDFLAGS $LIBS
-		do
-			case "x$opt" in
-			x-[^l]*)
-				OPTS="$OPTS $opt"
-				;;
-			esac
-		done
-		printf "%s\n" "$OPTS"
-		;;
-	--libs-only-L)
-		OPTS=
-		for opt in $LDFLAGS $LIBS
-		do
-			case "x$opt" in
-			x-L*)
-				OPTS="$OPTS $opt"
-				;;
-			esac
-		done
-		printf "%s\n" "$OPTS"
-		;;
-	--libs-only-l)
-		OPTS=
-		for opt in $LDFLAGS $LIBS
-		do
-			case "x$opt" in
-			x-l*)
-				OPTS="$OPTS $opt"
-				;;
-			esac
-		done
-		printf "%s\n" "$OPTS"
-		;;
-	--libs-only-other)
-		OPTS=
-		for opt in $LDFLAGS $LIBS
-		do
-			case "x$opt" in
-			x-[lL]*)
-				;;
-			*)
-				OPTS="$OPTS $opt"
-				;;
-			esac
-		done
-		printf "%s\n" "$OPTS"
-		;;
-	# identification
-	--version)
-		echo "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@"
-		;;
-	--abi-version)
-		echo "@VERSION@" | sed -e 's/:/./g'
-		;;
-	# locations
-	--bindir)
-		echo "${bindir}"
-		;;
-	--datadir)
-		echo "${datadir}"
-		;;
-	--libdir)
-		echo "${libdir}"
-		;;
-	--mandir)
-		echo "${mandir}"
-		;;
-	# general info
-	--help)
-		cat <<ENDHELP
-Usage: ${THIS}-config [options]
-
-Options:
-  --prefix           echos the package-prefix of ${THIS}
-  --prefix=ARG       sets the package-prefix of ${THIS}
-  --exec-prefix      echos the executable-prefix of ${THIS}
-  --exec-prefix=ARG  sets the executable-prefix of ${THIS}
-
-  --cflags           echos the C compiler flags needed to compile with ${THIS}
-  --libs             echos the libraries needed to link with ${THIS}
-
-  --ldflags          echos the linker flags needed to link with ${THIS}
-  --libs-only-L      echos -L linker options (search path) for ${THIS}
-  --libs-only-l      echos -l linker options (libraries) for ${THIS}
-  --libs-only-other  echos linker options other than -L/-l
-
-  --version          echos the release+patchdate version of ${THIS}
-  --abi-version      echos the ABI version of ${THIS}
-
-  --bindir           echos the directory containing ${THIS} programs
-  --datadir          echos the directory containing ${THIS} data
-  --libdir           echos the directory containing ${THIS} libraries
-  --mandir           echos the directory containing ${THIS} manual pages
-
-  --help             prints this message
-ENDHELP
-		;;
-	--error|*)
-		@SHELL@ "$0" --help 1>&2
-		exit 1
-		;;
-	esac
-	shift
-done
-# vile:shmode
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/checklist.c
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/checklist.c	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/checklist.c	(nonexistent)
@@ -1,700 +0,0 @@
-/*
- *  $Id: checklist.c,v 1.162 2019/08/05 09:14:59 tom Exp $
- *
- *  checklist.c -- implements the checklist box
- *
- *  Copyright 2000-2018,2019	Thomas E. Dickey
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU Lesser General Public License, version 2.1
- *  as published by the Free Software Foundation.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this program; if not, write to
- *	Free Software Foundation, Inc.
- *	51 Franklin St., Fifth Floor
- *	Boston, MA 02110, USA.
- *
- *  An earlier version of this program lists as authors:
- *	Savio Lam (lam836@cs.cuhk.hk)
- *	Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension
- *	Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two
- */
-
-#include <dialog.h>
-#include <dlg_keys.h>
-
-#define MIN_HIGH  4
-
-typedef struct {
-    /* the outer-window */
-    WINDOW *dialog;
-    int box_y;
-    int box_x;
-    int check_x;
-    int item_x;
-    int checkflag;
-    int use_height;
-    int use_width;
-    /* the inner-window */
-    WINDOW *list;
-    DIALOG_LISTITEM *items;
-    int item_no;
-    const char *states;
-} ALL_DATA;
-
-/*
- * Print list item.  The 'selected' parameter is true if 'choice' is the
- * current item.  That one is colored differently from the other items.
- */
-static void
-print_item(ALL_DATA * data,
-	   WINDOW *win,
-	   DIALOG_LISTITEM * item,
-	   const char *states,
-	   int choice,
-	   int selected)
-{
-    chtype save = dlg_get_attrs(win);
-    int i;
-    bool both = (!dialog_vars.no_tags && !dialog_vars.no_items);
-    bool first = TRUE;
-    int climit = (getmaxx(win) - data->check_x + 1);
-    const char *show = (dialog_vars.no_items
-			? item->name
-			: item->text);
-
-    /* Clear 'residue' of last item */
-    dlg_attrset(win, menubox_attr);
-    (void) wmove(win, choice, 0);
-    for (i = 0; i < data->use_width; i++)
-	(void) waddch(win, ' ');
-
-    (void) wmove(win, choice, data->check_x);
-    dlg_attrset(win, selected ? check_selected_attr : check_attr);
-    (void) wprintw(win,
-		   (data->checkflag == FLAG_CHECK) ? "[%c]" : "(%c)",
-		   states[item->state]);
-    dlg_attrset(win, menubox_attr);
-    (void) waddch(win, ' ');
-
-    if (both) {
-	dlg_print_listitem(win, item->name, climit, first, selected);
-	first = FALSE;
-    }
-
-    (void) wmove(win, choice, data->item_x);
-    dlg_print_listitem(win, show, climit, first, selected);
-
-    if (selected) {
-	dlg_item_help(item->help);
-    }
-    dlg_attrset(win, save);
-}
-
-static void
-print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice)
-{
-    int i;
-    int cur_y, cur_x;
-
-    getyx(data->dialog, cur_y, cur_x);
-    for (i = 0; i < max_choice; i++) {
-	print_item(data,
-		   data->list,
-		   &data->items[i + scrollamt],
-		   data->states,
-		   i, i == choice);
-    }
-    (void) wnoutrefresh(data->list);
-
-    dlg_draw_scrollbar(data->dialog,
-		       (long) (scrollamt),
-		       (long) (scrollamt),
-		       (long) (scrollamt + max_choice),
-		       (long) (data->item_no),
-		       data->box_x + data->check_x,
-		       data->box_x + data->use_width,
-		       data->box_y,
-		       data->box_y + data->use_height + 1,
-		       menubox_border2_attr,
-		       menubox_border_attr);
-
-    (void) wmove(data->dialog, cur_y, cur_x);
-}
-
-static bool
-check_hotkey(DIALOG_LISTITEM * items, int choice)
-{
-    bool result = FALSE;
-
-    if (dlg_match_char(dlg_last_getc(),
-		       (dialog_vars.no_tags
-			? items[choice].text
-			: items[choice].name))) {
-	result = TRUE;
-    }
-    return result;
-}
-
-/*
- * This is an alternate interface to 'checklist' which allows the application
- * to read the list item states back directly without putting them in the
- * output buffer.  It also provides for more than two states over which the
- * check/radio box can display.
- */
-int
-dlg_checklist(const char *title,
-	      const char *cprompt,
-	      int height,
-	      int width,
-	      int list_height,
-	      int item_no,
-	      DIALOG_LISTITEM * items,
-	      const char *states,
-	      int flag,
-	      int *current_item)
-{
-    /* *INDENT-OFF* */
-    static DLG_KEYS_BINDING binding[] = {
-	HELPKEY_BINDINGS,
-	ENTERKEY_BINDINGS,
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT, KEY_RIGHT ),
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT, TAB ),
-	DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ),
-	DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_LEFT ),
-	DLG_KEYS_DATA( DLGK_ITEM_FIRST, KEY_HOME ),
-	DLG_KEYS_DATA( DLGK_ITEM_LAST,	KEY_END ),
-	DLG_KEYS_DATA( DLGK_ITEM_LAST,	KEY_LL ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,	'+' ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,	KEY_DOWN ),
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,  CHR_NEXT ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,	'-' ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,	KEY_UP ),
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,  CHR_PREVIOUS ),
-	DLG_KEYS_DATA( DLGK_PAGE_NEXT,	KEY_NPAGE ),
-	DLG_KEYS_DATA( DLGK_PAGE_NEXT,	DLGK_MOUSE(KEY_NPAGE) ),
-	DLG_KEYS_DATA( DLGK_PAGE_PREV,	KEY_PPAGE ),
-	DLG_KEYS_DATA( DLGK_PAGE_PREV,	DLGK_MOUSE(KEY_PPAGE) ),
-	TOGGLEKEY_BINDINGS,
-	END_KEYS_BINDING
-    };
-    /* *INDENT-ON* */
-
-#ifdef KEY_RESIZE
-    int old_height = height;
-    int old_width = width;
-#endif
-    ALL_DATA all;
-    int i, j, key2, found, x, y, cur_x, cur_y;
-    int key = 0, fkey;
-    int button = dialog_state.visit_items ? -1 : dlg_default_button();
-    int choice = dlg_default_listitem(items);
-    int scrollamt = 0;
-    int max_choice;
-    int was_mouse;
-    int use_width, list_width, name_width, text_width;
-    int result = DLG_EXIT_UNKNOWN;
-    int num_states;
-    WINDOW *dialog;
-    char *prompt;
-    const char **buttons = dlg_ok_labels();
-    const char *widget_name;
-
-    DLG_TRACE(("# %s args:\n", flag ? "checklist" : "radiolist"));
-    DLG_TRACE2S("title", title);
-    DLG_TRACE2S("message", cprompt);
-    DLG_TRACE2N("height", height);
-    DLG_TRACE2N("width", width);
-    DLG_TRACE2N("lheight", list_height);
-    DLG_TRACE2N("llength", item_no);
-    /* FIXME dump the items[][] too */
-    DLG_TRACE2S("states", states);
-    DLG_TRACE2N("flag", flag);
-    DLG_TRACE2N("current", *current_item);
-
-    dialog_state.plain_buttons = TRUE;
-
-    memset(&all, 0, sizeof(all));
-    all.items = items;
-    all.item_no = item_no;
-
-    dlg_does_output();
-
-    /*
-     * If this is a radiobutton list, ensure that no more than one item is
-     * selected initially.  Allow none to be selected, since some users may
-     * wish to provide this flavor.
-     */
-    if (flag == FLAG_RADIO) {
-	bool first = TRUE;
-
-	for (i = 0; i < item_no; i++) {
-	    if (items[i].state) {
-		if (first) {
-		    first = FALSE;
-		} else {
-		    items[i].state = 0;
-		}
-	    }
-	}
-	widget_name = "radiolist";
-    } else {
-	widget_name = "checklist";
-    }
-#ifdef KEY_RESIZE
-  retry:
-#endif
-
-    prompt = dlg_strclone(cprompt);
-    dlg_tab_correct_str(prompt);
-
-    all.use_height = list_height;
-    use_width = dlg_calc_list_width(item_no, items) + 10;
-    use_width = MAX(26, use_width);
-    if (all.use_height == 0) {
-	/* calculate height without items (4) */
-	dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, use_width);
-	dlg_calc_listh(&height, &all.use_height, item_no);
-    } else {
-	dlg_auto_size(title, prompt,
-		      &height, &width,
-		      MIN_HIGH + all.use_height, use_width);
-    }
-    dlg_button_layout(buttons, &width);
-    dlg_print_size(height, width);
-    dlg_ctl_size(height, width);
-
-    /* we need at least two states */
-    if (states == 0 || strlen(states) < 2)
-	states = " *";
-    num_states = (int) strlen(states);
-    all.states = states;
-
-    all.checkflag = flag;
-
-    x = dlg_box_x_ordinate(width);
-    y = dlg_box_y_ordinate(height);
-
-    dialog = dlg_new_window(height, width, y, x);
-    all.dialog = dialog;
-    dlg_register_window(dialog, widget_name, binding);
-    dlg_register_buttons(dialog, widget_name, buttons);
-
-    dlg_mouse_setbase(x, y);
-
-    dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
-    dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
-    dlg_draw_title(dialog, title);
-
-    dlg_attrset(dialog, dialog_attr);
-    dlg_print_autowrap(dialog, prompt, height, width);
-
-    all.use_width = width - 6;
-    getyx(dialog, cur_y, cur_x);
-    all.box_y = cur_y + 1;
-    all.box_x = (width - all.use_width) / 2 - 1;
-
-    /*
-     * After displaying the prompt, we know how much space we really have.
-     * Limit the list to avoid overwriting the ok-button.
-     */
-    if (all.use_height + MIN_HIGH > height - cur_y)
-	all.use_height = height - MIN_HIGH - cur_y;
-    if (all.use_height <= 0)
-	all.use_height = 1;
-
-    max_choice = MIN(all.use_height, item_no);
-    max_choice = MAX(max_choice, 1);
-
-    /* create new window for the list */
-    all.list = dlg_sub_window(dialog, all.use_height, all.use_width,
-			      y + all.box_y + 1, x + all.box_x + 1);
-
-    /* draw a box around the list items */
-    dlg_draw_box(dialog, all.box_y, all.box_x,
-		 all.use_height + 2 * MARGIN,
-		 all.use_width + 2 * MARGIN,
-		 menubox_border_attr, menubox_border2_attr);
-
-    text_width = 0;
-    name_width = 0;
-    /* Find length of longest item to center checklist */
-    for (i = 0; i < item_no; i++) {
-	text_width = MAX(text_width, dlg_count_columns(items[i].text));
-	name_width = MAX(name_width, dlg_count_columns(items[i].name));
-    }
-
-    /* If the name+text is wider than the list is allowed, then truncate
-     * one or both of them.  If the name is no wider than 1/4 of the list,
-     * leave it intact.
-     */
-    use_width = (all.use_width - 6);
-    if (dialog_vars.no_tags) {
-	list_width = MIN(all.use_width, text_width);
-    } else if (dialog_vars.no_items) {
-	list_width = MIN(all.use_width, name_width);
-    } else {
-	if (text_width >= 0
-	    && name_width >= 0
-	    && use_width > 0
-	    && text_width + name_width > use_width) {
-	    int need = (int) (0.25 * use_width);
-	    if (name_width > need) {
-		int want = (int) (use_width * ((double) name_width) /
-				  (text_width + name_width));
-		name_width = (want > need) ? want : need;
-	    }
-	    text_width = use_width - name_width;
-	}
-	list_width = (text_width + name_width);
-    }
-
-    all.check_x = (use_width - list_width) / 2;
-    all.item_x = ((dialog_vars.no_tags
-		   ? 0
-		   : (dialog_vars.no_items
-		      ? 0
-		      : (2 + name_width)))
-		  + all.check_x + 4);
-
-    /* ensure we are scrolled to show the current choice */
-    scrollamt = MIN(scrollamt, max_choice + item_no - 1);
-    if (choice >= (max_choice + scrollamt - 1)) {
-	scrollamt = MAX(0, choice - max_choice + 1);
-	choice = max_choice - 1;
-    }
-    print_list(&all, choice, scrollamt, max_choice);
-
-    /* register the new window, along with its borders */
-    dlg_mouse_mkbigregion(all.box_y + 1, all.box_x,
-			  all.use_height, all.use_width + 2,
-			  KEY_MAX, 1, 1, 1 /* by lines */ );
-
-    dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
-
-    dlg_trace_win(dialog);
-    while (result == DLG_EXIT_UNKNOWN) {
-	if (button < 0)		/* --visit-items */
-	    wmove(dialog, all.box_y + choice + 1, all.box_x + all.check_x + 2);
-
-	key = dlg_mouse_wgetch(dialog, &fkey);
-	if (dlg_result_key(key, fkey, &result)) {
-	    if (!dlg_button_key(result, &button, &key, &fkey))
-		break;
-	}
-
-	was_mouse = (fkey && is_DLGK_MOUSE(key));
-	if (was_mouse)
-	    key -= M_EVENT;
-
-	if (was_mouse && (key >= KEY_MAX)) {
-	    getyx(dialog, cur_y, cur_x);
-	    i = (key - KEY_MAX);
-	    if (i < max_choice) {
-		choice = (key - KEY_MAX);
-		print_list(&all, choice, scrollamt, max_choice);
-
-		key = DLGK_TOGGLE;	/* force the selected item to toggle */
-	    } else {
-		beep();
-		continue;
-	    }
-	    fkey = FALSE;
-	} else if (was_mouse && key >= KEY_MIN) {
-	    key = dlg_lookup_key(dialog, key, &fkey);
-	}
-
-	/*
-	 * A space toggles the item status.  We handle either a checklist
-	 * (any number of items can be selected) or radio list (zero or one
-	 * items can be selected).
-	 */
-	if (key == DLGK_TOGGLE) {
-	    int current = scrollamt + choice;
-	    int next = items[current].state + 1;
-
-	    if (next >= num_states)
-		next = 0;
-
-	    if (flag == FLAG_CHECK) {	/* checklist? */
-		getyx(dialog, cur_y, cur_x);
-		items[current].state = next;
-		print_item(&all, all.list,
-			   &items[scrollamt + choice],
-			   states,
-			   choice, TRUE);
-		(void) wnoutrefresh(all.list);
-		(void) wmove(dialog, cur_y, cur_x);
-	    } else {		/* radiolist */
-		for (i = 0; i < item_no; i++) {
-		    if (i != current) {
-			items[i].state = 0;
-		    }
-		}
-		if (items[current].state) {
-		    getyx(dialog, cur_y, cur_x);
-		    items[current].state = next ? next : 1;
-		    print_item(&all, all.list,
-			       &items[current],
-			       states,
-			       choice, TRUE);
-		    (void) wnoutrefresh(all.list);
-		    (void) wmove(dialog, cur_y, cur_x);
-		} else {
-		    items[current].state = 1;
-		    print_list(&all, choice, scrollamt, max_choice);
-		}
-	    }
-	    continue;		/* wait for another key press */
-	}
-
-	/*
-	 * Check if key pressed matches first character of any item tag in
-	 * list.  If there is more than one match, we will cycle through
-	 * each one as the same key is pressed repeatedly.
-	 */
-	found = FALSE;
-	if (!fkey) {
-	    if (button < 0 || !dialog_state.visit_items) {
-		for (j = scrollamt + choice + 1; j < item_no; j++) {
-		    if (check_hotkey(items, j)) {
-			found = TRUE;
-			i = j - scrollamt;
-			break;
-		    }
-		}
-		if (!found) {
-		    for (j = 0; j <= scrollamt + choice; j++) {
-			if (check_hotkey(items, j)) {
-			    found = TRUE;
-			    i = j - scrollamt;
-			    break;
-			}
-		    }
-		}
-		if (found)
-		    dlg_flush_getc();
-	    } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
-		button = j;
-		ungetch('\n');
-		continue;
-	    }
-	}
-
-	/*
-	 * A single digit (1-9) positions the selection to that line in the
-	 * current screen.
-	 */
-	if (!found
-	    && (key <= '9')
-	    && (key > '0')
-	    && (key - '1' < max_choice)) {
-	    found = TRUE;
-	    i = key - '1';
-	}
-
-	if (!found) {
-	    if (fkey) {
-		found = TRUE;
-		switch (key) {
-		case DLGK_ITEM_FIRST:
-		    i = -scrollamt;
-		    break;
-		case DLGK_ITEM_LAST:
-		    i = item_no - 1 - scrollamt;
-		    break;
-		case DLGK_PAGE_PREV:
-		    if (choice)
-			i = 0;
-		    else if (scrollamt != 0)
-			i = -MIN(scrollamt, max_choice);
-		    else
-			continue;
-		    break;
-		case DLGK_PAGE_NEXT:
-		    i = MIN(choice + max_choice, item_no - scrollamt - 1);
-		    break;
-		case DLGK_ITEM_PREV:
-		    i = choice - 1;
-		    if (choice == 0 && scrollamt == 0)
-			continue;
-		    break;
-		case DLGK_ITEM_NEXT:
-		    i = choice + 1;
-		    if (scrollamt + choice >= item_no - 1)
-			continue;
-		    break;
-		default:
-		    found = FALSE;
-		    break;
-		}
-	    }
-	}
-
-	if (found) {
-	    if (i != choice) {
-		getyx(dialog, cur_y, cur_x);
-		if (i < 0 || i >= max_choice) {
-		    if (i < 0) {
-			scrollamt += i;
-			choice = 0;
-		    } else {
-			choice = max_choice - 1;
-			scrollamt += (i - max_choice + 1);
-		    }
-		    print_list(&all, choice, scrollamt, max_choice);
-		} else {
-		    choice = i;
-		    print_list(&all, choice, scrollamt, max_choice);
-		}
-	    }
-	    continue;		/* wait for another key press */
-	}
-
-	if (fkey) {
-	    switch (key) {
-	    case DLGK_ENTER:
-		result = dlg_enter_buttoncode(button);
-		break;
-	    case DLGK_FIELD_PREV:
-		button = dlg_prev_button(buttons, button);
-		dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
-				 FALSE, width);
-		break;
-	    case DLGK_FIELD_NEXT:
-		button = dlg_next_button(buttons, button);
-		dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
-				 FALSE, width);
-		break;
-#ifdef KEY_RESIZE
-	    case KEY_RESIZE:
-		dlg_will_resize(dialog);
-		/* reset data */
-		height = old_height;
-		width = old_width;
-		free(prompt);
-		dlg_clear();
-		dlg_del_window(dialog);
-		dlg_mouse_free_regions();
-		/* repaint */
-		goto retry;
-#endif
-	    default:
-		if (was_mouse) {
-		    if ((key2 = dlg_ok_buttoncode(key)) >= 0) {
-			result = key2;
-			break;
-		    }
-		    beep();
-		}
-	    }
-	} else if (key > 0) {
-	    beep();
-	}
-    }
-
-    dlg_del_window(dialog);
-    dlg_mouse_free_regions();
-    free(prompt);
-    *current_item = (scrollamt + choice);
-    return result;
-}
-
-/*
- * Display a dialog box with a list of options that can be turned on or off
- * The `flag' parameter is used to select between radiolist and checklist.
- */
-int
-dialog_checklist(const char *title,
-		 const char *cprompt,
-		 int height,
-		 int width,
-		 int list_height,
-		 int item_no,
-		 char **items,
-		 int flag)
-{
-    int result;
-    int i, j;
-    DIALOG_LISTITEM *listitems;
-    bool separate_output = ((flag == FLAG_CHECK)
-			    && (dialog_vars.separate_output));
-    bool show_status = FALSE;
-    int current = 0;
-    char *help_result;
-
-    listitems = dlg_calloc(DIALOG_LISTITEM, (size_t) item_no + 1);
-    assert_ptr(listitems, "dialog_checklist");
-
-    for (i = j = 0; i < item_no; ++i) {
-	listitems[i].name = items[j++];
-	listitems[i].text = (dialog_vars.no_items
-			     ? dlg_strempty()
-			     : items[j++]);
-	listitems[i].state = !dlg_strcmp(items[j++], "on");
-	listitems[i].help = ((dialog_vars.item_help)
-			     ? items[j++]
-			     : dlg_strempty());
-    }
-    dlg_align_columns(&listitems[0].text, (int) sizeof(DIALOG_LISTITEM), item_no);
-
-    result = dlg_checklist(title,
-			   cprompt,
-			   height,
-			   width,
-			   list_height,
-			   item_no,
-			   listitems,
-			   NULL,
-			   flag,
-			   &current);
-
-    switch (result) {
-    case DLG_EXIT_OK:		/* FALLTHRU */
-    case DLG_EXIT_EXTRA:
-	show_status = TRUE;
-	break;
-    case DLG_EXIT_HELP:
-	dlg_add_help_listitem(&result, &help_result, &listitems[current]);
-	if ((show_status = dialog_vars.help_status)) {
-	    if (separate_output) {
-		dlg_add_string(help_result);
-		dlg_add_separator();
-	    } else {
-		dlg_add_quoted(help_result);
-	    }
-	} else {
-	    dlg_add_string(help_result);
-	}
-	break;
-    }
-
-    if (show_status) {
-	for (i = 0; i < item_no; i++) {
-	    if (listitems[i].state) {
-		if (separate_output) {
-		    dlg_add_string(listitems[i].name);
-		    dlg_add_separator();
-		} else {
-		    if (dlg_need_separator())
-			dlg_add_separator();
-		    if (flag == FLAG_CHECK)
-			dlg_add_quoted(listitems[i].name);
-		    else
-			dlg_add_string(listitems[i].name);
-		}
-	    }
-	}
-	dlg_add_last_key(separate_output);
-    }
-
-    dlg_free_columns(&listitems[0].text, (int) sizeof(DIALOG_LISTITEM), item_no);
-    free(listitems);
-    return result;
-}
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/fselect.c
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/fselect.c	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/fselect.c	(nonexistent)
@@ -1,952 +0,0 @@
-/*
- *  $Id: fselect.c,v 1.106 2019/08/08 21:28:56 tom Exp $
- *
- *  fselect.c -- implements the file-selector box
- *
- *  Copyright 2000-2018,2019	Thomas E. Dickey
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU Lesser General Public License, version 2.1
- *  as published by the Free Software Foundation.
- *
- *  This program is distributed in the hope that it will be useful, but
- *  WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- *  Lesser General Public License for more details.
- *
- *  You should have received a copy of the GNU Lesser General Public
- *  License along with this program; if not, write to
- *	Free Software Foundation, Inc.
- *	51 Franklin St., Fifth Floor
- *	Boston, MA 02110, USA.
- */
-
-#include <dlg_internals.h>
-#include <dlg_keys.h>
-
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#if HAVE_DIRENT_H
-# include <dirent.h>
-# define NAMLEN(dirent) strlen((dirent)->d_name)
-#else
-# define dirent direct
-# define NAMLEN(dirent) (dirent)->d_namlen
-# if HAVE_SYS_NDIR_H
-#  include <sys/ndir.h>
-# endif
-# if HAVE_SYS_DIR_H
-#  include <sys/dir.h>
-# endif
-# if HAVE_NDIR_H
-#  include <ndir.h>
-# endif
-#endif
-
-# if defined(_FILE_OFFSET_BITS) && defined(HAVE_STRUCT_DIRENT64)
-#  if !defined(_LP64) && (_FILE_OFFSET_BITS == 64)
-#   define      DIRENT  struct dirent64
-#  else
-#   define      DIRENT  struct dirent
-#  endif
-# else
-#  define       DIRENT  struct dirent
-# endif
-
-#define EXT_WIDE 1
-#define HDR_HIGH 1
-#define BTN_HIGH (1 + 2 * MARGIN)	/* Ok/Cancel, also input-box */
-#define MIN_HIGH (HDR_HIGH - MARGIN + (BTN_HIGH * 2) + 4 * MARGIN)
-#define MIN_WIDE (2 * MAX(dlg_count_columns(d_label), dlg_count_columns(f_label)) + 6 * MARGIN + 2 * EXT_WIDE)
-
-#define MOUSE_D (KEY_MAX + 0)
-#define MOUSE_F (KEY_MAX + 10000)
-#define MOUSE_T (KEY_MAX + 20000)
-
-typedef enum {
-    sDIRS = -3
-    ,sFILES = -2
-    ,sTEXT = -1
-} STATES;
-
-typedef struct {
-    WINDOW *par;		/* parent window */
-    WINDOW *win;		/* this window */
-    int length;			/* length of the data[] array */
-    int offset;			/* index of first item on screen */
-    int choice;			/* index of the selection */
-    int mousex;			/* base of mouse-code return-values */
-    unsigned allocd;
-    char **data;
-} LIST;
-
-typedef struct {
-    int length;
-    char **data;
-} MATCH;
-
-static void
-init_list(LIST * list, WINDOW *par, WINDOW *win, int mousex)
-{
-    list->par = par;
-    list->win = win;
-    list->length = 0;
-    list->offset = 0;
-    list->choice = 0;
-    list->mousex = mousex;
-    list->allocd = 0;
-    list->data = 0;
-    dlg_mouse_mkbigregion(getbegy(win), getbegx(win),
-			  getmaxy(win), getmaxx(win),
-			  mousex, 1, 1, 1 /* by lines */ );
-}
-
-static char *
-leaf_of(char *path)
-{
-    char *leaf = strrchr(path, '/');
-    if (leaf != 0)
-	leaf++;
-    else
-	leaf = path;
-    return leaf;
-}
-
-static char *
-data_of(LIST * list)
-{
-    if (list != 0
-	&& list->data != 0)
-	return list->data[list->choice];
-    return 0;
-}
-
-static void
-free_list(LIST * list, int reinit)
-{
-    if (list->data != 0) {
-	int n;
-
-	for (n = 0; list->data[n] != 0; n++)
-	    free(list->data[n]);
-	free(list->data);
-	list->data = 0;
-    }
-    if (reinit)
-	init_list(list, list->par, list->win, list->mousex);
-}
-
-static void
-add_to_list(LIST * list, char *text)
-{
-    unsigned need;
-
-    need = (unsigned) (list->length + 1);
-    if (need + 1 > list->allocd) {
-	list->allocd = 2 * (need + 1);
-	if (list->data == 0) {
-	    list->data = dlg_malloc(char *, list->allocd);
-	} else {
-	    list->data = dlg_realloc(char *, list->allocd, list->data);
-	}
-	assert_ptr(list->data, "add_to_list");
-    }
-    list->data[list->length++] = dlg_strclone(text);
-    list->data[list->length] = 0;
-}
-
-static void
-keep_visible(LIST * list)
-{
-    int high = getmaxy(list->win);
-
-    if (list->choice < list->offset) {
-	list->offset = list->choice;
-    }
-    if (list->choice - list->offset >= high)
-	list->offset = list->choice - high + 1;
-}
-
-#define Value(c) (int)((c) & 0xff)
-
-static int
-find_choice(char *target, LIST * list)
-{
-    int choice = list->choice;
-
-    if (*target == 0) {
-	list->choice = 0;
-    } else {
-	int n;
-	int len_1, cmp_1;
-
-	/* find the match with the longest length.  If more than one has the
-	 * same length, choose the one with the closest match of the final
-	 * character.
-	 */
-	len_1 = 0;
-	cmp_1 = 256;
-	for (n = 0; n < list->length; n++) {
-	    char *a = target;
-	    char *b = list->data[n];
-	    int len_2, cmp_2;
-
-	    len_2 = 0;
-	    while ((*a != 0) && (*b != 0) && (*a == *b)) {
-		a++;
-		b++;
-		len_2++;
-	    }
-	    cmp_2 = Value(*a) - Value(*b);
-	    if (cmp_2 < 0)
-		cmp_2 = -cmp_2;
-	    if ((len_2 > len_1)
-		|| (len_1 == len_2 && cmp_2 < cmp_1)) {
-		len_1 = len_2;
-		cmp_1 = cmp_2;
-		list->choice = n;
-	    }
-	}
-    }
-    if (choice != list->choice) {
-	keep_visible(list);
-    }
-    return (choice != list->choice);
-}
-
-static void
-display_list(LIST * list)
-{
-    if (list->win != 0) {
-	int n;
-	int x;
-	int y;
-	int top;
-	int bottom;
-
-	dlg_attr_clear(list->win, getmaxy(list->win), getmaxx(list->win), item_attr);
-	for (n = list->offset; n < list->length && list->data[n]; n++) {
-	    y = n - list->offset;
-	    if (y >= getmaxy(list->win))
-		break;
-	    (void) wmove(list->win, y, 0);
-	    if (n == list->choice)
-		dlg_attrset(list->win, item_selected_attr);
-	    (void) waddstr(list->win, list->data[n]);
-	    dlg_attrset(list->win, item_attr);
-	}
-	dlg_attrset(list->win, item_attr);
-
-	getparyx(list->win, y, x);
-
-	top = y - 1;
-	bottom = y + getmaxy(list->win);
-	dlg_draw_scrollbar(list->par,
-			   (long) list->offset,
-			   (long) list->offset,
-			   (long) (list->offset + getmaxy(list->win)),
-			   (long) (list->length),
-			   x + 1,
-			   x + getmaxx(list->win),
-			   top,
-			   bottom,
-			   menubox_border2_attr,
-			   menubox_border_attr);
-
-	(void) wmove(list->win, list->choice - list->offset, 0);
-	(void) wnoutrefresh(list->win);
-    }
-}
-
-/* FIXME: see arrows.c
- * This workaround is used to allow two lists to have scroll-tabs at the same
- * time, by reassigning their return-values to be different.  Just for
- * readability, we use the names of keys with similar connotations, though all
- * that is really required is that they're distinct, so we can put them in a
- * switch statement.
- */
-#if USE_MOUSE
-static void
-fix_arrows(LIST * list)
-{
-    if (list->win != 0) {
-	int x;
-	int y;
-	int top;
-	int right;
-	int bottom;
-
-	getparyx(list->win, y, x);
-	top = y - 1;
-	right = getmaxx(list->win);
-	bottom = y + getmaxy(list->win);
-
-	mouse_mkbutton(top, x, right,
-		       ((list->mousex == MOUSE_D)
-			? KEY_PREVIOUS
-			: KEY_PPAGE));
-	mouse_mkbutton(bottom, x, right,
-		       ((list->mousex == MOUSE_D)
-			? KEY_NEXT
-			: KEY_NPAGE));
-    }
-}
-#else
-#define fix_arrows(list)	/* nothing */
-#endif
-
-static bool
-show_list(char *target, LIST * list, bool keep)
-{
-    bool changed = keep || find_choice(target, list);
-    display_list(list);
-    return changed;
-}
-
-/*
- * Highlight the closest match to 'target' in the given list, setting offset
- * to match.
- */
-static bool
-show_both_lists(char *input, LIST * d_list, LIST * f_list, bool keep)
-{
-    char *leaf = leaf_of(input);
-
-    return show_list(leaf, d_list, keep) || show_list(leaf, f_list, keep);
-}
-
-/*
- * Move up/down in the given list
- */
-static bool
-change_list(int choice, LIST * list)
-{
-    if (data_of(list) != 0) {
-	int last = list->length - 1;
-
-	choice += list->choice;
-	if (choice < 0)
-	    choice = 0;
-	if (choice > last)
-	    choice = last;
-	list->choice = choice;
-	keep_visible(list);
-	display_list(list);
-	return TRUE;
-    }
-    return FALSE;
-}
-
-static void
-scroll_list(int direction, LIST * list)
-{
-    if (data_of(list) != 0) {
-	int length = getmaxy(list->win);
-	if (change_list(direction * length, list))
-	    return;
-    }
-    beep();
-}
-
-static int
-compar(const void *a, const void *b)
-{
-    return strcmp(*(const char *const *) a, *(const char *const *) b);
-}
-
-static void
-match(char *name, LIST * d_list, LIST * f_list, MATCH * match_list)
-{
-    char *test = leaf_of(name);
-    size_t test_len = strlen(test);
-    char **matches = dlg_malloc(char *, (size_t) (d_list->length + f_list->length));
-    size_t data_len = 0;
-    int i;
-    for (i = 2; i < d_list->length; i++) {
-	if (strncmp(test, d_list->data[i], test_len) == 0) {
-	    matches[data_len++] = d_list->data[i];
-	}
-    }
-    for (i = 0; i < f_list->length; i++) {
-	if (strncmp(test, f_list->data[i], test_len) == 0) {
-	    matches[data_len++] = f_list->data[i];
-	}
-    }
-    matches = dlg_realloc(char *, data_len + 1, matches);
-    match_list->data = matches;
-    match_list->length = (int) data_len;
-}
-
-static void
-free_match(MATCH * match_list)
-{
-    free(match_list->data);
-    match_list->length = 0;
-}
-
-static int
-complete(char *name, LIST * d_list, LIST * f_list, char **buff_ptr)
-{
-    MATCH match_list;
-    char *test;
-    size_t test_len;
-    size_t i;
-    char *buff;
-
-    match(name, d_list, f_list, &match_list);
-    if (match_list.length == 0) {
-	*buff_ptr = NULL;
-	return 0;
-    }
-
-    test = match_list.data[0];
-    test_len = strlen(test);
-    buff = dlg_malloc(char, test_len + 2);
-    if (match_list.length == 1) {
-	strcpy(buff, test);
-	i = test_len;
-	if (test == data_of(d_list)) {
-	    buff[test_len] = '/';
-	    i++;
-	}
-    } else {
-	int j;
-
-	for (i = 0; i < test_len; i++) {
-	    char test_char = test[i];
-	    if (test_char == '\0')
-		break;
-	    for (j = 0; j < match_list.length; j++) {
-		if (match_list.data[j][i] != test_char) {
-		    break;
-		}
-	    }
-	    if (j == match_list.length) {
-		(buff)[i] = test_char;
-	    } else
-		break;
-	}
-	buff = dlg_realloc(char, i + 1, buff);
-    }
-    free_match(&match_list);
-    buff[i] = '\0';
-    *buff_ptr = buff;
-    return (i != 0);
-}
-
-static bool
-fill_lists(char *current, char *input, LIST * d_list, LIST * f_list, bool keep)
-{
-    bool result = TRUE;
-    bool rescan = FALSE;
-    struct stat sb;
-    int n;
-    char path[MAX_LEN + 1];
-
-    /* check if we've updated the lists */
-    for (n = 0; current[n] && input[n]; n++) {
-	if (current[n] != input[n])
-	    break;
-    }
-
-    if (current[n] == input[n]) {
-	result = FALSE;
-	rescan = (n == 0 && d_list->length == 0);
-    } else if (strchr(current + n, '/') == 0
-	       && strchr(input + n, '/') == 0) {
-	result = show_both_lists(input, d_list, f_list, keep);
-    } else {
-	rescan = TRUE;
-    }
-
-    if (rescan) {
-	DIR *dp;
-	size_t have = strlen(input);
-	char *leaf;
-
-	if (have > MAX_LEN)
-	    have = MAX_LEN;
-	memcpy(current, input, have);
-	current[have] = '\0';
-
-	/* refill the lists */
-	free_list(d_list, TRUE);
-	free_list(f_list, TRUE);
-	memcpy(path, current, have);
-	path[have] = '\0';
-	if ((leaf = strrchr(path, '/')) != 0) {
-	    *++leaf = 0;
-	} else {
-	    strcpy(path, "./");
-	    leaf = path + strlen(path);
-	}
-	DLG_TRACE(("opendir '%s'\n", path));
-	if ((dp = opendir(path)) != 0) {
-	    DIRENT *de;
-
-	    while ((de = readdir(dp)) != 0) {
-		size_t len = NAMLEN(de);
-		if (len == 0 || (len + have + 2) >= MAX_LEN)
-		    continue;
-		memcpy(leaf, de->d_name, len);
-		leaf[len] = '\0';
-		if (stat(path, &sb) == 0) {
-		    if ((sb.st_mode & S_IFMT) == S_IFDIR)
-			add_to_list(d_list, leaf);
-		    else if (f_list->win)
-			add_to_list(f_list, leaf);
-		}
-	    }
-	    (void) closedir(dp);
-	    /* sort the lists */
-	    if (d_list->data != 0 && d_list->length > 1) {
-		qsort(d_list->data,
-		      (size_t) d_list->length,
-		      sizeof(d_list->data[0]),
-		      compar);
-	    }
-	    if (f_list->data != 0 && f_list->length > 1) {
-		qsort(f_list->data,
-		      (size_t) f_list->length,
-		      sizeof(f_list->data[0]),
-		      compar);
-	    }
-	}
-
-	(void) show_both_lists(input, d_list, f_list, FALSE);
-	d_list->offset = d_list->choice;
-	f_list->offset = f_list->choice;
-	result = TRUE;
-    }
-    return result;
-}
-
-static bool
-usable_state(int state, LIST * dirs, LIST * files)
-{
-    bool result;
-
-    switch (state) {
-    case sDIRS:
-	result = (dirs->win != 0) && (data_of(dirs) != 0);
-	break;
-    case sFILES:
-	result = (files->win != 0) && (data_of(files) != 0);
-	break;
-    default:
-	result = TRUE;
-	break;
-    }
-    return result;
-}
-
-#define which_list() ((state == sFILES) \
-			? &f_list \
-			: ((state == sDIRS) \
-			  ? &d_list \
-			  : 0))
-#define NAVIGATE_BINDINGS \
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT, KEY_RIGHT ), \
-	DLG_KEYS_DATA( DLGK_FIELD_NEXT, TAB ), \
-	DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ), \
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_DOWN ), \
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,  CHR_NEXT ), \
-	DLG_KEYS_DATA( DLGK_ITEM_NEXT,  KEY_NEXT ), \
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,  CHR_PREVIOUS ), \
-	DLG_KEYS_DATA( DLGK_ITEM_PREV,  KEY_UP ), \
-	DLG_KEYS_DATA( DLGK_PAGE_NEXT,  KEY_NPAGE ), \
-	DLG_KEYS_DATA( DLGK_PAGE_PREV,  KEY_PPAGE )
-
-/*
- * Display a dialog box for entering a filename
- */
-static int
-dlg_fselect(const char *title, const char *path, int height, int width, int dselect)
-{
-    /* *INDENT-OFF* */
-    static DLG_KEYS_BINDING binding[] = {
-	HELPKEY_BINDINGS,
-	ENTERKEY_BINDINGS,
-	NAVIGATE_BINDINGS,
-	TOGGLEKEY_BINDINGS,
-	END_KEYS_BINDING
-    };
-    static DLG_KEYS_BINDING binding2[] = {
-	INPUTSTR_BINDINGS,
-	HELPKEY_BINDINGS,
-	ENTERKEY_BINDINGS,
-	NAVIGATE_BINDINGS,
-	TOGGLEKEY_BINDINGS,
-	END_KEYS_BINDING
-    };
-    /* *INDENT-ON* */
-
-#ifdef KEY_RESIZE
-    int old_height = height;
-    int old_width = width;
-    bool resized = FALSE;
-#endif
-    int tbox_y, tbox_x, tbox_width, tbox_height;
-    int dbox_y, dbox_x, dbox_width, dbox_height;
-    int fbox_y, fbox_x, fbox_width, fbox_height;
-    int show_buttons = TRUE;
-    int offset = 0;
-    int key = 0;
-    int fkey = FALSE;
-    int code;
-    int result = DLG_EXIT_UNKNOWN;
-    int state = dialog_vars.default_button >= 0 ? dlg_default_button() : sTEXT;
-    int button;
-    bool first = (state == sTEXT);
-    bool first_trace = TRUE;
-    char *input;
-    char *completed;
-    char current[MAX_LEN + 1];
-    WINDOW *dialog = 0;
-    WINDOW *w_text = 0;
-    WINDOW *w_work = 0;
-    const char **buttons = dlg_ok_labels();
-    const char *d_label = _("Directories");
-    const char *f_label = _("Files");
-    char *partial = 0;
-    int min_wide = MIN_WIDE;
-    int min_items = height ? 0 : 4;
-    LIST d_list, f_list;
-
-    DLG_TRACE(("# %s args:\n", dselect ? "dselect" : "fselect"));
-    DLG_TRACE2S("title", title);
-    DLG_TRACE2S("path", path);
-    DLG_TRACE2N("height", height);
-    DLG_TRACE2N("width", width);
-
-    dlg_does_output();
-
-    /* Set up the initial value */
-    input = dlg_set_result(path);
-    offset = (int) strlen(input);
-    *current = 0;
-
-    dlg_button_layout(buttons, &min_wide);
-
-#ifdef KEY_RESIZE
-  retry:
-#endif
-    dlg_auto_size(title, (char *) 0, &height, &width, 6, 25);
-    height += MIN_HIGH + min_items;
-    if (width < min_wide)
-	width = min_wide;
-    dlg_print_size(height, width);
-    dlg_ctl_size(height, width);
-
-    dialog = dlg_new_window(height + 1, width,
-			    dlg_box_y_ordinate(height),
-			    dlg_box_x_ordinate(width));
-    dlg_register_window(dialog, "fselect", binding);
-    dlg_register_buttons(dialog, "fselect", buttons);
-
-    dlg_mouse_setbase(0, 0);
-
-    dlg_draw_box2(dialog, 0, 0, height + 1, width, dialog_attr, border_attr, border2_attr);
-    dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
-    dlg_draw_title(dialog, title);
-
-    dlg_attrset(dialog, dialog_attr);
-
-    /* Draw the input field box */
-    tbox_height = 1;
-    tbox_width = width - (4 * MARGIN + 2);
-    tbox_y = height - (BTN_HIGH * 2) + MARGIN + 1;
-    tbox_x = (width - tbox_width) / 2;
-
-    w_text = derwin(dialog, tbox_height, tbox_width, tbox_y, tbox_x);
-    if (w_text == 0) {
-	result = DLG_EXIT_ERROR;
-	goto finish;
-    }
-
-    (void) keypad(w_text, TRUE);
-    dlg_draw_box(dialog, tbox_y - MARGIN, tbox_x - MARGIN,
-		 (2 * MARGIN + 1), tbox_width + (MARGIN + EXT_WIDE),
-		 menubox_border_attr, menubox_border2_attr);
-    dlg_mouse_mkbigregion(getbegy(dialog) + tbox_y - MARGIN,
-			  getbegx(dialog) + tbox_x - MARGIN,
-			  1 + (2 * MARGIN),
-			  tbox_width + (MARGIN + EXT_WIDE),
-			  MOUSE_T, 1, 1, 3 /* doesn't matter */ );
-
-    dlg_register_window(w_text, "fselect2", binding2);
-
-    /* Draw the directory listing box */
-    if (dselect)
-	dbox_width = (width - (6 * MARGIN));
-    else
-	dbox_width = (width - (6 * MARGIN + 2 * EXT_WIDE)) / 2;
-    dbox_height = height - MIN_HIGH;
-    dbox_y = (2 * MARGIN + 2);
-    dbox_x = tbox_x;
-
-    w_work = derwin(dialog, dbox_height, dbox_width, dbox_y, dbox_x);
-    if (w_work == 0) {
-	result = DLG_EXIT_ERROR;
-	goto finish;
-    }
-
-    (void) keypad(w_work, TRUE);
-    (void) mvwaddstr(dialog, dbox_y - (MARGIN + 1), dbox_x - MARGIN, d_label);
-    dlg_draw_box(dialog,
-		 dbox_y - MARGIN, dbox_x - MARGIN,
-		 dbox_height + (MARGIN + 1), dbox_width + (MARGIN + 1),
-		 menubox_border_attr, menubox_border2_attr);
-    init_list(&d_list, dialog, w_work, MOUSE_D);
-
-    if (!dselect) {
-	/* Draw the filename listing box */
-	fbox_height = dbox_height;
-	fbox_width = dbox_width;
-	fbox_y = dbox_y;
-	fbox_x = tbox_x + dbox_width + (2 * MARGIN);
-
-	w_work = derwin(dialog, fbox_height, fbox_width, fbox_y, fbox_x);
-	if (w_work == 0) {
-	    result = DLG_EXIT_ERROR;
-	    goto finish;
-	}
-
-	(void) keypad(w_work, TRUE);
-	(void) mvwaddstr(dialog, fbox_y - (MARGIN + 1), fbox_x - MARGIN, f_label);
-	dlg_draw_box(dialog,
-		     fbox_y - MARGIN, fbox_x - MARGIN,
-		     fbox_height + (MARGIN + 1), fbox_width + (MARGIN + 1),
-		     menubox_border_attr, menubox_border2_attr);
-	init_list(&f_list, dialog, w_work, MOUSE_F);
-    } else {
-	memset(&f_list, 0, sizeof(f_list));
-    }
-
-    while (result == DLG_EXIT_UNKNOWN) {
-
-	if (fill_lists(current, input, &d_list, &f_list, state < sTEXT))
-	    show_buttons = TRUE;
-
-#ifdef KEY_RESIZE
-	if (resized) {
-	    resized = FALSE;
-	    dlg_show_string(w_text, input, offset, inputbox_attr,
-			    0, 0, tbox_width, FALSE, first);
-	}
-#endif
-
-	/*
-	 * The last field drawn determines where the cursor is shown:
-	 */
-	if (show_buttons) {
-	    show_buttons = FALSE;
-	    button = (state < 0) ? 0 : state;
-	    dlg_draw_buttons(dialog, height - 1, 0, buttons, button, FALSE, width);
-	}
-
-	if (first_trace) {
-	    first_trace = FALSE;
-	    dlg_trace_win(dialog);
-	}
-
-	if (state < 0) {
-	    switch (state) {
-	    case sTEXT:
-		dlg_set_focus(dialog, w_text);
-		break;
-	    case sFILES:
-		dlg_set_focus(dialog, f_list.win);
-		break;
-	    case sDIRS:
-		dlg_set_focus(dialog, d_list.win);
-		break;
-	    }
-	}
-
-	if (first) {
-	    (void) wrefresh(dialog);
-	} else {
-	    fix_arrows(&d_list);
-	    fix_arrows(&f_list);
-	    key = dlg_mouse_wgetch((state == sTEXT) ? w_text : dialog, &fkey);
-	    if (dlg_result_key(key, fkey, &result)) {
-		if (!dlg_button_key(result, &button, &key, &fkey))
-		    break;
-	    }
-	}
-
-	if (key == DLGK_TOGGLE) {
-	    key = DLGK_SELECT;
-	    fkey = TRUE;
-	}
-
-	if (fkey) {
-	    switch (key) {
-	    case DLGK_MOUSE(KEY_PREVIOUS):
-		state = sDIRS;
-		scroll_list(-1, which_list());
-		continue;
-	    case DLGK_MOUSE(KEY_NEXT):
-		state = sDIRS;
-		scroll_list(1, which_list());
-		continue;
-	    case DLGK_MOUSE(KEY_PPAGE):
-		state = sFILES;
-		scroll_list(-1, which_list());
-		continue;
-	    case DLGK_MOUSE(KEY_NPAGE):
-		state = sFILES;
-		scroll_list(1, which_list());
-		continue;
-	    case DLGK_PAGE_PREV:
-		scroll_list(-1, which_list());
-		continue;
-	    case DLGK_PAGE_NEXT:
-		scroll_list(1, which_list());
-		continue;
-	    case DLGK_ITEM_PREV:
-		if (change_list(-1, which_list()))
-		    continue;
-		/* FALLTHRU */
-	    case DLGK_FIELD_PREV:
-		show_buttons = TRUE;
-		do {
-		    state = dlg_prev_ok_buttonindex(state, sDIRS);
-		} while (!usable_state(state, &d_list, &f_list));
-		continue;
-	    case DLGK_ITEM_NEXT:
-		if (change_list(1, which_list()))
-		    continue;
-		/* FALLTHRU */
-	    case DLGK_FIELD_NEXT:
-		show_buttons = TRUE;
-		do {
-		    state = dlg_next_ok_buttonindex(state, sDIRS);
-		} while (!usable_state(state, &d_list, &f_list));
-		continue;
-	    case DLGK_SELECT:
-		completed = 0;
-		if (partial != 0) {
-		    free(partial);
-		    partial = 0;
-		}
-		if (state == sFILES && !dselect) {
-		    completed = data_of(&f_list);
-		} else if (state == sDIRS) {
-		    completed = data_of(&d_list);
-		} else {
-		    if (complete(input, &d_list, &f_list, &partial)) {
-			completed = partial;
-		    }
-		}
-		if (completed != 0) {
-		    state = sTEXT;
-		    show_buttons = TRUE;
-		    strcpy(leaf_of(input), completed);
-		    offset = (int) strlen(input);
-		    dlg_show_string(w_text, input, offset, inputbox_attr,
-				    0, 0, tbox_width, 0, first);
-		    if (partial != NULL) {
-			free(partial);
-			partial = 0;
-		    }
-		    continue;
-		} else {	/* if (state < sTEXT) */
-		    (void) beep();
-		    continue;
-		}
-		/* FALLTHRU */
-	    case DLGK_ENTER:
-		result = (state > 0) ? dlg_enter_buttoncode(state) : DLG_EXIT_OK;
-		continue;
-#ifdef KEY_RESIZE
-	    case KEY_RESIZE:
-		dlg_will_resize(dialog);
-		/* reset data */
-		height = old_height;
-		width = old_width;
-		show_buttons = TRUE;
-		*current = 0;
-		resized = TRUE;
-		/* repaint */
-		dlg_clear();
-		dlg_del_window(dialog);
-		refresh();
-		dlg_mouse_free_regions();
-		goto retry;
-#endif
-	    default:
-		if (key >= DLGK_MOUSE(MOUSE_T)) {
-		    state = sTEXT;
-		    continue;
-		} else if (key >= DLGK_MOUSE(MOUSE_F)) {
-		    if (f_list.win != 0) {
-			state = sFILES;
-			f_list.choice = (key - DLGK_MOUSE(MOUSE_F)) + f_list.offset;
-			display_list(&f_list);
-		    }
-		    continue;
-		} else if (key >= DLGK_MOUSE(MOUSE_D)) {
-		    if (d_list.win != 0) {
-			state = sDIRS;
-			d_list.choice = (key - DLGK_MOUSE(MOUSE_D)) + d_list.offset;
-			display_list(&d_list);
-		    }
-		    continue;
-		} else if (is_DLGK_MOUSE(key)
-			   && (code = dlg_ok_buttoncode(key - M_EVENT)) >= 0) {
-		    result = code;
-		    continue;
-		}
-		break;
-	    }
-	}
-
-	if (state < 0) {	/* Input box selected if we're editing */
-	    int edit = dlg_edit_string(input, &offset, key, fkey, first);
-
-	    if (edit) {
-		dlg_show_string(w_text, input, offset, inputbox_attr,
-				0, 0, tbox_width, 0, first);
-		first = FALSE;
-		state = sTEXT;
-	    }
-	} else if (state >= 0 &&
-		   (code = dlg_char_to_button(key, buttons)) >= 0) {
-	    result = dlg_ok_buttoncode(code);
-	    break;
-	}
-    }
-    AddLastKey();
-
-    dlg_unregister_window(w_text);
-    dlg_del_window(dialog);
-    dlg_mouse_free_regions();
-    free_list(&d_list, FALSE);
-    free_list(&f_list, FALSE);
-
-  finish:
-    if (partial != 0)
-	free(partial);
-    return result;
-}
-
-/*
- * Display a dialog box for entering a filename
- */
-int
-dialog_fselect(const char *title, const char *path, int height, int width)
-{
-    return dlg_fselect(title, path, height, width, FALSE);
-}
-
-/*
- * Display a dialog box for entering a directory
- */
-int
-dialog_dselect(const char *title, const char *path, int height, int width)
-{
-    return dlg_fselect(title, path, height, width, TRUE);
-}
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog.m4
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog.m4	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/dialog-1.3-20190808-new/dialog.m4	(nonexistent)
@@ -1,333 +0,0 @@
-dnl #
-dnl # /usr/share/aclocal/dialog.m4
-dnl #
-dnl # Configure paths for dialog
-dnl # Andrew V.Kosteltsev
-
-dnl ============================================================
-dnl
-dnl  Synopsis:
-dnl     AC_CHECK_DIALOG([MIN-VERSION [,                  # minimum dialog version, e.g. 1.3-20190211
-dnl                           DEFAULT-WITH-DIALOG [,     # default value for --with-dialog option
-dnl                           DEFAULT-WITH-DIALOG-TEST [,# default value for --with-dialog-test option
-dnl                           EXTEND-VARS [,                  # whether CFLAGS/LDFLAGS/etc are extended
-dnl                           ACTION-IF-FOUND [,              # action to perform if dialog was found
-dnl                           ACTION-IF-NOT-FOUND             # action to perform if dialog was not found
-dnl                          ]]]]]])
-dnl  Examples:
-dnl     AC_CHECK_DIALOG(1.3-20190211)
-dnl     AC_CHECK_DIALOG(1.3-20190211,,,no,CFLAGS="$CFLAGS -DHAVE_DIALOG $DIALOG_CFLAGS")
-dnl     AC_CHECK_DIALOG(1.3-20190211,yes,yes,yes,CFLAGS="$CFLAGS -DHAVE_DIALOG")
-dnl
-dnl
-dnl  If you have to change prefix returned by dialog-config script or change
-dnl  location of dialog-config, you may set environment variable DIALOG_CONFIG,
-dnl  for example:
-dnl
-dnl  # export DIALOG_CONFIG="dialog-config --prefix=/usr/local"
-dnl  # export DIALOG_CONFIG="/usr/bin/dialog-config --prefix=/usr/local"
-dnl
-dnl ============================================================
-dnl
-dnl ============================================================
-dnl  auxilliary macros
-dnl ============================================================
-AC_DEFUN([_AC_DIALOG_ERROR], [dnl
-AC_MSG_RESULT([*FAILED*])
-cat <<EOT | sed -e 's/^[[ 	]]*/ | /' -e 's/>>/  /' 1>&2
-$1
-EOT
-exit 1
-])
-
-AC_DEFUN([_AC_DIALOG_VERBOSE], [dnl
-if test ".$verbose" = .yes; then
-    AC_MSG_RESULT([  $1])
-fi
-])
-
-dnl ============================================================
-dnl  the user macro
-dnl ============================================================
-AC_DEFUN([AC_CHECK_DIALOG], [dnl
-dnl
-dnl ============================================================
-dnl  prerequisites
-dnl ============================================================
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_CPP])dnl
-dnl
-dnl ============================================================
-dnl  set DIALOG_CONFIG variable
-dnl ============================================================
-if test -z "$DIALOG_CONFIG"; then
-  DIALOG_CONFIG='dialog-config'
-fi
-dnl
-DIALOG_CFLAGS=''
-DIALOG_LDFLAGS=''
-DIALOG_LIBS=''
-AC_SUBST(DIALOG_CFLAGS)
-AC_SUBST(DIALOG_LDFLAGS)
-AC_SUBST(DIALOG_LIBS)
-dnl
-dnl ============================================================
-dnl  command line options
-dnl ============================================================
-_AC_DIALOG_VERBOSE([])
-AC_ARG_WITH(dialog,dnl
-[  --with-dialog[=ARG]       Build with dialog Library  (default=]ifelse([$2],,yes,$2)[)],dnl
-,dnl
-with_dialog="ifelse([$2],,yes,$2)"
-)dnl
-AC_ARG_WITH(dialog-test,dnl
-[  --with-dialog-test      Perform dialog Sanity Test (default=]ifelse([$3],,yes,$3)[)],dnl
-,dnl
-with_dialog_test="ifelse([$3],,yes,$3)"
-)dnl
-_AC_DIALOG_VERBOSE([+ Command Line Options:])
-_AC_DIALOG_VERBOSE([    o --with-dialog=$with_dialog])
-_AC_DIALOG_VERBOSE([    o --with-dialog-test=$with_dialog_test])
-dnl
-dnl ============================================================
-dnl  configuration
-dnl ============================================================
-if test ".$with_dialog" != .no; then
-    dialog_subdir=no
-    dialog_subdir_opts=''
-    case "$with_dialog" in
-        subdir:* )
-            dialog_subdir=yes
-            changequote(, )dnl
-            dialog_subdir_opts=`echo $with_dialog | sed -e 's/^subdir:[^ 	]*[ 	]*//'`
-            with_dialog=`echo $with_dialog | sed -e 's/^subdir:\([^ 	]*\).*$/\1/'`
-            changequote([, ])dnl
-            ;;
-    esac
-    dialog_version=""
-    dialog_location=""
-    dialog_type=""
-    dialog_cflags=""
-    dialog_ldflags=""
-    dialog_libs=""
-    if test ".$with_dialog" = .yes; then
-        #   via config script in $PATH
-        changequote(, )dnl
-        dialog_version=`($DIALOG_CONFIG --version) 2>/dev/null |\
-                      sed -e 's/^.*\([0-9]\.[0-9]*[-][0-9]*\).*$/\1/'`
-        changequote([, ])dnl
-        if test ".$dialog_version" != .; then
-            dialog_location=`$DIALOG_CONFIG --prefix`
-            dialog_type='installed'
-            dialog_cflags=`$DIALOG_CONFIG --cflags`
-            dialog_ldflags=`$DIALOG_CONFIG --ldflags`
-            dialog_libs=`$DIALOG_CONFIG --libs`
-        fi
-    elif test -d "$with_dialog"; then
-        with_dialog=`echo $with_dialog | sed -e 's;/*$;;'`
-        dialog_found=no
-        #   via config script under a specified directory
-        #   (a standard installation, but not a source tree)
-        if test ".$dialog_found" = .no; then
-            for _dir in $with_dialog/bin $with_dialog; do
-                if test -f "$_dir/dialog-config"; then
-                    test -f "$_dir/dialog-config.in" && continue # dialog-config in source tree!
-                    changequote(, )dnl
-                    dialog_version=`($_dir/dialog-config --version) 2>/dev/null |\
-                                  sed -e 's/^.*\([0-9]\.[0-9]*[.][0-9]*\).*$/\1/'`
-                    changequote([, ])dnl
-                    if test ".$dialog_version" != .; then
-                        dialog_location=`$_dir/dialog-config --prefix`
-                        dialog_type="installed"
-                        dialog_cflags=`$_dir/dialog-config --cflags`
-                        dialog_ldflags=`$_dir/dialog-config --ldflags`
-                        dialog_libs=`$_dir/dialog-config --libs`
-                        dialog_found=yes
-                        break
-                    fi
-                fi
-            done
-        fi
-    fi
-    _AC_DIALOG_VERBOSE([+ Determined Location:])
-    _AC_DIALOG_VERBOSE([    o path: $dialog_location])
-    _AC_DIALOG_VERBOSE([    o type: $dialog_type])
-    if test ".$dialog_version" = .; then
-        if test ".$with_dialog" != .yes; then
-             _AC_DIALOG_ERROR([dnl
-             Unable to locate dialog under $with_dialog.
-             Please specify the correct path to either a dialog installation tree
-             (use --with-dialog=DIR if you used --prefix=DIR for installing dialog in
-             the past).])
-        else
-             _AC_DIALOG_ERROR([dnl
-             Unable to locate dialog in any system-wide location (see \$PATH).
-             Please specify the correct path to either a dialog installation tree
-             (use --with-dialog=DIR if you used --prefix=DIR for installing dialog in
-             the past, or set the DIALOG_CONFIG environment variable to the full path
-             to dialog-config).])
-        fi
-    fi
-    dnl ========================================================
-    dnl  Check whether the found version is sufficiently new
-    dnl ========================================================
-    _req_version="ifelse([$1],,1.0.0,$1)"
-    for _var in dialog_version _req_version; do
-        eval "_val=\"\$${_var}\""
-        _major=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[.]]\)\([[0-9]]*\)/\1/'`
-        _minor=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[.]]\)\([[0-9]]*\)/\2/'`
-        _micro=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[.]]\)\([[0-9]]*\)/\4/'`
-        _hex=`echo dummy | awk '{ printf("%d%02d%02d", major, minor, micro); }' \
-              "major=$_major" "minor=$_minor" "micro=$_micro"`
-        eval "${_var}_hex=\"\$_hex\""
-    done
-    _AC_DIALOG_VERBOSE([+ Determined Versions:])
-    _AC_DIALOG_VERBOSE([    o existing: $dialog_version -> 0x$dialog_version_hex])
-    _AC_DIALOG_VERBOSE([    o required: $_req_version -> 0x$_req_version_hex])
-    _ok=0
-    if test ".$dialog_version_hex" != .; then
-        if test ".$_req_version_hex" != .; then
-            if test $dialog_version_hex -ge $_req_version_hex; then
-                _ok=1
-            fi
-        fi
-    fi
-    if test ".$_ok" = .0; then
-        _AC_DIALOG_ERROR([dnl
-        Found dialog version $dialog_version, but required at least version $_req_version.
-        Upgrade dialog under $dialog_location to $_req_version or higher first, please.])
-    fi
-    dnl ========================================================
-    dnl  Perform dialog Sanity Compile Check
-    dnl ========================================================
-    if test ".$with_dialog_test" = .yes; then
-        _ac_save_CFLAGS="$CFLAGS"
-        _ac_save_LDFLAGS="$LDFLAGS"
-        _ac_save_LIBS="$LIBS"
-        CFLAGS="$CFLAGS $dialog_cflags"
-        LDFLAGS="$LDFLAGS $dialog_ldflags"
-        LIBS="$LIBS $dialog_libs"
-        _AC_DIALOG_VERBOSE([+ Test Build Environment:])
-        _AC_DIALOG_VERBOSE([    o CFLAGS=\"$CFLAGS\"])
-        _AC_DIALOG_VERBOSE([    o LDFLAGS=\"$LDFLAGS\"])
-        _AC_DIALOG_VERBOSE([    o LIBS=\"$LIBS\"])
-        cross_compile=no
-        define(_code1, [dnl
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <strings.h>  /* index(3)    */
-
-#include <dialog.h>
-#include <dlg_colors.h>
-#include <dlg_keys.h>
-
-        ])
-        define(_code2, [dnl
-
-int main( void )
-{
-  int status = 0;
-
-  bzero( (void *)&dialog_vars, sizeof(DIALOG_VARS) );
-
-  init_dialog(stdin, stdout);
-
-  dialog_vars.colors = 1;
-  dialog_vars.backtitle = "\\Z7Test\\Zn \\Z1dialog\\Zn \\Z7Library\\Zn";
-  dialog_vars.dlg_clear_screen = 1;
-  dialog_vars.sleep_secs = 1;
-
-
-  dlg_put_backtitle();
-
-  /*************************************************
-    Ruler: 68 characters + 2 spaces left and right:
-
-                           | ----handy-ruler----------------------------------------------------- | */
-  status = dialog_msgbox( " \\Z4Dialog ==>\\Zn\\Z1libdialog\\Zn\\Z4<== [required]\\Zn ",
-                          "\nPackage is installed and corect.\n",
-                          5, 72, 0 );
-
-  if( dialog_vars.sleep_secs )
-    (void)napms(dialog_vars.sleep_secs * 1000);
-
-  if( dialog_vars.dlg_clear_screen )
-  {
-    dlg_clear();
-    (void)refresh();
-  }
-  end_dialog();
-
-  exit( 0 );
-}
-        ])
-        _AC_DIALOG_VERBOSE([+ Performing Sanity Checks:])
-        _AC_DIALOG_VERBOSE([    o pre-processor test])
-        AC_TRY_CPP(_code1, _ok=yes, _ok=no)
-        if test ".$_ok" != .yes; then
-            _AC_DIALOG_ERROR([dnl
-            Found dialog $dialog_version under $dialog_location, but
-            was unable to perform a sanity pre-processor check. This means
-            the dialog header dialog.h was not found.
-            We used the following build environment:
-            >> CPP="$CPP"
-            See config.log for possibly more details.])
-        fi
-        _AC_DIALOG_VERBOSE([    o link check])
-        AC_TRY_LINK(_code1, _code2, _ok=yes, _ok=no)
-        if test ".$_ok" != .yes; then
-            _AC_DIALOG_ERROR([dnl
-            Found dialog $dialog_version under $dialog_location, but
-            was unable to perform a sanity linker check. This means
-            the dialog library libdialog.a was not found.
-            We used the following build environment:
-            >> CC="$CC"
-            >> CFLAGS="$CFLAGS"
-            >> LDFLAGS="$LDFLAGS"
-            >> LIBS="$LIBS"
-            See config.log for possibly more details.])
-        fi
-        _extendvars="ifelse([$4],,yes,$4)"
-        if test ".$_extendvars" != .yes; then
-            CFLAGS="$_ac_save_CFLAGS"
-            LDFLAGS="$_ac_save_LDFLAGS"
-            LIBS="$_ac_save_LIBS"
-        fi
-    else
-        _extendvars="ifelse([$4],,yes,$4)"
-        if test ".$_extendvars" = .yes; then
-            if test ".$dialog_subdir" = .yes; then
-                CFLAGS="$CFLAGS $dialog_cflags"
-                LDFLAGS="$LDFLAGS $dialog_ldflags"
-                LIBS="$LIBS $dialog_libs"
-            fi
-        fi
-    fi
-    DIALOG_CFLAGS="$dialog_cflags"
-    DIALOG_LDFLAGS="$dialog_ldflags"
-    DIALOG_LIBS="$dialog_libs"
-    AC_SUBST(DIALOG_CFLAGS)
-    AC_SUBST(DIALOG_LDFLAGS)
-    AC_SUBST(DIALOG_LIBS)
-
-    AC_SUBST(HAVE_DIALOG, [1])
-
-    AC_CHECK_HEADERS(dialog.h dlg_colors.h dlg_keys.h)
-
-    _AC_DIALOG_VERBOSE([+ Final Results:])
-    _AC_DIALOG_VERBOSE([    o DIALOG_CFLAGS=\"$DIALOG_CFLAGS\"])
-    _AC_DIALOG_VERBOSE([    o DIALOG_LDFLAGS=\"$DIALOG_LDFLAGS\"])
-    _AC_DIALOG_VERBOSE([    o DIALOG_LIBS=\"$DIALOG_LIBS\"])
-fi
-if test ".$with_dialog" != .no; then
-    AC_MSG_CHECKING(for libdialog)
-    AC_MSG_RESULT([version $dialog_version, $dialog_type under $dialog_location])
-    ifelse([$5], , :, [$5])
-else
-    AC_MSG_CHECKING(for libdialog)
-    AC_MSG_RESULT([no])
-    ifelse([$6], , :, [$6])
-fi
-])
-
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/create.patch.sh
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/create.patch.sh	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/create.patch.sh	(nonexistent)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-VERSION=1.3-20190808
-
-tar --files-from=file.list -xzvf ../dialog-$VERSION.tgz
-mv dialog-$VERSION dialog-$VERSION-orig
-
-cp -rf ./dialog-$VERSION-new ./dialog-$VERSION
-
-diff --unified -Nr  dialog-$VERSION-orig  dialog-$VERSION > dialog-$VERSION.patch
-
-mv dialog-$VERSION.patch ../patches
-
-rm -rf ./dialog-$VERSION
-rm -rf ./dialog-$VERSION-orig

Property changes on: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/create-1.3-20190808-patch/create.patch.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/patches/README
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/patches/README	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/patches/README	(nonexistent)
@@ -1,6 +0,0 @@
-
-/* begin *
-
-   dialog-1.3-20181107.patch   - Some enhance the appearance of dialogs.
-
- * end */
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/dialogrc
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/dialogrc	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/dialogrc	(nonexistent)
@@ -1,144 +0,0 @@
-#
-# Run-time configuration file for dialog, matches Radix color scheme.
-#
-# Types of values:
-#
-# Number     -  <number>
-# String     -  "string"
-# Boolean    -  <ON|OFF>
-# Attribute  -  (foreground,background,highlight?)
-
-# Set aspect-ration.
-aspect = 0
-
-# Set separator (for multiple widgets output).
-separate_widget = ""
-
-# Set tab-length (for textbox tab-conversion).
-tab_len = 0
-
-# Make tab-traversal for checklist, etc., include the list.
-visit_items = OFF
-
-# Shadow dialog boxes? This also turns on color.
-use_shadow = ON
-
-# Turn color support ON or OFF
-use_colors = ON
-
-# Screen color
-screen_color = (WHITE,BLACK,ON)
-
-# Shadow color
-shadow_color = (BLACK,BLACK,OFF)
-
-# Dialog box color
-dialog_color = (BLACK,WHITE,OFF)
-
-# Dialog box title color
-title_color = (BLACK,WHITE,ON)
-
-# Dialog box border color
-border_color = (WHITE,WHITE,ON)
-
-
-# Active button color
-button_active_color = (WHITE,BLACK,ON)
-
-# Inactive button color
-button_inactive_color = (BLACK,WHITE,OFF)
-
-# Active button key color
-button_key_active_color = (YELLOW,BLACK,ON)
-
-# Inactive button key color
-button_key_inactive_color = (RED,WHITE,ON)
-
-# Active button label color
-button_label_active_color = (WHITE,BLACK,ON)
-
-# Inactive button label color
-button_label_inactive_color = (BLACK,WHITE,ON)
-
-# Input box color
-inputbox_color = (BLUE,WHITE,ON)
-
-# Input box border color
-inputbox_border_color = (WHITE,WHITE,ON)
-
-# Search box color
-searchbox_color = (YELLOW,WHITE,ON)
-
-# Search box title color
-searchbox_title_color = (WHITE,WHITE,ON)
-
-# Search box border color
-searchbox_border_color = (RED,WHITE,OFF)
-
-# File position indicator color
-position_indicator_color = (RED,WHITE,ON)
-
-# Menu box color
-menubox_color = dialog_color
-
-# Menu box border color
-menubox_border_color = border_color
-
-# Item color
-item_color = (BLACK,WHITE,ON)
-
-# Selected item color
-item_selected_color = (BLACK,WHITE,OFF)
-
-# Tag color
-tag_color = (BLACK,WHITE,ON)
-
-# Selected tag color
-tag_selected_color = (BLACK,WHITE,OFF)
-
-# Tag key color
-tag_key_color = (RED,WHITE,ON)
-
-# Selected tag key color
-tag_key_selected_color = (YELLOW,BLACK,ON)
-
-# Check box color
-check_color = dialog_color
-
-# Selected check box color
-check_selected_color = (RED,WHITE,ON)
-
-
-# Up arrow color
-uarrow_color = (RED,WHITE,OFF)
-
-# Down arrow color
-darrow_color = uarrow_color
-
-
-# Item help-text color
-itemhelp_color = shadow_color
-
-# Active form text color
-form_active_text_color = inputbox_color
-
-# Form text color
-form_text_color = (BLACK,WHITE,ON)
-
-# Readonly form item color
-form_item_readonly_color = (CYAN,WHITE,ON)
-
-# Dialog box gauge color
-gauge_color = (BLACK,WHITE,ON)
-
-# Dialog box border2 color
-border2_color = dialog_color
-
-# Input box border2 color
-inputbox_border2_color = border2_color
-
-# Search box border2 color
-searchbox_border2_color = border2_color
-
-# Menu box border2 color
-menubox_border2_color = border2_color
Index: toolshains-1.6.4/build-system/3pp/sources/packages/dialog/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/dialog/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/dialog/Makefile	(nonexistent)
@@ -1,56 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../../../../build-system/config.mk
-
-
-url         = $(DOWNLOAD_SERVER)/sources/packages/a/dialog
-
-versions    = 1.3-20190808
-pkgname     = dialog
-suffix      = tgz
-
-tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-patches     = $(CURDIR)/patches/dialog-1.3-20190808.patch
-
-.NOTPARALLEL: $(patches)
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
-
-
-include ../../../../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-$(patches): $(sha1s)
-	@echo -e "\n======= Create Patches =======\n" ; \
-	 ( cd create-1.3-20190808-patch ; ./create.patch.sh ) ; \
-	 echo -e "\n"
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s) $(patches)
Index: toolshains-1.6.4/build-system/3pp/sources/packages/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/packages/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/packages/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/mpc/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/mpc/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/mpc/Makefile	(nonexistent)
@@ -1,39 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-include ../../../../../build-system/config.mk
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/mpc
-
-versions    = 1.2.1
-
-tarballs    = $(addsuffix .tar.gz, $(addprefix mpc-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-include ../../../../../build-system/core.mk
-
-.PHONY: download_clean
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/mpfr/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/mpfr/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/mpfr/Makefile	(nonexistent)
@@ -1,39 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-include ../../../../../build-system/config.mk
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/mpfr
-
-versions    = 4.1.0
-
-tarballs    = $(addsuffix .tar.xz, $(addprefix mpfr-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-include ../../../../../build-system/core.mk
-
-.PHONY: download_clean
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/gmp/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/gmp/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/gmp/Makefile	(nonexistent)
@@ -1,39 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-include ../../../../../build-system/config.mk
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/gmp
-
-versions    = 6.2.1
-
-tarballs    = $(addsuffix .tar.xz, $(addprefix gmp-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-include ../../../../../build-system/core.mk
-
-.PHONY: download_clean
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../../../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/gcc-10.2.0/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/gcc-10.2.0/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/gcc/gcc-10.2.0/Makefile	(nonexistent)
@@ -1,39 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-include ../../../../../../build-system/config.mk
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/gcc/gcc-$(version)
-
-version     = 10.2.0
-
-tarballs    = $(addsuffix .tar.xz, $(addprefix gcc-, $(version)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-include ../../../../../../build-system/core.mk
-
-.PHONY: download_clean
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/build-system/3pp/sources/GNU/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/GNU/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/GNU/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/build-system/3pp/sources/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/sources/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/sources/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/PATCHES
===================================================================
--- toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/PATCHES	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/PATCHES	(nonexistent)
@@ -1,2 +0,0 @@
-
-../../sources/packages/dialog/patches/dialog-1.3-20190808.patch -p0
Index: toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/Makefile
===================================================================
--- toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/3pp/dialog/1.3-20190808/Makefile	(nonexistent)
@@ -1,56 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_HOST)
-
-include ../../../../build-system/config.mk
-
-SOURCE_REQUIRES = build-system/3pp/sources/packages/dialog
-
-
-# ======= __END_OF_REQUIRES__ =======
-
-
-tar_gz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/dialog/dialog-1.3-20190808.tgz
-src_dir         = dialog-1.3-20190808
-build_dir       = $(TARGET_BUILD_DIR)/built
-
-src_done        = $(TARGET_BUILD_DIR)/.source-done
-SRC_DIR         = $(TARGET_BUILD_DIR)/dialog-1.3-20190808
-SRC_ARCHIVE     = $(tar_gz_archive)
-
-DIALOGRC        = $(BUILDSYSTEM)/3pp/sources/packages/dialog/dialogrc
-
-PATCHES = PATCHES
-
-build_target    = $(TARGET_BUILD_DIR)/.built
-install_target  = $(TARGET_BUILD_DIR)/.installed
-
-environment     =
-extra_configure_switches  = --libdir=/usr/lib
-extra_configure_switches += --mandir=/usr/share/man
-extra_configure_switches += --without-shared
-extra_configure_switches += --with-ncursesw
-
-BUILD_TARGETS = $(install_target)
-
-include ../../../../build-system/core.mk
-
-$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
-	$(UNPACK_SRC_ARCHIVE)
-	$(APPLY_PATCHES)
-	@touch $@
-
-$(build_target): $(src_done)
-	@mkdir -p $(build_dir)
-	@cd $(build_dir) && $(environment) ../$(src_dir)/configure \
-	  --prefix=/ \
-	  $(extra_configure_switches)
-	@$(environment) $(MAKE) -C $(build_dir) all
-	@touch $@
-
-$(install_target): $(build_target)
-	@echo -e "\n======= Installing DIALOG binary =======\n"
-	@mkdir -p $(BUILDSYSTEM)/{etc,sbin} && \
-	  cp -a $(DIALOGRC) $(BUILDSYSTEM)/etc && \
-	  cp -a $(build_dir)/dialog $(BUILDSYSTEM)/sbin && \
-	  echo "DIALOG := $(BUILDSYSTEM)/sbin/dialog" >> $(BUILDSYSTEM)/sbin/.config
-	@touch $@
Index: toolshains-1.6.4/build-system/Makefile
===================================================================
--- toolshains-1.6.4/build-system/Makefile	(revision 316)
+++ toolshains-1.6.4/build-system/Makefile	(nonexistent)
@@ -1,30 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_HOST)
-
-
-include config.mk
-
-REQUIRES  = build-system/3pp/dialog/1.3-20190808
-REQUIRES += build-system/3pp/gnattools/10.2.0
-
-# ======= __END_OF_REQUIRES__ =======
-
-
-config_makefile = targets-config.mk
-
-BUILD_TARGETS = $(config_makefile)
-
-CLEANUP_FILES += $(config_makefile)
-CLEANUP_FILES += $(CURDIR)/gnattools
-CLEANUP_FILES += $(CURDIR)/sbin
-CLEANUP_FILES += $(CURDIR)/etc
-
-# CORE Makefile:
-
-include core.mk
-
-# Dependencies:
-
-$(config_makefile): $(config_makefile).template
-	@echo "Creating $(config_makefile) ..."
-	@cp $(config_makefile).template $@
Index: toolshains-1.6.4/build-system
===================================================================
--- toolshains-1.6.4/build-system	(revision 316)
+++ toolshains-1.6.4/build-system	(nonexistent)

Property changes on: toolshains-1.6.4/build-system
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/inria/isl/Makefile
===================================================================
--- toolshains-1.6.4/sources/inria/isl/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/inria/isl/Makefile	(nonexistent)
@@ -1,47 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../../build-system/config.mk
-
-
-url         = $(DOWNLOAD_SERVER)/sources/packages/l/isl
-
-versions    = 0.23
-pkg_name    = isl
-suffix      = tar.xz
-
-tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-
-include ../../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/sources/inria/Makefile
===================================================================
--- toolshains-1.6.4/sources/inria/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/inria/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/file.list
===================================================================
--- toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/file.list	(revision 316)
+++ toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/file.list	(nonexistent)
@@ -1 +0,0 @@
-newlib-4.0.0/libgloss/riscv/Makefile.in
Index: toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/create.patch.sh
===================================================================
--- toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/create.patch.sh	(revision 316)
+++ toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/create.patch.sh	(nonexistent)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-VERSION=4.0.0
-
-tar --files-from=file.list -xzvf ../newlib-$VERSION.tar.gz
-mv newlib-$VERSION newlib-$VERSION-orig
-
-cp -rf ./newlib-$VERSION-new ./newlib-$VERSION
-
-diff -b --unified -Nr  newlib-$VERSION-orig  newlib-$VERSION > newlib-$VERSION-riscv.patch
-
-mv newlib-$VERSION-riscv.patch ../patches
-
-rm -rf ./newlib-$VERSION
-rm -rf ./newlib-$VERSION-orig

Property changes on: toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/create.patch.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/newlib-4.0.0-new/libgloss/riscv/Makefile.in
===================================================================
--- toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/newlib-4.0.0-new/libgloss/riscv/Makefile.in	(revision 316)
+++ toolshains-1.6.4/sources/newlib/create-4.0.0-riscv-patch/newlib-4.0.0-new/libgloss/riscv/Makefile.in	(nonexistent)
@@ -1,278 +0,0 @@
-#-------------------------------------------------------------------------
-# Source files
-#-------------------------------------------------------------------------
-
-gloss_hdrs = \
-	machine/syscall.h \
-
-gloss_srcs = \
-	nanosleep.c \
-	sys_access.c \
-	sys_chdir.c \
-	sys_chmod.c \
-	sys_chown.c \
-	sys_close.c \
-	sys_conv_stat.c \
-	sys_execve.c \
-	sys_exit.c \
-	sys_faccessat.c \
-	sys_fork.c \
-	sys_fstatat.c \
-	sys_fstat.c \
-	sys_ftime.c \
-	sys_getcwd.c \
-	sys_getpid.c \
-	sys_gettimeofday.c \
-	sys_isatty.c \
-	sys_kill.c \
-	sys_link.c \
-	sys_lseek.c \
-	sys_lstat.c \
-	sys_openat.c \
-	sys_open.c \
-	sys_read.c \
-	sys_sbrk.c \
-	sys_stat.c \
-	sys_sysconf.c \
-	sys_times.c \
-	sys_unlink.c \
-	sys_utime.c \
-	sys_wait.c \
-	sys_write.c 
-
-gloss_specs = \
-	nano.specs sim.specs
-
-# Extra files
-
-crt0_asm      = crt0.S
-
-# Multilib support variables.
-# TOP is used instead of MULTI{BUILD,SRC}TOP.
-
-MULTIDIRS =
-MULTISUBDIR =
-MULTIDO = true
-MULTICLEAN = true
-
-#-------------------------------------------------------------------------
-# Basic setup
-#-------------------------------------------------------------------------
-
-# Remove all default implicit rules since they can cause subtle bugs
-# and they just make things run slower
-
-.SUFFIXES:
-% : %,v
-% : RCS/%,v
-% : RCS/%
-% : s.%
-% : SCCS/s.%
-
-# Default is to build the prereqs of the all target (defined at bottom)
-
-default : all
-.PHONY : default
-
-# Source directory
-
-obj_dir := .
-src_dir := @srcdir@
-VPATH   := $(src_dir) $(src_dir)/machine
-
-host_alias = @host_alias@
-target_alias = @target_alias@
-
-# Installation directories
-
-prefix  := @prefix@
-DESTDIR ?= $(prefix)
-
-install_hdrs_dir := $(DESTDIR)$(prefix)/$(target_alias)/include/machine
-install_libs_dir  = $(DESTDIR)$(prefix)/$(target_alias)/lib${MULTISUBDIR}
-
-#-------------------------------------------------------------------------
-# Programs and flags 
-#-------------------------------------------------------------------------
-
-# C compiler
-
-CC            := @CC@
-CFLAGS        := @CFLAGS@
-CPPFLAGS      := -I$(obj_dir) -I$(src_dir)
-COMPILE       := $(CC) -MMD -MP $(CPPFLAGS) $(CFLAGS)
-
-# Library creation
-
-AR            := @AR@
-RANLIB        := @RANLIB@
-
-# Installation
-
-INSTALL       := @INSTALL@
-INSTALL_DATA  := @INSTALL_DATA@
-
-#-------------------------------------------------------------------------
-# Build Object Files from C Source
-#-------------------------------------------------------------------------
-
-gloss_c_srcs = $(filter %.c, $(gloss_srcs))
-gloss_c_objs = $(patsubst %.c, %.o, $(notdir $(gloss_c_srcs)))
-gloss_c_deps = $(patsubst %.c, %.d, $(notdir $(gloss_c_srcs)))
-
-$(gloss_c_objs) : %.o : %.c
-	$(COMPILE) -c $<
-
-gloss_objs += $(gloss_c_objs)
-deps += $(gloss_c_deps)
-junk += $(gloss_c_deps) $(gloss_c_objs)
-
-sim_c_objs = $(patsubst %.c, sim-%.o, $(notdir $(gloss_c_srcs)))
-sim_c_deps = $(patsubst %.c, sim-%.d, $(notdir $(gloss_c_srcs)))
-
-$(sim_c_objs): sim-%.o : %.c
-	$(COMPILE) -c -DUSING_SIM_SPECS -o $@ $<
-
-sim_objs += $(sim_c_objs)
-deps += $(sim_c_deps)
-junk += $(sim_c_deps) $(sim_c_objs)
-
-#-------------------------------------------------------------------------
-# Build Object Files from Assembly Source
-#-------------------------------------------------------------------------
-
-gloss_asm_srcs = $(filter %.S, $(gloss_srcs))
-gloss_asm_objs = $(patsubst %.S, %.o, $(notdir $(gloss_asm_srcs)))
-gloss_asm_deps = $(patsubst %.S, %.d, $(notdir $(gloss_asm_srcs)))
-
-$(gloss_asm_objs) : %.o : %.S
-	$(COMPILE) -c -o $@ $<
-
-gloss_objs += $(gloss_asm_objs)
-deps += $(gloss_asm_deps)
-junk += $(gloss_asm_deps) $(gloss_asm_objs)
-
-sim_asm_objs = $(patsubst %.S, sim-%.o, $(notdir $(gloss_asm_srcs)))
-sim_asm_deps = $(patsubst %.S, sim-%.d, $(notdir $(gloss_asm_srcs)))
-
-$(sim_asm_objs) : sim-%.o : %.S
-	$(COMPILE) -c -DUSING_SIM_SPECS -o $@ $<
-
-sim_objs += $(sim_asm_objs)
-deps += $(sim_asm_deps)
-junk += $(sim_asm_deps) $(sim_asm_objs)
-
-#-------------------------------------------------------------------------
-# Build libgloss.a
-#-------------------------------------------------------------------------
-
-gloss_lib  = libgloss.a
-$(gloss_lib) : $(gloss_objs)
-	$(AR) rcv $@ $^
-	$(RANLIB) $@
-
-junk += $(gloss_lib)
-
-install_hdrs += $(gloss_hdrs)
-install_libs += $(gloss_lib)
-install_specs += $(gloss_specs)
-
-#-------------------------------------------------------------------------
-# Build libsim.a
-#-------------------------------------------------------------------------
-
-sim_lib  = libsim.a
-$(sim_lib) : $(sim_objs)
-	$(AR) rcv $@ $^
-	$(RANLIB) $@
-
-junk += $(sim_lib)
-
-install_libs += $(sim_lib)
-
-#-------------------------------------------------------------------------
-# Build crt0.o
-#-------------------------------------------------------------------------
-
-crt0_obj  = $(patsubst %.S, %.o, $(crt0_asm))
-crt0_deps = $(patsubst %.S, %.d, $(crt0_asm))
-
-$(crt0_obj) : %.o : %.S
-	$(COMPILE) -c $<
-
-deps += $(crt0_deps)
-junk += $(crt0_deps) $(crt0_obj)
-
-install_libs += $(crt0_obj)
-
-#-------------------------------------------------------------------------
-# Autodependency files
-#-------------------------------------------------------------------------
-
--include $(deps)
-
-deps : $(deps)
-.PHONY : deps
-
-#-------------------------------------------------------------------------
-# Installation
-#-------------------------------------------------------------------------
-
-install_hdrs_wdir += $(addprefix $(src_dir)/, $(install_hdrs))
-install-hdrs : $(install_hdrs_wdir)
-	test -d $(install_hdrs_dir) || mkdir -p $(install_hdrs_dir)
-	for file in $^; do \
-		$(INSTALL_DATA) $$file $(install_hdrs_dir)/; \
-	done
-
-install-libs : $(install_libs)
-	test -d $(install_libs_dir) || mkdir -p $(install_libs_dir)
-	for file in $^; do \
-		$(INSTALL_DATA) $$file $(install_libs_dir)/$$file; \
-	done
-
-install-specs : $(install_specs)
-	test -d $(install_libs_dir) || mkdir -p $(install_libs_dir)
-	for file in $^; do \
-		$(INSTALL_DATA) $$file $(install_libs_dir)/; \
-	done
-
-install : install-hdrs install-libs install-specs
-.PHONY : install install-hdrs install-libs
-
-#-------------------------------------------------------------------------
-# Regenerate configure information
-#-------------------------------------------------------------------------
-
-configure_prereq = \
-  $(src_dir)/configure.in \
-
-$(src_dir)/configure : $(configure_prereq)
-	cd $(src_dir) && autoconf
-
-config.status : $(src_dir)/configure
-	./config.status --recheck
-
-Makefile : $(src_dir)/Makefile.in config.status
-	./config.status
-
-dist_junk += config.status Makefile config.log
-
-#-------------------------------------------------------------------------
-# Default
-#-------------------------------------------------------------------------
-
-all : $(install_libs)
-.PHONY : all
-
-#-------------------------------------------------------------------------
-# Clean up junk
-#-------------------------------------------------------------------------
-
-clean :
-	rm -rf *~ \#* $(junk)
-
-distclean :
-	rm -rf *~ \#* $(junk) $(dist_junk)
-
-.PHONY : clean distclean
Index: toolshains-1.6.4/sources/newlib/patches/README
===================================================================
--- toolshains-1.6.4/sources/newlib/patches/README	(revision 316)
+++ toolshains-1.6.4/sources/newlib/patches/README	(nonexistent)
@@ -1,8 +0,0 @@
-
-/* begin *
-
-   newlib-4.0.0-riscv.patch  - 'target_alias' is needed to install libgloss correctly;
-
-   README.TXT                - this file.
-
- * end */
Index: toolshains-1.6.4/sources/newlib/Makefile
===================================================================
--- toolshains-1.6.4/sources/newlib/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/newlib/Makefile	(nonexistent)
@@ -1,65 +0,0 @@
-#
-# Project Home:
-# ============
-# http://www.sourceware.org/newlib/
-#
-# Source snapshots:
-# ================
-# ftp://sources.redhat.com/pub/newlib/newlib-1.18.0.tar.gz
-#
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../build-system/config.mk
-
-
-main_url    = ftp://sources.redhat.com/pub/newlib
-url         = $(DOWNLOAD_SERVER)/sources/newlib
-
-versions    = 4.0.0
-
-tarballs    = $(addsuffix .tar.gz, $(addprefix newlib-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-patches     = $(CURDIR)/patches/newlib-4.0.0-riscv.patch
-
-
-.NOTPARALLEL: $(patches)
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
-
-
-include ../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-$(patches): $(sha1s)
-	@echo -e "\n======= Create Patches =======\n" ; \
-	 ( cd create-4.0.0-riscv-patch ; ./create.patch.sh ) ; \
-	 echo -e "\n"
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s) $(patches)
Index: toolshains-1.6.4/sources/newlib
===================================================================
--- toolshains-1.6.4/sources/newlib	(revision 316)
+++ toolshains-1.6.4/sources/newlib	(nonexistent)

Property changes on: toolshains-1.6.4/sources/newlib
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/U-Boot/denx/Makefile
===================================================================
--- toolshains-1.6.4/sources/U-Boot/denx/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/U-Boot/denx/Makefile	(nonexistent)
@@ -1,50 +0,0 @@
-#
-# Project Home:
-# ============
-# git.radix.pro/sources.git
-#
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../../build-system/config.mk
-
-
-url         = $(DOWNLOAD_SERVER)/sources/U-Boot/denx
-
-versions    = 2014.01
-
-tarballs    = $(addsuffix .tar.bz2, $(addprefix u-boot-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-
-include ../../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/sources/U-Boot/denx
===================================================================
--- toolshains-1.6.4/sources/U-Boot/denx	(revision 316)
+++ toolshains-1.6.4/sources/U-Boot/denx	(nonexistent)

Property changes on: toolshains-1.6.4/sources/U-Boot/denx
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/U-Boot/Makefile
===================================================================
--- toolshains-1.6.4/sources/U-Boot/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/U-Boot/Makefile	(nonexistent)
@@ -1,14 +0,0 @@
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-SOURCE_REQUIRES += ALL_DIRS
-
-# ======= __END_OF_REQUIRES__ =======
-
-include ../../build-system/core.mk
-
-
-download_clean:
-	@true
-
-.PHONY: download_clean
Index: toolshains-1.6.4/sources/U-Boot
===================================================================
--- toolshains-1.6.4/sources/U-Boot	(revision 316)
+++ toolshains-1.6.4/sources/U-Boot	(nonexistent)

Property changes on: toolshains-1.6.4/sources/U-Boot
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/GNU/mpc/Makefile
===================================================================
--- toolshains-1.6.4/sources/GNU/mpc/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/GNU/mpc/Makefile	(nonexistent)
@@ -1,53 +0,0 @@
-#
-# Download: http://www.gnu.org/prep/ftp.html
-#
-# You can use the generic url http://ftpmirror.gnu.org
-# to automatically choose a nearby and up-to-date mirror.
-#
-# original url: http://ftpmirror.gnu.org/mpc
-#
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../../build-system/config.mk
-
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/mpc
-
-versions    = 1.2.1
-
-tarballs    = $(addsuffix .tar.gz, $(addprefix mpc-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-
-include ../../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/sources/GNU/mpc
===================================================================
--- toolshains-1.6.4/sources/GNU/mpc	(revision 316)
+++ toolshains-1.6.4/sources/GNU/mpc	(nonexistent)

Property changes on: toolshains-1.6.4/sources/GNU/mpc
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/GNU/mpfr/Makefile
===================================================================
--- toolshains-1.6.4/sources/GNU/mpfr/Makefile	(revision 316)
+++ toolshains-1.6.4/sources/GNU/mpfr/Makefile	(nonexistent)
@@ -1,53 +0,0 @@
-#
-# Download: http://www.gnu.org/prep/ftp.html
-#
-# You can use the generic url http://ftpmirror.gnu.org 
-# to automatically choose a nearby and up-to-date mirror.
-#
-# original url: http://ftp.gnu.org/gnu/mpfr/mpfr-$(version)
-#
-
-COMPONENT_TARGETS = $(TOOLCHAIN_NOARCH)
-
-
-include ../../../build-system/config.mk
-
-
-url         = $(DOWNLOAD_SERVER)/sources/GNU/mpfr
-
-versions    = 4.1.0
-
-tarballs    = $(addsuffix .tar.xz, $(addprefix mpfr-, $(versions)))
-sha1s       = $(addsuffix .sha1sum, $(tarballs))
-
-
-BUILD_TARGETS = $(tarballs) $(sha1s)
-
-
-include ../../../build-system/core.mk
-
-
-.PHONY: download_clean
-
-
-$(tarballs):
-	@echo -e "\n======= Downloading source tarballs =======" ; \
-	 for tarball in $(tarballs) ; do \
-	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
-	 done ; wait
-
-$(sha1s): $(tarballs)
-	@for sha in $@ ; do \
-	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
-	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
-	   touch $$sha ; \
-	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
-	   sha1sum --check $$sha ; ret="$$?" ; \
-	   if [ "$$ret" == "1" ]; then \
-	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
-	     exit 1 ; \
-	   fi ; \
-	 done
-
-download_clean:
-	@rm -f $(tarballs) $(sha1s)
Index: toolshains-1.6.4/sources/GNU/mpfr
===================================================================
--- toolshains-1.6.4/sources/GNU/mpfr	(revision 316)
+++ toolshains-1.6.4/sources/GNU/mpfr	(nonexistent)

Property changes on: toolshains-1.6.4/sources/GNU/mpfr
___________________________________________________________________
Deleted: svn:ignore
## -1,33 +0,0 ##
-
-# Target build dirs
-.host/
-.a1x-newlib/
-.at91sam7s-newlib/
-.dm644x-newlib/
-.a1x-eglibc/
-.dm644x-eglibc/
-.omap35x-eglibc/
-.omap543x-eglibc/
-.bcm74x-eglibc/
-.x86_64-eglibc/
-
-# Hidden files (each file)
-.makefile
-
-# Tarballs
-*.gz
-*.bz2
-*.tgz
-*.txz
-
-# Signatures
-*.asc
-*.sig
-*.sign
-*.sha1sum
-
-# Default linux config files
-*.defconfig
-
-# backup copies
-*~
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/file.list
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/file.list	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/file.list	(nonexistent)
@@ -1,2 +0,0 @@
-binutils-2.36/bfd/bfd-in.h
-binutils-2.36/bfd/bfd-in2.h
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in.h
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in.h	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in.h	(nonexistent)
@@ -1,561 +0,0 @@
-/* Main header file for the bfd library -- portable access to object files.
-
-   Copyright (C) 1990-2021 Free Software Foundation, Inc.
-
-   Contributed by Cygnus Support.
-
-   This file is part of BFD, the Binary File Descriptor library.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
-
-#ifndef __BFD_H_SEEN__
-#define __BFD_H_SEEN__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "ansidecl.h"
-#include "symcat.h"
-#include "bfd_stdint.h"
-#include "diagnostics.h"
-#include <stdarg.h>
-#include <sys/stat.h>
-
-#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
-#ifndef SABER
-/* This hack is to avoid a problem with some strict ANSI C preprocessors.
-   The problem is, "32_" is not a valid preprocessing token, and we don't
-   want extra underscores (e.g., "nlm_32_").  The XCONCAT2 macro will
-   cause the inner CONCAT2 macros to be evaluated first, producing
-   still-valid pp-tokens.  Then the final concatenation can be done.  */
-#undef CONCAT4
-#define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))
-#endif
-#endif
-
-/* This is a utility macro to handle the situation where the code
-   wants to place a constant string into the code, followed by a
-   comma and then the length of the string.  Doing this by hand
-   is error prone, so using this macro is safer.  */
-#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
-/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
-   to create the arguments to another macro, since the preprocessor
-   will mis-count the number of arguments to the outer macro (by not
-   evaluating STRING_COMMA_LEN and so missing the comma).  This is a
-   problem for example when trying to use STRING_COMMA_LEN to build
-   the arguments to the strncmp() macro.  Hence this alternative
-   definition of strncmp is provided here.
-
-   Note - these macros do NOT work if STR2 is not a constant string.  */
-#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
-  /* strcpy() can have a similar problem, but since we know we are
-     copying a constant string, we can use memcpy which will be faster
-     since there is no need to check for a NUL byte inside STR.  We
-     can also save time if we do not need to copy the terminating NUL.  */
-#define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
-#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
-
-
-#define BFD_SUPPORTS_PLUGINS @supports_plugins@
-
-/* The word size used by BFD on the host.  This may be 64 with a 32
-   bit target if the host is 64 bit, or if other 64 bit targets have
-   been selected with --enable-targets, or if --enable-64-bit-bfd.  */
-#define BFD_ARCH_SIZE @wordsize@
-
-/* The word size of the default bfd target.  */
-#define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@
-
-#define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@
-#define BFD_HOST_64BIT_LONG_LONG @BFD_HOST_64BIT_LONG_LONG@
-#if @BFD_HOST_64_BIT_DEFINED@
-#define BFD_HOST_64_BIT @BFD_HOST_64_BIT@
-#define BFD_HOST_U_64_BIT @BFD_HOST_U_64_BIT@
-typedef BFD_HOST_64_BIT bfd_int64_t;
-typedef BFD_HOST_U_64_BIT bfd_uint64_t;
-#endif
-
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if BFD_HOST_64BIT_LONG
-#  define BFD_PRI64 "l"
-# elif defined (__MSVCRT__)
-#  define BFD_PRI64 "I64"
-# else
-#  define BFD_PRI64 "ll"
-# endif
-# undef PRId64
-# define PRId64 BFD_PRI64 "d"
-# undef PRIu64
-# define PRIu64 BFD_PRI64 "u"
-# undef PRIx64
-# define PRIx64 BFD_PRI64 "x"
-#endif
-
-#if BFD_ARCH_SIZE >= 64
-#define BFD64
-#endif
-
-#ifndef INLINE
-#if __GNUC__ >= 2
-#define INLINE __inline__
-#else
-#define INLINE
-#endif
-#endif
-
-/* Declaring a type wide enough to hold a host long and a host pointer.  */
-#define BFD_HOSTPTR_T @BFD_HOSTPTR_T@
-typedef BFD_HOSTPTR_T bfd_hostptr_t;
-
-/* Forward declaration.  */
-typedef struct bfd bfd;
-
-/* Boolean type used in bfd.  Too many systems define their own
-   versions of "boolean" for us to safely typedef a "boolean" of
-   our own.  Using an enum for "bfd_boolean" has its own set of
-   problems, with strange looking casts required to avoid warnings
-   on some older compilers.  Thus we just use an int.
-
-   General rule: Functions which are bfd_boolean return TRUE on
-   success and FALSE on failure (unless they're a predicate).  */
-
-typedef int bfd_boolean;
-#undef FALSE
-#undef TRUE
-#define FALSE 0
-#define TRUE 1
-
-#ifdef BFD64
-
-#ifndef BFD_HOST_64_BIT
- #error No 64 bit integer type available
-#endif /* ! defined (BFD_HOST_64_BIT) */
-
-typedef BFD_HOST_U_64_BIT bfd_vma;
-typedef BFD_HOST_64_BIT bfd_signed_vma;
-typedef BFD_HOST_U_64_BIT bfd_size_type;
-typedef BFD_HOST_U_64_BIT symvalue;
-
-#if BFD_HOST_64BIT_LONG
-#define BFD_VMA_FMT "l"
-#elif defined (__MSVCRT__)
-#define BFD_VMA_FMT "I64"
-#else
-#define BFD_VMA_FMT "ll"
-#endif
-
-#ifndef fprintf_vma
-#define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
-#define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
-#endif
-
-#else /* not BFD64  */
-
-/* Represent a target address.  Also used as a generic unsigned type
-   which is guaranteed to be big enough to hold any arithmetic types
-   we need to deal with.  */
-typedef unsigned long bfd_vma;
-
-/* A generic signed type which is guaranteed to be big enough to hold any
-   arithmetic types we need to deal with.  Can be assumed to be compatible
-   with bfd_vma in the same way that signed and unsigned ints are compatible
-   (as parameters, in assignment, etc).  */
-typedef long bfd_signed_vma;
-
-typedef unsigned long symvalue;
-typedef unsigned long bfd_size_type;
-
-/* Print a bfd_vma x on stream s.  */
-#define BFD_VMA_FMT "l"
-#define fprintf_vma(s,x) fprintf (s, "%08" BFD_VMA_FMT "x", x)
-#define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x)
-
-#endif /* not BFD64  */
-
-#define HALF_BFD_SIZE_TYPE \
-  (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2))
-
-#ifndef BFD_HOST_64_BIT
-/* Fall back on a 32 bit type.  The idea is to make these types always
-   available for function return types, but in the case that
-   BFD_HOST_64_BIT is undefined such a function should abort or
-   otherwise signal an error.  */
-typedef bfd_signed_vma bfd_int64_t;
-typedef bfd_vma bfd_uint64_t;
-#endif
-
-/* An offset into a file.  BFD always uses the largest possible offset
-   based on the build time availability of fseek, fseeko, or fseeko64.  */
-typedef @bfd_file_ptr@ file_ptr;
-typedef unsigned @bfd_file_ptr@ ufile_ptr;
-
-extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
-extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
-
-#define printf_vma(x) fprintf_vma(stdout,x)
-#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
-
-typedef unsigned int flagword;	/* 32 bits of flags */
-typedef unsigned char bfd_byte;
-
-/* File formats.  */
-
-typedef enum bfd_format
-{
-  bfd_unknown = 0,	/* File format is unknown.  */
-  bfd_object,		/* Linker/assembler/compiler output.  */
-  bfd_archive,		/* Object archive file.  */
-  bfd_core,		/* Core dump.  */
-  bfd_type_end		/* Marks the end; don't use it!  */
-}
-bfd_format;
-
-/* Symbols and relocation.  */
-
-/* A count of carsyms (canonical archive symbols).  */
-typedef unsigned long symindex;
-
-#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
-
-/* A canonical archive symbol.  */
-/* This is a type pun with struct ranlib on purpose!  */
-typedef struct carsym
-{
-  const char *name;
-  file_ptr file_offset;	/* Look here to find the file.  */
-}
-carsym;			/* To make these you call a carsymogen.  */
-
-/* Used in generating armaps (archive tables of contents).
-   Perhaps just a forward definition would do?  */
-struct orl		/* Output ranlib.  */
-{
-  char **name;		/* Symbol name.  */
-  union
-  {
-    file_ptr pos;
-    bfd *abfd;
-  } u;			/* bfd* or file position.  */
-  int namidx;		/* Index into string table.  */
-};
-
-/* Linenumber stuff.  */
-typedef struct lineno_cache_entry
-{
-  unsigned int line_number;	/* Linenumber from start of function.  */
-  union
-  {
-    struct bfd_symbol *sym;	/* Function name.  */
-    bfd_vma offset;		/* Offset into section.  */
-  } u;
-}
-alent;
-
-/* Object and core file sections.  */
-typedef struct bfd_section *sec_ptr;
-
-#define	align_power(addr, align)	\
-  (((addr) + ((bfd_vma) 1 << (align)) - 1) & (-((bfd_vma) 1 << (align))))
-
-/* Align an address upward to a boundary, expressed as a number of bytes.
-   E.g. align to an 8-byte boundary with argument of 8.  Take care never
-   to wrap around if the address is within boundary-1 of the end of the
-   address space.  */
-#define BFD_ALIGN(this, boundary)					  \
-  ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this))		  \
-   ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \
-   : ~ (bfd_vma) 0)
-
-typedef enum bfd_print_symbol
-{
-  bfd_print_symbol_name,
-  bfd_print_symbol_more,
-  bfd_print_symbol_all
-} bfd_print_symbol_type;
-
-/* Information about a symbol that nm needs.  */
-
-typedef struct _symbol_info
-{
-  symvalue value;
-  char type;
-  const char *name;		/* Symbol name.  */
-  unsigned char stab_type;	/* Stab type.  */
-  char stab_other;		/* Stab other.  */
-  short stab_desc;		/* Stab desc.  */
-  const char *stab_name;	/* String for stab type.  */
-} symbol_info;
-
-/* Get the name of a stabs type code.  */
-
-extern const char *bfd_get_stab_name (int);
-
-/* Hash table routines.  There is no way to free up a hash table.  */
-
-/* An element in the hash table.  Most uses will actually use a larger
-   structure, and an instance of this will be the first field.  */
-
-struct bfd_hash_entry
-{
-  /* Next entry for this hash code.  */
-  struct bfd_hash_entry *next;
-  /* String being hashed.  */
-  const char *string;
-  /* Hash code.  This is the full hash code, not the index into the
-     table.  */
-  unsigned long hash;
-};
-
-/* A hash table.  */
-
-struct bfd_hash_table
-{
-  /* The hash array.  */
-  struct bfd_hash_entry **table;
-  /* A function used to create new elements in the hash table.  The
-     first entry is itself a pointer to an element.  When this
-     function is first invoked, this pointer will be NULL.  However,
-     having the pointer permits a hierarchy of method functions to be
-     built each of which calls the function in the superclass.  Thus
-     each function should be written to allocate a new block of memory
-     only if the argument is NULL.  */
-  struct bfd_hash_entry *(*newfunc)
-    (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
-  /* An objalloc for this hash table.  This is a struct objalloc *,
-     but we use void * to avoid requiring the inclusion of objalloc.h.  */
-  void *memory;
-  /* The number of slots in the hash table.  */
-  unsigned int size;
-  /* The number of entries in the hash table.  */
-  unsigned int count;
-  /* The size of elements.  */
-  unsigned int entsize;
-  /* If non-zero, don't grow the hash table.  */
-  unsigned int frozen:1;
-};
-
-/* Initialize a hash table.  */
-extern bfd_boolean bfd_hash_table_init
-  (struct bfd_hash_table *,
-   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
-			       struct bfd_hash_table *,
-			       const char *),
-   unsigned int);
-
-/* Initialize a hash table specifying a size.  */
-extern bfd_boolean bfd_hash_table_init_n
-  (struct bfd_hash_table *,
-   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
-			       struct bfd_hash_table *,
-			       const char *),
-   unsigned int, unsigned int);
-
-/* Free up a hash table.  */
-extern void bfd_hash_table_free
-  (struct bfd_hash_table *);
-
-/* Look up a string in a hash table.  If CREATE is TRUE, a new entry
-   will be created for this string if one does not already exist.  The
-   COPY argument must be TRUE if this routine should copy the string
-   into newly allocated memory when adding an entry.  */
-extern struct bfd_hash_entry *bfd_hash_lookup
-  (struct bfd_hash_table *, const char *, bfd_boolean create,
-   bfd_boolean copy);
-
-/* Insert an entry in a hash table.  */
-extern struct bfd_hash_entry *bfd_hash_insert
-  (struct bfd_hash_table *, const char *, unsigned long);
-
-/* Rename an entry in a hash table.  */
-extern void bfd_hash_rename
-  (struct bfd_hash_table *, const char *, struct bfd_hash_entry *);
-
-/* Replace an entry in a hash table.  */
-extern void bfd_hash_replace
-  (struct bfd_hash_table *, struct bfd_hash_entry *old,
-   struct bfd_hash_entry *nw);
-
-/* Base method for creating a hash table entry.  */
-extern struct bfd_hash_entry *bfd_hash_newfunc
-  (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
-
-/* Grab some space for a hash table entry.  */
-extern void *bfd_hash_allocate
-  (struct bfd_hash_table *, unsigned int);
-
-/* Traverse a hash table in a random order, calling a function on each
-   element.  If the function returns FALSE, the traversal stops.  The
-   INFO argument is passed to the function.  */
-extern void bfd_hash_traverse
-  (struct bfd_hash_table *,
-   bfd_boolean (*) (struct bfd_hash_entry *, void *),
-   void *info);
-
-/* Allows the default size of a hash table to be configured. New hash
-   tables allocated using bfd_hash_table_init will be created with
-   this size.  */
-extern unsigned long bfd_hash_set_default_size (unsigned long);
-
-/* Types of compressed DWARF debug sections.  We currently support
-   zlib.  */
-enum compressed_debug_section_type
-{
-  COMPRESS_DEBUG_NONE = 0,
-  COMPRESS_DEBUG = 1 << 0,
-  COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 1,
-  COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 2
-};
-
-/* This structure is used to keep track of stabs in sections
-   information while linking.  */
-
-struct stab_info
-{
-  /* A hash table used to hold stabs strings.  */
-  struct bfd_strtab_hash *strings;
-  /* The header file hash table.  */
-  struct bfd_hash_table includes;
-  /* The first .stabstr section.  */
-  struct bfd_section *stabstr;
-};
-
-#define COFF_SWAP_TABLE (void *) &bfd_coff_std_swap_table
-
-/* User program access to BFD facilities.  */
-
-/* Direct I/O routines, for programs which know more about the object
-   file than BFD does.  Use higher level routines if possible.  */
-
-extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);
-extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);
-extern int bfd_seek (bfd *, file_ptr, int);
-extern file_ptr bfd_tell (bfd *);
-extern int bfd_flush (bfd *);
-extern int bfd_stat (bfd *, struct stat *);
-
-/* Deprecated old routines.  */
-#if __GNUC__
-#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_read", __FILE__, __LINE__, __FUNCTION__),	\
-   bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_write", __FILE__, __LINE__, __FUNCTION__), \
-   bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#else
-#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_read", (const char *) 0, 0, (const char *) 0), \
-   bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_write", (const char *) 0, 0, (const char *) 0),\
-   bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#endif
-extern void _bfd_warn_deprecated (const char *, const char *, int, const char *);
-
-extern bfd_boolean bfd_cache_close
-  (bfd *abfd);
-/* NB: This declaration should match the autogenerated one in libbfd.h.  */
-
-extern bfd_boolean bfd_cache_close_all (void);
-
-extern bfd_boolean bfd_record_phdr
-  (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
-   bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
-
-/* Byte swapping routines.  */
-
-bfd_uint64_t bfd_getb64 (const void *);
-bfd_uint64_t bfd_getl64 (const void *);
-bfd_int64_t bfd_getb_signed_64 (const void *);
-bfd_int64_t bfd_getl_signed_64 (const void *);
-bfd_vma bfd_getb32 (const void *);
-bfd_vma bfd_getl32 (const void *);
-bfd_signed_vma bfd_getb_signed_32 (const void *);
-bfd_signed_vma bfd_getl_signed_32 (const void *);
-bfd_vma bfd_getb16 (const void *);
-bfd_vma bfd_getl16 (const void *);
-bfd_signed_vma bfd_getb_signed_16 (const void *);
-bfd_signed_vma bfd_getl_signed_16 (const void *);
-void bfd_putb64 (bfd_uint64_t, void *);
-void bfd_putl64 (bfd_uint64_t, void *);
-void bfd_putb32 (bfd_vma, void *);
-void bfd_putl32 (bfd_vma, void *);
-void bfd_putb24 (bfd_vma, void *);
-void bfd_putl24 (bfd_vma, void *);
-void bfd_putb16 (bfd_vma, void *);
-void bfd_putl16 (bfd_vma, void *);
-
-/* Byte swapping routines which take size and endiannes as arguments.  */
-
-bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean);
-void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean);
-
-
-/* mmap hacks */
-
-struct _bfd_window_internal;
-typedef struct _bfd_window_internal bfd_window_internal;
-
-typedef struct _bfd_window
-{
-  /* What the user asked for.  */
-  void *data;
-  bfd_size_type size;
-  /* The actual window used by BFD.  Small user-requested read-only
-     regions sharing a page may share a single window into the object
-     file.  Read-write versions shouldn't until I've fixed things to
-     keep track of which portions have been claimed by the
-     application; don't want to give the same region back when the
-     application wants two writable copies!  */
-  struct _bfd_window_internal *i;
-}
-bfd_window;
-
-extern void bfd_init_window
-  (bfd_window *);
-extern void bfd_free_window
-  (bfd_window *);
-extern bfd_boolean bfd_get_file_window
-  (bfd *, file_ptr, bfd_size_type, bfd_window *, bfd_boolean);
-
-/* Externally visible ELF routines.  */
-
-/* Create a new BFD as if by bfd_openr.  Rather than opening a file,
-   reconstruct an ELF file by reading the segments out of remote
-   memory based on the ELF file header at EHDR_VMA and the ELF program
-   headers it points to.  If non-zero, SIZE is the known extent of the
-   object.  If not null, *LOADBASEP is filled in with the difference
-   between the VMAs from which the segments were read, and the VMAs
-   the file headers (and hence BFD's idea of each section's VMA) put
-   them at.
-
-   The function TARGET_READ_MEMORY is called to copy LEN bytes from
-   the remote memory at target address VMA into the local buffer at
-   MYADDR; it should return zero on success or an `errno' code on
-   failure.  TEMPL must be a BFD for a target with the word size and
-   byte order found in the remote memory.  */
-extern bfd *bfd_elf_bfd_from_remote_memory
-  (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
-   int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr,
-			      bfd_size_type len));
-
-/* Forward declarations.  */
-struct ecoff_debug_info;
-struct ecoff_debug_swap;
-struct ecoff_extr;
-struct bfd_link_info;
-struct bfd_link_hash_entry;
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in2.h
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in2.h	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/binutils-2.36-new/bfd/bfd-in2.h	(nonexistent)
@@ -1,7932 +0,0 @@
-/* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically
-   generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
-   "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c",
-   "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",
-   "linker.c", "simple.c" and "compress.c".
-   Run "make headers" in your build bfd/ to regenerate.  */
-
-/* Main header file for the bfd library -- portable access to object files.
-
-   Copyright (C) 1990-2021 Free Software Foundation, Inc.
-
-   Contributed by Cygnus Support.
-
-   This file is part of BFD, the Binary File Descriptor library.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
-
-#ifndef __BFD_H_SEEN__
-#define __BFD_H_SEEN__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "ansidecl.h"
-#include "symcat.h"
-#include "bfd_stdint.h"
-#include "diagnostics.h"
-#include <stdarg.h>
-#include <sys/stat.h>
-
-#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
-#ifndef SABER
-/* This hack is to avoid a problem with some strict ANSI C preprocessors.
-   The problem is, "32_" is not a valid preprocessing token, and we don't
-   want extra underscores (e.g., "nlm_32_").  The XCONCAT2 macro will
-   cause the inner CONCAT2 macros to be evaluated first, producing
-   still-valid pp-tokens.  Then the final concatenation can be done.  */
-#undef CONCAT4
-#define CONCAT4(a,b,c,d) XCONCAT2(CONCAT2(a,b),CONCAT2(c,d))
-#endif
-#endif
-
-/* This is a utility macro to handle the situation where the code
-   wants to place a constant string into the code, followed by a
-   comma and then the length of the string.  Doing this by hand
-   is error prone, so using this macro is safer.  */
-#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
-/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
-   to create the arguments to another macro, since the preprocessor
-   will mis-count the number of arguments to the outer macro (by not
-   evaluating STRING_COMMA_LEN and so missing the comma).  This is a
-   problem for example when trying to use STRING_COMMA_LEN to build
-   the arguments to the strncmp() macro.  Hence this alternative
-   definition of strncmp is provided here.
-
-   Note - these macros do NOT work if STR2 is not a constant string.  */
-#define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
-  /* strcpy() can have a similar problem, but since we know we are
-     copying a constant string, we can use memcpy which will be faster
-     since there is no need to check for a NUL byte inside STR.  We
-     can also save time if we do not need to copy the terminating NUL.  */
-#define LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1)
-#define LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2))
-
-
-#define BFD_SUPPORTS_PLUGINS @supports_plugins@
-
-/* The word size used by BFD on the host.  This may be 64 with a 32
-   bit target if the host is 64 bit, or if other 64 bit targets have
-   been selected with --enable-targets, or if --enable-64-bit-bfd.  */
-#define BFD_ARCH_SIZE @wordsize@
-
-/* The word size of the default bfd target.  */
-#define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@
-
-#define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@
-#define BFD_HOST_64BIT_LONG_LONG @BFD_HOST_64BIT_LONG_LONG@
-#if @BFD_HOST_64_BIT_DEFINED@
-#define BFD_HOST_64_BIT @BFD_HOST_64_BIT@
-#define BFD_HOST_U_64_BIT @BFD_HOST_U_64_BIT@
-typedef BFD_HOST_64_BIT bfd_int64_t;
-typedef BFD_HOST_U_64_BIT bfd_uint64_t;
-#endif
-
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if BFD_HOST_64BIT_LONG
-#  define BFD_PRI64 "l"
-# elif defined (__MSVCRT__)
-#  define BFD_PRI64 "I64"
-# else
-#  define BFD_PRI64 "ll"
-# endif
-# undef PRId64
-# define PRId64 BFD_PRI64 "d"
-# undef PRIu64
-# define PRIu64 BFD_PRI64 "u"
-# undef PRIx64
-# define PRIx64 BFD_PRI64 "x"
-#endif
-
-#if BFD_ARCH_SIZE >= 64
-#define BFD64
-#endif
-
-#ifndef INLINE
-#if __GNUC__ >= 2
-#define INLINE __inline__
-#else
-#define INLINE
-#endif
-#endif
-
-/* Declaring a type wide enough to hold a host long and a host pointer.  */
-#define BFD_HOSTPTR_T @BFD_HOSTPTR_T@
-typedef BFD_HOSTPTR_T bfd_hostptr_t;
-
-/* Forward declaration.  */
-typedef struct bfd bfd;
-
-/* Boolean type used in bfd.  Too many systems define their own
-   versions of "boolean" for us to safely typedef a "boolean" of
-   our own.  Using an enum for "bfd_boolean" has its own set of
-   problems, with strange looking casts required to avoid warnings
-   on some older compilers.  Thus we just use an int.
-
-   General rule: Functions which are bfd_boolean return TRUE on
-   success and FALSE on failure (unless they're a predicate).  */
-
-typedef int bfd_boolean;
-#undef FALSE
-#undef TRUE
-#define FALSE 0
-#define TRUE 1
-
-#ifdef BFD64
-
-#ifndef BFD_HOST_64_BIT
- #error No 64 bit integer type available
-#endif /* ! defined (BFD_HOST_64_BIT) */
-
-typedef BFD_HOST_U_64_BIT bfd_vma;
-typedef BFD_HOST_64_BIT bfd_signed_vma;
-typedef BFD_HOST_U_64_BIT bfd_size_type;
-typedef BFD_HOST_U_64_BIT symvalue;
-
-#if BFD_HOST_64BIT_LONG
-#define BFD_VMA_FMT "l"
-#elif defined (__MSVCRT__)
-#define BFD_VMA_FMT "I64"
-#else
-#define BFD_VMA_FMT "ll"
-#endif
-
-#ifndef fprintf_vma
-#define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x)
-#define fprintf_vma(f,x) fprintf (f, "%016" BFD_VMA_FMT "x", x)
-#endif
-
-#else /* not BFD64  */
-
-/* Represent a target address.  Also used as a generic unsigned type
-   which is guaranteed to be big enough to hold any arithmetic types
-   we need to deal with.  */
-typedef unsigned long bfd_vma;
-
-/* A generic signed type which is guaranteed to be big enough to hold any
-   arithmetic types we need to deal with.  Can be assumed to be compatible
-   with bfd_vma in the same way that signed and unsigned ints are compatible
-   (as parameters, in assignment, etc).  */
-typedef long bfd_signed_vma;
-
-typedef unsigned long symvalue;
-typedef unsigned long bfd_size_type;
-
-/* Print a bfd_vma x on stream s.  */
-#define BFD_VMA_FMT "l"
-#define fprintf_vma(s,x) fprintf (s, "%08" BFD_VMA_FMT "x", x)
-#define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x)
-
-#endif /* not BFD64  */
-
-#define HALF_BFD_SIZE_TYPE \
-  (((bfd_size_type) 1) << (8 * sizeof (bfd_size_type) / 2))
-
-#ifndef BFD_HOST_64_BIT
-/* Fall back on a 32 bit type.  The idea is to make these types always
-   available for function return types, but in the case that
-   BFD_HOST_64_BIT is undefined such a function should abort or
-   otherwise signal an error.  */
-typedef bfd_signed_vma bfd_int64_t;
-typedef bfd_vma bfd_uint64_t;
-#endif
-
-/* An offset into a file.  BFD always uses the largest possible offset
-   based on the build time availability of fseek, fseeko, or fseeko64.  */
-typedef @bfd_file_ptr@ file_ptr;
-typedef unsigned @bfd_file_ptr@ ufile_ptr;
-
-extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
-extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
-
-#define printf_vma(x) fprintf_vma(stdout,x)
-#define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x)
-
-typedef unsigned int flagword;	/* 32 bits of flags */
-typedef unsigned char bfd_byte;
-
-/* File formats.  */
-
-typedef enum bfd_format
-{
-  bfd_unknown = 0,	/* File format is unknown.  */
-  bfd_object,		/* Linker/assembler/compiler output.  */
-  bfd_archive,		/* Object archive file.  */
-  bfd_core,		/* Core dump.  */
-  bfd_type_end		/* Marks the end; don't use it!  */
-}
-bfd_format;
-
-/* Symbols and relocation.  */
-
-/* A count of carsyms (canonical archive symbols).  */
-typedef unsigned long symindex;
-
-#define BFD_NO_MORE_SYMBOLS ((symindex) ~0)
-
-/* A canonical archive symbol.  */
-/* This is a type pun with struct ranlib on purpose!  */
-typedef struct carsym
-{
-  const char *name;
-  file_ptr file_offset;	/* Look here to find the file.  */
-}
-carsym;			/* To make these you call a carsymogen.  */
-
-/* Used in generating armaps (archive tables of contents).
-   Perhaps just a forward definition would do?  */
-struct orl		/* Output ranlib.  */
-{
-  char **name;		/* Symbol name.  */
-  union
-  {
-    file_ptr pos;
-    bfd *abfd;
-  } u;			/* bfd* or file position.  */
-  int namidx;		/* Index into string table.  */
-};
-
-/* Linenumber stuff.  */
-typedef struct lineno_cache_entry
-{
-  unsigned int line_number;	/* Linenumber from start of function.  */
-  union
-  {
-    struct bfd_symbol *sym;	/* Function name.  */
-    bfd_vma offset;		/* Offset into section.  */
-  } u;
-}
-alent;
-
-/* Object and core file sections.  */
-typedef struct bfd_section *sec_ptr;
-
-#define	align_power(addr, align)	\
-  (((addr) + ((bfd_vma) 1 << (align)) - 1) & (-((bfd_vma) 1 << (align))))
-
-/* Align an address upward to a boundary, expressed as a number of bytes.
-   E.g. align to an 8-byte boundary with argument of 8.  Take care never
-   to wrap around if the address is within boundary-1 of the end of the
-   address space.  */
-#define BFD_ALIGN(this, boundary)					  \
-  ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this))		  \
-   ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \
-   : ~ (bfd_vma) 0)
-
-typedef enum bfd_print_symbol
-{
-  bfd_print_symbol_name,
-  bfd_print_symbol_more,
-  bfd_print_symbol_all
-} bfd_print_symbol_type;
-
-/* Information about a symbol that nm needs.  */
-
-typedef struct _symbol_info
-{
-  symvalue value;
-  char type;
-  const char *name;		/* Symbol name.  */
-  unsigned char stab_type;	/* Stab type.  */
-  char stab_other;		/* Stab other.  */
-  short stab_desc;		/* Stab desc.  */
-  const char *stab_name;	/* String for stab type.  */
-} symbol_info;
-
-/* Get the name of a stabs type code.  */
-
-extern const char *bfd_get_stab_name (int);
-
-/* Hash table routines.  There is no way to free up a hash table.  */
-
-/* An element in the hash table.  Most uses will actually use a larger
-   structure, and an instance of this will be the first field.  */
-
-struct bfd_hash_entry
-{
-  /* Next entry for this hash code.  */
-  struct bfd_hash_entry *next;
-  /* String being hashed.  */
-  const char *string;
-  /* Hash code.  This is the full hash code, not the index into the
-     table.  */
-  unsigned long hash;
-};
-
-/* A hash table.  */
-
-struct bfd_hash_table
-{
-  /* The hash array.  */
-  struct bfd_hash_entry **table;
-  /* A function used to create new elements in the hash table.  The
-     first entry is itself a pointer to an element.  When this
-     function is first invoked, this pointer will be NULL.  However,
-     having the pointer permits a hierarchy of method functions to be
-     built each of which calls the function in the superclass.  Thus
-     each function should be written to allocate a new block of memory
-     only if the argument is NULL.  */
-  struct bfd_hash_entry *(*newfunc)
-    (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
-  /* An objalloc for this hash table.  This is a struct objalloc *,
-     but we use void * to avoid requiring the inclusion of objalloc.h.  */
-  void *memory;
-  /* The number of slots in the hash table.  */
-  unsigned int size;
-  /* The number of entries in the hash table.  */
-  unsigned int count;
-  /* The size of elements.  */
-  unsigned int entsize;
-  /* If non-zero, don't grow the hash table.  */
-  unsigned int frozen:1;
-};
-
-/* Initialize a hash table.  */
-extern bfd_boolean bfd_hash_table_init
-  (struct bfd_hash_table *,
-   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
-			       struct bfd_hash_table *,
-			       const char *),
-   unsigned int);
-
-/* Initialize a hash table specifying a size.  */
-extern bfd_boolean bfd_hash_table_init_n
-  (struct bfd_hash_table *,
-   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
-			       struct bfd_hash_table *,
-			       const char *),
-   unsigned int, unsigned int);
-
-/* Free up a hash table.  */
-extern void bfd_hash_table_free
-  (struct bfd_hash_table *);
-
-/* Look up a string in a hash table.  If CREATE is TRUE, a new entry
-   will be created for this string if one does not already exist.  The
-   COPY argument must be TRUE if this routine should copy the string
-   into newly allocated memory when adding an entry.  */
-extern struct bfd_hash_entry *bfd_hash_lookup
-  (struct bfd_hash_table *, const char *, bfd_boolean create,
-   bfd_boolean copy);
-
-/* Insert an entry in a hash table.  */
-extern struct bfd_hash_entry *bfd_hash_insert
-  (struct bfd_hash_table *, const char *, unsigned long);
-
-/* Rename an entry in a hash table.  */
-extern void bfd_hash_rename
-  (struct bfd_hash_table *, const char *, struct bfd_hash_entry *);
-
-/* Replace an entry in a hash table.  */
-extern void bfd_hash_replace
-  (struct bfd_hash_table *, struct bfd_hash_entry *old,
-   struct bfd_hash_entry *nw);
-
-/* Base method for creating a hash table entry.  */
-extern struct bfd_hash_entry *bfd_hash_newfunc
-  (struct bfd_hash_entry *, struct bfd_hash_table *, const char *);
-
-/* Grab some space for a hash table entry.  */
-extern void *bfd_hash_allocate
-  (struct bfd_hash_table *, unsigned int);
-
-/* Traverse a hash table in a random order, calling a function on each
-   element.  If the function returns FALSE, the traversal stops.  The
-   INFO argument is passed to the function.  */
-extern void bfd_hash_traverse
-  (struct bfd_hash_table *,
-   bfd_boolean (*) (struct bfd_hash_entry *, void *),
-   void *info);
-
-/* Allows the default size of a hash table to be configured. New hash
-   tables allocated using bfd_hash_table_init will be created with
-   this size.  */
-extern unsigned long bfd_hash_set_default_size (unsigned long);
-
-/* Types of compressed DWARF debug sections.  We currently support
-   zlib.  */
-enum compressed_debug_section_type
-{
-  COMPRESS_DEBUG_NONE = 0,
-  COMPRESS_DEBUG = 1 << 0,
-  COMPRESS_DEBUG_GNU_ZLIB = COMPRESS_DEBUG | 1 << 1,
-  COMPRESS_DEBUG_GABI_ZLIB = COMPRESS_DEBUG | 1 << 2
-};
-
-/* This structure is used to keep track of stabs in sections
-   information while linking.  */
-
-struct stab_info
-{
-  /* A hash table used to hold stabs strings.  */
-  struct bfd_strtab_hash *strings;
-  /* The header file hash table.  */
-  struct bfd_hash_table includes;
-  /* The first .stabstr section.  */
-  struct bfd_section *stabstr;
-};
-
-#define COFF_SWAP_TABLE (void *) &bfd_coff_std_swap_table
-
-/* User program access to BFD facilities.  */
-
-/* Direct I/O routines, for programs which know more about the object
-   file than BFD does.  Use higher level routines if possible.  */
-
-extern bfd_size_type bfd_bread (void *, bfd_size_type, bfd *);
-extern bfd_size_type bfd_bwrite (const void *, bfd_size_type, bfd *);
-extern int bfd_seek (bfd *, file_ptr, int);
-extern file_ptr bfd_tell (bfd *);
-extern int bfd_flush (bfd *);
-extern int bfd_stat (bfd *, struct stat *);
-
-/* Deprecated old routines.  */
-#if __GNUC__
-#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_read", __FILE__, __LINE__, __FUNCTION__),	\
-   bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_write", __FILE__, __LINE__, __FUNCTION__), \
-   bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#else
-#define bfd_read(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_read", (const char *) 0, 0, (const char *) 0), \
-   bfd_bread ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#define bfd_write(BUF, ELTSIZE, NITEMS, ABFD)				\
-  (_bfd_warn_deprecated ("bfd_write", (const char *) 0, 0, (const char *) 0),\
-   bfd_bwrite ((BUF), (ELTSIZE) * (NITEMS), (ABFD)))
-#endif
-extern void _bfd_warn_deprecated (const char *, const char *, int, const char *);
-
-extern bfd_boolean bfd_cache_close
-  (bfd *abfd);
-/* NB: This declaration should match the autogenerated one in libbfd.h.  */
-
-extern bfd_boolean bfd_cache_close_all (void);
-
-extern bfd_boolean bfd_record_phdr
-  (bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
-   bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
-
-/* Byte swapping routines.  */
-
-bfd_uint64_t bfd_getb64 (const void *);
-bfd_uint64_t bfd_getl64 (const void *);
-bfd_int64_t bfd_getb_signed_64 (const void *);
-bfd_int64_t bfd_getl_signed_64 (const void *);
-bfd_vma bfd_getb32 (const void *);
-bfd_vma bfd_getl32 (const void *);
-bfd_signed_vma bfd_getb_signed_32 (const void *);
-bfd_signed_vma bfd_getl_signed_32 (const void *);
-bfd_vma bfd_getb16 (const void *);
-bfd_vma bfd_getl16 (const void *);
-bfd_signed_vma bfd_getb_signed_16 (const void *);
-bfd_signed_vma bfd_getl_signed_16 (const void *);
-void bfd_putb64 (bfd_uint64_t, void *);
-void bfd_putl64 (bfd_uint64_t, void *);
-void bfd_putb32 (bfd_vma, void *);
-void bfd_putl32 (bfd_vma, void *);
-void bfd_putb24 (bfd_vma, void *);
-void bfd_putl24 (bfd_vma, void *);
-void bfd_putb16 (bfd_vma, void *);
-void bfd_putl16 (bfd_vma, void *);
-
-/* Byte swapping routines which take size and endiannes as arguments.  */
-
-bfd_uint64_t bfd_get_bits (const void *, int, bfd_boolean);
-void bfd_put_bits (bfd_uint64_t, void *, int, bfd_boolean);
-
-
-/* mmap hacks */
-
-struct _bfd_window_internal;
-typedef struct _bfd_window_internal bfd_window_internal;
-
-typedef struct _bfd_window
-{
-  /* What the user asked for.  */
-  void *data;
-  bfd_size_type size;
-  /* The actual window used by BFD.  Small user-requested read-only
-     regions sharing a page may share a single window into the object
-     file.  Read-write versions shouldn't until I've fixed things to
-     keep track of which portions have been claimed by the
-     application; don't want to give the same region back when the
-     application wants two writable copies!  */
-  struct _bfd_window_internal *i;
-}
-bfd_window;
-
-extern void bfd_init_window
-  (bfd_window *);
-extern void bfd_free_window
-  (bfd_window *);
-extern bfd_boolean bfd_get_file_window
-  (bfd *, file_ptr, bfd_size_type, bfd_window *, bfd_boolean);
-
-/* Externally visible ELF routines.  */
-
-/* Create a new BFD as if by bfd_openr.  Rather than opening a file,
-   reconstruct an ELF file by reading the segments out of remote
-   memory based on the ELF file header at EHDR_VMA and the ELF program
-   headers it points to.  If non-zero, SIZE is the known extent of the
-   object.  If not null, *LOADBASEP is filled in with the difference
-   between the VMAs from which the segments were read, and the VMAs
-   the file headers (and hence BFD's idea of each section's VMA) put
-   them at.
-
-   The function TARGET_READ_MEMORY is called to copy LEN bytes from
-   the remote memory at target address VMA into the local buffer at
-   MYADDR; it should return zero on success or an `errno' code on
-   failure.  TEMPL must be a BFD for a target with the word size and
-   byte order found in the remote memory.  */
-extern bfd *bfd_elf_bfd_from_remote_memory
-  (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep,
-   int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr,
-			      bfd_size_type len));
-
-/* Forward declarations.  */
-struct ecoff_debug_info;
-struct ecoff_debug_swap;
-struct ecoff_extr;
-struct bfd_link_info;
-struct bfd_link_hash_entry;
-/* Extracted from init.c.  */
-unsigned int bfd_init (void);
-
-
-/* Value returned by bfd_init.  */
-
-#define BFD_INIT_MAGIC (sizeof (struct bfd_section))
-/* Extracted from opncls.c.  */
-/* Set to N to open the next N BFDs using an alternate id space.  */
-extern unsigned int bfd_use_reserved_id;
-bfd *bfd_fopen (const char *filename, const char *target,
-    const char *mode, int fd);
-
-bfd *bfd_openr (const char *filename, const char *target);
-
-bfd *bfd_fdopenr (const char *filename, const char *target, int fd);
-
-bfd *bfd_fdopenw (const char *filename, const char *target, int fd);
-
-bfd *bfd_openstreamr (const char * filename, const char * target,
-    void * stream);
-
-bfd *bfd_openr_iovec (const char *filename, const char *target,
-    void *(*open_func) (struct bfd *nbfd,
-    void *open_closure),
-    void *open_closure,
-    file_ptr (*pread_func) (struct bfd *nbfd,
-    void *stream,
-    void *buf,
-    file_ptr nbytes,
-    file_ptr offset),
-    int (*close_func) (struct bfd *nbfd,
-    void *stream),
-    int (*stat_func) (struct bfd *abfd,
-    void *stream,
-    struct stat *sb));
-
-bfd *bfd_openw (const char *filename, const char *target);
-
-bfd_boolean bfd_close (bfd *abfd);
-
-bfd_boolean bfd_close_all_done (bfd *);
-
-bfd *bfd_create (const char *filename, bfd *templ);
-
-bfd_boolean bfd_make_writable (bfd *abfd);
-
-bfd_boolean bfd_make_readable (bfd *abfd);
-
-void *bfd_alloc (bfd *abfd, bfd_size_type wanted);
-
-void *bfd_zalloc (bfd *abfd, bfd_size_type wanted);
-
-unsigned long bfd_calc_gnu_debuglink_crc32
-   (unsigned long crc, const unsigned char *buf, bfd_size_type len);
-
-char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out);
-
-char *bfd_get_alt_debug_link_info (bfd * abfd,
-    bfd_size_type *buildid_len,
-    bfd_byte **buildid_out);
-
-char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
-
-char *bfd_follow_gnu_debugaltlink (bfd *abfd, const char *dir);
-
-struct bfd_section *bfd_create_gnu_debuglink_section
-   (bfd *abfd, const char *filename);
-
-bfd_boolean bfd_fill_in_gnu_debuglink_section
-   (bfd *abfd, struct bfd_section *sect, const char *filename);
-
-char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir);
-
-const char *bfd_set_filename (bfd *abfd, const char *filename);
-
-/* Extracted from libbfd.c.  */
-
-/* Byte swapping macros for user section data.  */
-
-#define bfd_put_8(abfd, val, ptr) \
-  ((void) (*((unsigned char *) (ptr)) = (val) & 0xff))
-#define bfd_put_signed_8 \
-  bfd_put_8
-#define bfd_get_8(abfd, ptr) \
-  ((bfd_vma) *(const unsigned char *) (ptr) & 0xff)
-#define bfd_get_signed_8(abfd, ptr) \
-  ((((bfd_signed_vma) *(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80)
-
-#define bfd_put_16(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_putx16, ((val),(ptr)))
-#define bfd_put_signed_16 \
-  bfd_put_16
-#define bfd_get_16(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx16, (ptr))
-#define bfd_get_signed_16(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx_signed_16, (ptr))
-
-#define bfd_put_24(abfd, val, ptr) \
-  do                                   \
-    if (bfd_big_endian (abfd))         \
-      bfd_putb24 ((val), (ptr));       \
-    else                               \
-      bfd_putl24 ((val), (ptr));       \
-  while (0)
-
-bfd_vma bfd_getb24 (const void *p);
-bfd_vma bfd_getl24 (const void *p);
-
-#define bfd_get_24(abfd, ptr) \
-  (bfd_big_endian (abfd) ? bfd_getb24 (ptr) : bfd_getl24 (ptr))
-
-#define bfd_put_32(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_putx32, ((val),(ptr)))
-#define bfd_put_signed_32 \
-  bfd_put_32
-#define bfd_get_32(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx32, (ptr))
-#define bfd_get_signed_32(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx_signed_32, (ptr))
-
-#define bfd_put_64(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_putx64, ((val), (ptr)))
-#define bfd_put_signed_64 \
-  bfd_put_64
-#define bfd_get_64(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx64, (ptr))
-#define bfd_get_signed_64(abfd, ptr) \
-  BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
-
-#define bfd_get(bits, abfd, ptr)                       \
-  ((bits) == 8 ? bfd_get_8 (abfd, ptr)                 \
-   : (bits) == 16 ? bfd_get_16 (abfd, ptr)             \
-   : (bits) == 32 ? bfd_get_32 (abfd, ptr)             \
-   : (bits) == 64 ? bfd_get_64 (abfd, ptr)             \
-   : (abort (), (bfd_vma) - 1))
-
-#define bfd_put(bits, abfd, val, ptr)                  \
-  ((bits) == 8 ? bfd_put_8  (abfd, val, ptr)           \
-   : (bits) == 16 ? bfd_put_16 (abfd, val, ptr)        \
-   : (bits) == 32 ? bfd_put_32 (abfd, val, ptr)        \
-   : (bits) == 64 ? bfd_put_64 (abfd, val, ptr)        \
-   : (abort (), (void) 0))
-
-
-/* Byte swapping macros for file header data.  */
-
-#define bfd_h_put_8(abfd, val, ptr) \
-  bfd_put_8 (abfd, val, ptr)
-#define bfd_h_put_signed_8(abfd, val, ptr) \
-  bfd_put_8 (abfd, val, ptr)
-#define bfd_h_get_8(abfd, ptr) \
-  bfd_get_8 (abfd, ptr)
-#define bfd_h_get_signed_8(abfd, ptr) \
-  bfd_get_signed_8 (abfd, ptr)
-
-#define bfd_h_put_16(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_h_putx16, (val, ptr))
-#define bfd_h_put_signed_16 \
-  bfd_h_put_16
-#define bfd_h_get_16(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx16, (ptr))
-#define bfd_h_get_signed_16(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx_signed_16, (ptr))
-
-#define bfd_h_put_32(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_h_putx32, (val, ptr))
-#define bfd_h_put_signed_32 \
-  bfd_h_put_32
-#define bfd_h_get_32(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx32, (ptr))
-#define bfd_h_get_signed_32(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx_signed_32, (ptr))
-
-#define bfd_h_put_64(abfd, val, ptr) \
-  BFD_SEND (abfd, bfd_h_putx64, (val, ptr))
-#define bfd_h_put_signed_64 \
-  bfd_h_put_64
-#define bfd_h_get_64(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx64, (ptr))
-#define bfd_h_get_signed_64(abfd, ptr) \
-  BFD_SEND (abfd, bfd_h_getx_signed_64, (ptr))
-
-/* Aliases for the above, which should eventually go away.  */
-
-#define H_PUT_64  bfd_h_put_64
-#define H_PUT_32  bfd_h_put_32
-#define H_PUT_16  bfd_h_put_16
-#define H_PUT_8   bfd_h_put_8
-#define H_PUT_S64 bfd_h_put_signed_64
-#define H_PUT_S32 bfd_h_put_signed_32
-#define H_PUT_S16 bfd_h_put_signed_16
-#define H_PUT_S8  bfd_h_put_signed_8
-#define H_GET_64  bfd_h_get_64
-#define H_GET_32  bfd_h_get_32
-#define H_GET_16  bfd_h_get_16
-#define H_GET_8   bfd_h_get_8
-#define H_GET_S64 bfd_h_get_signed_64
-#define H_GET_S32 bfd_h_get_signed_32
-#define H_GET_S16 bfd_h_get_signed_16
-#define H_GET_S8  bfd_h_get_signed_8
-
-
-/* Extracted from bfdio.c.  */
-long bfd_get_mtime (bfd *abfd);
-
-ufile_ptr bfd_get_size (bfd *abfd);
-
-ufile_ptr bfd_get_file_size (bfd *abfd);
-
-void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
-    int prot, int flags, file_ptr offset,
-    void **map_addr, bfd_size_type *map_len);
-
-/* Extracted from bfdwin.c.  */
-/* Extracted from section.c.  */
-
-typedef struct bfd_section
-{
-  /* The name of the section; the name isn't a copy, the pointer is
-     the same as that passed to bfd_make_section.  */
-  const char *name;
-
-  /* A unique sequence number.  */
-  unsigned int id;
-
-  /* A unique section number which can be used by assembler to
-     distinguish different sections with the same section name.  */
-  unsigned int section_id;
-
-  /* Which section in the bfd; 0..n-1 as sections are created in a bfd.  */
-  unsigned int index;
-
-  /* The next section in the list belonging to the BFD, or NULL.  */
-  struct bfd_section *next;
-
-  /* The previous section in the list belonging to the BFD, or NULL.  */
-  struct bfd_section *prev;
-
-  /* The field flags contains attributes of the section. Some
-     flags are read in from the object file, and some are
-     synthesized from other information.  */
-  flagword flags;
-
-#define SEC_NO_FLAGS                      0x0
-
-  /* Tells the OS to allocate space for this section when loading.
-     This is clear for a section containing debug information only.  */
-#define SEC_ALLOC                         0x1
-
-  /* Tells the OS to load the section from the file when loading.
-     This is clear for a .bss section.  */
-#define SEC_LOAD                          0x2
-
-  /* The section contains data still to be relocated, so there is
-     some relocation information too.  */
-#define SEC_RELOC                         0x4
-
-  /* A signal to the OS that the section contains read only data.  */
-#define SEC_READONLY                      0x8
-
-  /* The section contains code only.  */
-#define SEC_CODE                         0x10
-
-  /* The section contains data only.  */
-#define SEC_DATA                         0x20
-
-  /* The section will reside in ROM.  */
-#define SEC_ROM                          0x40
-
-  /* The section contains constructor information. This section
-     type is used by the linker to create lists of constructors and
-     destructors used by <<g++>>. When a back end sees a symbol
-     which should be used in a constructor list, it creates a new
-     section for the type of name (e.g., <<__CTOR_LIST__>>), attaches
-     the symbol to it, and builds a relocation. To build the lists
-     of constructors, all the linker has to do is catenate all the
-     sections called <<__CTOR_LIST__>> and relocate the data
-     contained within - exactly the operations it would peform on
-     standard data.  */
-#define SEC_CONSTRUCTOR                  0x80
-
-  /* The section has contents - a data section could be
-     <<SEC_ALLOC>> | <<SEC_HAS_CONTENTS>>; a debug section could be
-     <<SEC_HAS_CONTENTS>>  */
-#define SEC_HAS_CONTENTS                0x100
-
-  /* An instruction to the linker to not output the section
-     even if it has information which would normally be written.  */
-#define SEC_NEVER_LOAD                  0x200
-
-  /* The section contains thread local data.  */
-#define SEC_THREAD_LOCAL                0x400
-
-  /* The section's size is fixed.  Generic linker code will not
-     recalculate it and it is up to whoever has set this flag to
-     get the size right.  */
-#define SEC_FIXED_SIZE                  0x800
-
-  /* The section contains common symbols (symbols may be defined
-     multiple times, the value of a symbol is the amount of
-     space it requires, and the largest symbol value is the one
-     used).  Most targets have exactly one of these (which we
-     translate to bfd_com_section_ptr), but ECOFF has two.  */
-#define SEC_IS_COMMON                  0x1000
-
-  /* The section contains only debugging information.  For
-     example, this is set for ELF .debug and .stab sections.
-     strip tests this flag to see if a section can be
-     discarded.  */
-#define SEC_DEBUGGING                  0x2000
-
-  /* The contents of this section are held in memory pointed to
-     by the contents field.  This is checked by bfd_get_section_contents,
-     and the data is retrieved from memory if appropriate.  */
-#define SEC_IN_MEMORY                  0x4000
-
-  /* The contents of this section are to be excluded by the
-     linker for executable and shared objects unless those
-     objects are to be further relocated.  */
-#define SEC_EXCLUDE                    0x8000
-
-  /* The contents of this section are to be sorted based on the sum of
-     the symbol and addend values specified by the associated relocation
-     entries.  Entries without associated relocation entries will be
-     appended to the end of the section in an unspecified order.  */
-#define SEC_SORT_ENTRIES              0x10000
-
-  /* When linking, duplicate sections of the same name should be
-     discarded, rather than being combined into a single section as
-     is usually done.  This is similar to how common symbols are
-     handled.  See SEC_LINK_DUPLICATES below.  */
-#define SEC_LINK_ONCE                 0x20000
-
-  /* If SEC_LINK_ONCE is set, this bitfield describes how the linker
-     should handle duplicate sections.  */
-#define SEC_LINK_DUPLICATES           0xc0000
-
-  /* This value for SEC_LINK_DUPLICATES means that duplicate
-     sections with the same name should simply be discarded.  */
-#define SEC_LINK_DUPLICATES_DISCARD       0x0
-
-  /* This value for SEC_LINK_DUPLICATES means that the linker
-     should warn if there are any duplicate sections, although
-     it should still only link one copy.  */
-#define SEC_LINK_DUPLICATES_ONE_ONLY  0x40000
-
-  /* This value for SEC_LINK_DUPLICATES means that the linker
-     should warn if any duplicate sections are a different size.  */
-#define SEC_LINK_DUPLICATES_SAME_SIZE 0x80000
-
-  /* This value for SEC_LINK_DUPLICATES means that the linker
-     should warn if any duplicate sections contain different
-     contents.  */
-#define SEC_LINK_DUPLICATES_SAME_CONTENTS \
-  (SEC_LINK_DUPLICATES_ONE_ONLY | SEC_LINK_DUPLICATES_SAME_SIZE)
-
-  /* This section was created by the linker as part of dynamic
-     relocation or other arcane processing.  It is skipped when
-     going through the first-pass output, trusting that someone
-     else up the line will take care of it later.  */
-#define SEC_LINKER_CREATED           0x100000
-
-  /* This section contains a section ID to distinguish different
-     sections with the same section name.  */
-#define SEC_ASSEMBLER_SECTION_ID     0x100000
-
-  /* This section should not be subject to garbage collection.
-     Also set to inform the linker that this section should not be
-     listed in the link map as discarded.  */
-#define SEC_KEEP                     0x200000
-
-  /* This section contains "short" data, and should be placed
-     "near" the GP.  */
-#define SEC_SMALL_DATA               0x400000
-
-  /* Attempt to merge identical entities in the section.
-     Entity size is given in the entsize field.  */
-#define SEC_MERGE                    0x800000
-
-  /* If given with SEC_MERGE, entities to merge are zero terminated
-     strings where entsize specifies character size instead of fixed
-     size entries.  */
-#define SEC_STRINGS                 0x1000000
-
-  /* This section contains data about section groups.  */
-#define SEC_GROUP                   0x2000000
-
-  /* The section is a COFF shared library section.  This flag is
-     only for the linker.  If this type of section appears in
-     the input file, the linker must copy it to the output file
-     without changing the vma or size.  FIXME: Although this
-     was originally intended to be general, it really is COFF
-     specific (and the flag was renamed to indicate this).  It
-     might be cleaner to have some more general mechanism to
-     allow the back end to control what the linker does with
-     sections.  */
-#define SEC_COFF_SHARED_LIBRARY     0x4000000
-
-  /* This input section should be copied to output in reverse order
-     as an array of pointers.  This is for ELF linker internal use
-     only.  */
-#define SEC_ELF_REVERSE_COPY        0x4000000
-
-  /* This section contains data which may be shared with other
-     executables or shared objects. This is for COFF only.  */
-#define SEC_COFF_SHARED             0x8000000
-
-  /* This section should be compressed.  This is for ELF linker
-     internal use only.  */
-#define SEC_ELF_COMPRESS            0x8000000
-
-  /* When a section with this flag is being linked, then if the size of
-     the input section is less than a page, it should not cross a page
-     boundary.  If the size of the input section is one page or more,
-     it should be aligned on a page boundary.  This is for TI
-     TMS320C54X only.  */
-#define SEC_TIC54X_BLOCK           0x10000000
-
-  /* This section should be renamed.  This is for ELF linker
-     internal use only.  */
-#define SEC_ELF_RENAME             0x10000000
-
-  /* Conditionally link this section; do not link if there are no
-     references found to any symbol in the section.  This is for TI
-     TMS320C54X only.  */
-#define SEC_TIC54X_CLINK           0x20000000
-
-  /* This section contains vliw code.  This is for Toshiba MeP only.  */
-#define SEC_MEP_VLIW               0x20000000
-
-  /* All symbols, sizes and relocations in this section are octets
-     instead of bytes.  Required for DWARF debug sections as DWARF
-     information is organized in octets, not bytes.  */
-#define SEC_ELF_OCTETS             0x40000000
-
-  /* Indicate that section has the no read flag set. This happens
-     when memory read flag isn't set. */
-#define SEC_COFF_NOREAD            0x40000000
-
-  /* Indicate that section has the purecode flag set.  */
-#define SEC_ELF_PURECODE           0x80000000
-
-  /*  End of section flags.  */
-
-  /* Some internal packed boolean fields.  */
-
-  /* See the vma field.  */
-  unsigned int user_set_vma : 1;
-
-  /* A mark flag used by some of the linker backends.  */
-  unsigned int linker_mark : 1;
-
-  /* Another mark flag used by some of the linker backends.  Set for
-     output sections that have an input section.  */
-  unsigned int linker_has_input : 1;
-
-  /* Mark flag used by some linker backends for garbage collection.  */
-  unsigned int gc_mark : 1;
-
-  /* Section compression status.  */
-  unsigned int compress_status : 2;
-#define COMPRESS_SECTION_NONE    0
-#define COMPRESS_SECTION_DONE    1
-#define DECOMPRESS_SECTION_SIZED 2
-
-  /* The following flags are used by the ELF linker. */
-
-  /* Mark sections which have been allocated to segments.  */
-  unsigned int segment_mark : 1;
-
-  /* Type of sec_info information.  */
-  unsigned int sec_info_type:3;
-#define SEC_INFO_TYPE_NONE      0
-#define SEC_INFO_TYPE_STABS     1
-#define SEC_INFO_TYPE_MERGE     2
-#define SEC_INFO_TYPE_EH_FRAME  3
-#define SEC_INFO_TYPE_JUST_SYMS 4
-#define SEC_INFO_TYPE_TARGET    5
-#define SEC_INFO_TYPE_EH_FRAME_ENTRY 6
-
-  /* Nonzero if this section uses RELA relocations, rather than REL.  */
-  unsigned int use_rela_p:1;
-
-  /* Bits used by various backends.  The generic code doesn't touch
-     these fields.  */
-
-  unsigned int sec_flg0:1;
-  unsigned int sec_flg1:1;
-  unsigned int sec_flg2:1;
-  unsigned int sec_flg3:1;
-  unsigned int sec_flg4:1;
-  unsigned int sec_flg5:1;
-
-  /* End of internal packed boolean fields.  */
-
-  /*  The virtual memory address of the section - where it will be
-      at run time.  The symbols are relocated against this.  The
-      user_set_vma flag is maintained by bfd; if it's not set, the
-      backend can assign addresses (for example, in <<a.out>>, where
-      the default address for <<.data>> is dependent on the specific
-      target and various flags).  */
-  bfd_vma vma;
-
-  /*  The load address of the section - where it would be in a
-      rom image; really only used for writing section header
-      information.  */
-  bfd_vma lma;
-
-  /* The size of the section in *octets*, as it will be output.
-     Contains a value even if the section has no contents (e.g., the
-     size of <<.bss>>).  */
-  bfd_size_type size;
-
-  /* For input sections, the original size on disk of the section, in
-     octets.  This field should be set for any section whose size is
-     changed by linker relaxation.  It is required for sections where
-     the linker relaxation scheme doesn't cache altered section and
-     reloc contents (stabs, eh_frame, SEC_MERGE, some coff relaxing
-     targets), and thus the original size needs to be kept to read the
-     section multiple times.  For output sections, rawsize holds the
-     section size calculated on a previous linker relaxation pass.  */
-  bfd_size_type rawsize;
-
-  /* The compressed size of the section in octets.  */
-  bfd_size_type compressed_size;
-
-  /* Relaxation table. */
-  struct relax_table *relax;
-
-  /* Count of used relaxation table entries. */
-  int relax_count;
-
-
-  /* If this section is going to be output, then this value is the
-     offset in *bytes* into the output section of the first byte in the
-     input section (byte ==> smallest addressable unit on the
-     target).  In most cases, if this was going to start at the
-     100th octet (8-bit quantity) in the output section, this value
-     would be 100.  However, if the target byte size is 16 bits
-     (bfd_octets_per_byte is "2"), this value would be 50.  */
-  bfd_vma output_offset;
-
-  /* The output section through which to map on output.  */
-  struct bfd_section *output_section;
-
-  /* The alignment requirement of the section, as an exponent of 2 -
-     e.g., 3 aligns to 2^3 (or 8).  */
-  unsigned int alignment_power;
-
-  /* If an input section, a pointer to a vector of relocation
-     records for the data in this section.  */
-  struct reloc_cache_entry *relocation;
-
-  /* If an output section, a pointer to a vector of pointers to
-     relocation records for the data in this section.  */
-  struct reloc_cache_entry **orelocation;
-
-  /* The number of relocation records in one of the above.  */
-  unsigned reloc_count;
-
-  /* Information below is back end specific - and not always used
-     or updated.  */
-
-  /* File position of section data.  */
-  file_ptr filepos;
-
-  /* File position of relocation info.  */
-  file_ptr rel_filepos;
-
-  /* File position of line data.  */
-  file_ptr line_filepos;
-
-  /* Pointer to data for applications.  */
-  void *userdata;
-
-  /* If the SEC_IN_MEMORY flag is set, this points to the actual
-     contents.  */
-  unsigned char *contents;
-
-  /* Attached line number information.  */
-  alent *lineno;
-
-  /* Number of line number records.  */
-  unsigned int lineno_count;
-
-  /* Entity size for merging purposes.  */
-  unsigned int entsize;
-
-  /* Points to the kept section if this section is a link-once section,
-     and is discarded.  */
-  struct bfd_section *kept_section;
-
-  /* When a section is being output, this value changes as more
-     linenumbers are written out.  */
-  file_ptr moving_line_filepos;
-
-  /* What the section number is in the target world.  */
-  int target_index;
-
-  void *used_by_bfd;
-
-  /* If this is a constructor section then here is a list of the
-     relocations created to relocate items within it.  */
-  struct relent_chain *constructor_chain;
-
-  /* The BFD which owns the section.  */
-  bfd *owner;
-
-  /* A symbol which points at this section only.  */
-  struct bfd_symbol *symbol;
-  struct bfd_symbol **symbol_ptr_ptr;
-
-  /* The matching section name pattern in linker script.  */
-  const char *pattern;
-
-  /* Early in the link process, map_head and map_tail are used to build
-     a list of input sections attached to an output section.  Later,
-     output sections use these fields for a list of bfd_link_order
-     structs.  The linked_to_symbol_name field is for ELF assembler
-     internal use.  */
-  union {
-    struct bfd_link_order *link_order;
-    struct bfd_section *s;
-    const char *linked_to_symbol_name;
-  } map_head, map_tail;
- /* Points to the output section this section is already assigned to, if any.
-    This is used when support for non-contiguous memory regions is enabled.  */
- struct bfd_section *already_assigned;
-
-} asection;
-
-/* Relax table contains information about instructions which can
-   be removed by relaxation -- replacing a long address with a
-   short address.  */
-struct relax_table {
-  /* Address where bytes may be deleted. */
-  bfd_vma addr;
-
-  /* Number of bytes to be deleted.  */
-  int size;
-};
-
-static inline const char *
-bfd_section_name (const asection *sec)
-{
-  return sec->name;
-}
-
-static inline bfd_size_type
-bfd_section_size (const asection *sec)
-{
-  return sec->size;
-}
-
-static inline bfd_vma
-bfd_section_vma (const asection *sec)
-{
-  return sec->vma;
-}
-
-static inline bfd_vma
-bfd_section_lma (const asection *sec)
-{
-  return sec->lma;
-}
-
-static inline unsigned int
-bfd_section_alignment (const asection *sec)
-{
-  return sec->alignment_power;
-}
-
-static inline flagword
-bfd_section_flags (const asection *sec)
-{
-  return sec->flags;
-}
-
-static inline void *
-bfd_section_userdata (const asection *sec)
-{
-  return sec->userdata;
-}
-static inline bfd_boolean
-bfd_is_com_section (const asection *sec)
-{
-  return (sec->flags & SEC_IS_COMMON) != 0;
-}
-
-/* Note: the following are provided as inline functions rather than macros
-   because not all callers use the return value.  A macro implementation
-   would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some
-   compilers will complain about comma expressions that have no effect.  */
-static inline bfd_boolean
-bfd_set_section_userdata (asection *sec, void *val)
-{
-  sec->userdata = val;
-  return TRUE;
-}
-
-static inline bfd_boolean
-bfd_set_section_vma (asection *sec, bfd_vma val)
-{
-  sec->vma = sec->lma = val;
-  sec->user_set_vma = TRUE;
-  return TRUE;
-}
-
-static inline bfd_boolean
-bfd_set_section_lma (asection *sec, bfd_vma val)
-{
-  sec->lma = val;
-  return TRUE;
-}
-
-static inline bfd_boolean
-bfd_set_section_alignment (asection *sec, unsigned int val)
-{
-  sec->alignment_power = val;
-  return TRUE;
-}
-
-/* These sections are global, and are managed by BFD.  The application
-   and target back end are not permitted to change the values in
-   these sections.  */
-extern asection _bfd_std_section[4];
-
-#define BFD_ABS_SECTION_NAME "*ABS*"
-#define BFD_UND_SECTION_NAME "*UND*"
-#define BFD_COM_SECTION_NAME "*COM*"
-#define BFD_IND_SECTION_NAME "*IND*"
-
-/* Pointer to the common section.  */
-#define bfd_com_section_ptr (&_bfd_std_section[0])
-/* Pointer to the undefined section.  */
-#define bfd_und_section_ptr (&_bfd_std_section[1])
-/* Pointer to the absolute section.  */
-#define bfd_abs_section_ptr (&_bfd_std_section[2])
-/* Pointer to the indirect section.  */
-#define bfd_ind_section_ptr (&_bfd_std_section[3])
-
-static inline bfd_boolean
-bfd_is_und_section (const asection *sec)
-{
-  return sec == bfd_und_section_ptr;
-}
-
-static inline bfd_boolean
-bfd_is_abs_section (const asection *sec)
-{
-  return sec == bfd_abs_section_ptr;
-}
-
-static inline bfd_boolean
-bfd_is_ind_section (const asection *sec)
-{
-  return sec == bfd_ind_section_ptr;
-}
-
-static inline bfd_boolean
-bfd_is_const_section (const asection *sec)
-{
-  return (sec >= _bfd_std_section
-          && sec < _bfd_std_section + (sizeof (_bfd_std_section)
-                                       / sizeof (_bfd_std_section[0])));
-}
-
-/* Return TRUE if input section SEC has been discarded.  */
-static inline bfd_boolean
-discarded_section (const asection *sec)
-{
-  return (!bfd_is_abs_section (sec)
-          && bfd_is_abs_section (sec->output_section)
-          && sec->sec_info_type != SEC_INFO_TYPE_MERGE
-          && sec->sec_info_type != SEC_INFO_TYPE_JUST_SYMS);
-}
-
-#define BFD_FAKE_SECTION(SEC, SYM, NAME, IDX, FLAGS)                   \
-  /* name, id,  section_id, index, next, prev, flags, user_set_vma, */ \
-  {  NAME, IDX, 0,          0,     NULL, NULL, FLAGS, 0,               \
-                                                                       \
-  /* linker_mark, linker_has_input, gc_mark, decompress_status,     */ \
-     0,           0,                1,       0,                        \
-                                                                       \
-  /* segment_mark, sec_info_type, use_rela_p,                       */ \
-     0,            0,             0,                                   \
-                                                                       \
-  /* sec_flg0, sec_flg1, sec_flg2, sec_flg3, sec_flg4, sec_flg5,    */ \
-     0,        0,        0,        0,        0,        0,              \
-                                                                       \
-  /* vma, lma, size, rawsize, compressed_size, relax, relax_count,  */ \
-     0,   0,   0,    0,       0,               0,     0,               \
-                                                                       \
-  /* output_offset, output_section, alignment_power,                */ \
-     0,             &SEC,           0,                                 \
-                                                                       \
-  /* relocation, orelocation, reloc_count, filepos, rel_filepos,    */ \
-     NULL,       NULL,        0,           0,       0,                 \
-                                                                       \
-  /* line_filepos, userdata, contents, lineno, lineno_count,        */ \
-     0,            NULL,     NULL,     NULL,   0,                      \
-                                                                       \
-  /* entsize, kept_section, moving_line_filepos,                    */ \
-     0,       NULL,         0,                                         \
-                                                                       \
-  /* target_index, used_by_bfd, constructor_chain, owner,           */ \
-     0,            NULL,        NULL,              NULL,               \
-                                                                       \
-  /* symbol,                    symbol_ptr_ptr, pattern,            */ \
-     (struct bfd_symbol *) SYM, &SEC.symbol,    NULL,                  \
-                                                                       \
-  /* map_head, map_tail, already_assigned                           */ \
-     { NULL }, { NULL }, NULL                                          \
-                                                                       \
-    }
-
-/* We use a macro to initialize the static asymbol structures because
-   traditional C does not permit us to initialize a union member while
-   gcc warns if we don't initialize it.
-   the_bfd, name, value, attr, section [, udata]  */
-#ifdef __STDC__
-#define GLOBAL_SYM_INIT(NAME, SECTION) \
-  { 0, NAME, 0, BSF_SECTION_SYM, SECTION, { 0 }}
-#else
-#define GLOBAL_SYM_INIT(NAME, SECTION) \
-  { 0, NAME, 0, BSF_SECTION_SYM, SECTION }
-#endif
-
-void bfd_section_list_clear (bfd *);
-
-asection *bfd_get_section_by_name (bfd *abfd, const char *name);
-
-asection *bfd_get_next_section_by_name (bfd *ibfd, asection *sec);
-
-asection *bfd_get_linker_section (bfd *abfd, const char *name);
-
-asection *bfd_get_section_by_name_if
-   (bfd *abfd,
-    const char *name,
-    bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
-    void *obj);
-
-char *bfd_get_unique_section_name
-   (bfd *abfd, const char *templat, int *count);
-
-asection *bfd_make_section_old_way (bfd *abfd, const char *name);
-
-asection *bfd_make_section_anyway_with_flags
-   (bfd *abfd, const char *name, flagword flags);
-
-asection *bfd_make_section_anyway (bfd *abfd, const char *name);
-
-asection *bfd_make_section_with_flags
-   (bfd *, const char *name, flagword flags);
-
-asection *bfd_make_section (bfd *, const char *name);
-
-bfd_boolean bfd_set_section_flags (asection *sec, flagword flags);
-
-void bfd_rename_section
-   (asection *sec, const char *newname);
-
-void bfd_map_over_sections
-   (bfd *abfd,
-    void (*func) (bfd *abfd, asection *sect, void *obj),
-    void *obj);
-
-asection *bfd_sections_find_if
-   (bfd *abfd,
-    bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
-    void *obj);
-
-bfd_boolean bfd_set_section_size (asection *sec, bfd_size_type val);
-
-bfd_boolean bfd_set_section_contents
-   (bfd *abfd, asection *section, const void *data,
-    file_ptr offset, bfd_size_type count);
-
-bfd_boolean bfd_get_section_contents
-   (bfd *abfd, asection *section, void *location, file_ptr offset,
-    bfd_size_type count);
-
-bfd_boolean bfd_malloc_and_get_section
-   (bfd *abfd, asection *section, bfd_byte **buf);
-
-bfd_boolean bfd_copy_private_section_data
-   (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
-
-#define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
-       BFD_SEND (obfd, _bfd_copy_private_section_data, \
-                 (ibfd, isection, obfd, osection))
-bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
-
-const char *bfd_generic_group_name (bfd *, const asection *sec);
-
-bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
-
-/* Extracted from archures.c.  */
-enum bfd_architecture
-{
-  bfd_arch_unknown,   /* File arch not known.  */
-  bfd_arch_obscure,   /* Arch known, not one of these.  */
-  bfd_arch_m68k,      /* Motorola 68xxx.  */
-#define bfd_mach_m68000                1
-#define bfd_mach_m68008                2
-#define bfd_mach_m68010                3
-#define bfd_mach_m68020                4
-#define bfd_mach_m68030                5
-#define bfd_mach_m68040                6
-#define bfd_mach_m68060                7
-#define bfd_mach_cpu32                 8
-#define bfd_mach_fido                  9
-#define bfd_mach_mcf_isa_a_nodiv       10
-#define bfd_mach_mcf_isa_a             11
-#define bfd_mach_mcf_isa_a_mac         12
-#define bfd_mach_mcf_isa_a_emac        13
-#define bfd_mach_mcf_isa_aplus         14
-#define bfd_mach_mcf_isa_aplus_mac     15
-#define bfd_mach_mcf_isa_aplus_emac    16
-#define bfd_mach_mcf_isa_b_nousp       17
-#define bfd_mach_mcf_isa_b_nousp_mac   18
-#define bfd_mach_mcf_isa_b_nousp_emac  19
-#define bfd_mach_mcf_isa_b             20
-#define bfd_mach_mcf_isa_b_mac         21
-#define bfd_mach_mcf_isa_b_emac        22
-#define bfd_mach_mcf_isa_b_float       23
-#define bfd_mach_mcf_isa_b_float_mac   24
-#define bfd_mach_mcf_isa_b_float_emac  25
-#define bfd_mach_mcf_isa_c             26
-#define bfd_mach_mcf_isa_c_mac         27
-#define bfd_mach_mcf_isa_c_emac        28
-#define bfd_mach_mcf_isa_c_nodiv       29
-#define bfd_mach_mcf_isa_c_nodiv_mac   30
-#define bfd_mach_mcf_isa_c_nodiv_emac  31
-  bfd_arch_vax,       /* DEC Vax.  */
-
-  bfd_arch_or1k,      /* OpenRISC 1000.  */
-#define bfd_mach_or1k          1
-#define bfd_mach_or1knd        2
-
-  bfd_arch_sparc,     /* SPARC.  */
-#define bfd_mach_sparc                 1
-/* The difference between v8plus and v9 is that v9 is a true 64 bit env.  */
-#define bfd_mach_sparc_sparclet        2
-#define bfd_mach_sparc_sparclite       3
-#define bfd_mach_sparc_v8plus          4
-#define bfd_mach_sparc_v8plusa         5 /* with ultrasparc add'ns.  */
-#define bfd_mach_sparc_sparclite_le    6
-#define bfd_mach_sparc_v9              7
-#define bfd_mach_sparc_v9a             8 /* with ultrasparc add'ns.  */
-#define bfd_mach_sparc_v8plusb         9 /* with cheetah add'ns.  */
-#define bfd_mach_sparc_v9b             10 /* with cheetah add'ns.  */
-#define bfd_mach_sparc_v8plusc         11 /* with UA2005 and T1 add'ns.  */
-#define bfd_mach_sparc_v9c             12 /* with UA2005 and T1 add'ns.  */
-#define bfd_mach_sparc_v8plusd         13 /* with UA2007 and T3 add'ns.  */
-#define bfd_mach_sparc_v9d             14 /* with UA2007 and T3 add'ns.  */
-#define bfd_mach_sparc_v8pluse         15 /* with OSA2001 and T4 add'ns (no IMA).  */
-#define bfd_mach_sparc_v9e             16 /* with OSA2001 and T4 add'ns (no IMA).  */
-#define bfd_mach_sparc_v8plusv         17 /* with OSA2011 and T4 and IMA and FJMAU add'ns.  */
-#define bfd_mach_sparc_v9v             18 /* with OSA2011 and T4 and IMA and FJMAU add'ns.  */
-#define bfd_mach_sparc_v8plusm         19 /* with OSA2015 and M7 add'ns.  */
-#define bfd_mach_sparc_v9m             20 /* with OSA2015 and M7 add'ns.  */
-#define bfd_mach_sparc_v8plusm8        21 /* with OSA2017 and M8 add'ns.  */
-#define bfd_mach_sparc_v9m8            22 /* with OSA2017 and M8 add'ns.  */
-/* Nonzero if MACH has the v9 instruction set.  */
-#define bfd_mach_sparc_v9_p(mach) \
-  ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9m8 \
-   && (mach) != bfd_mach_sparc_sparclite_le)
-/* Nonzero if MACH is a 64 bit sparc architecture.  */
-#define bfd_mach_sparc_64bit_p(mach) \
-  ((mach) >= bfd_mach_sparc_v9 \
-   && (mach) != bfd_mach_sparc_v8plusb \
-   && (mach) != bfd_mach_sparc_v8plusc \
-   && (mach) != bfd_mach_sparc_v8plusd \
-   && (mach) != bfd_mach_sparc_v8pluse \
-   && (mach) != bfd_mach_sparc_v8plusv \
-   && (mach) != bfd_mach_sparc_v8plusm \
-   && (mach) != bfd_mach_sparc_v8plusm8)
-  bfd_arch_spu,       /* PowerPC SPU.  */
-#define bfd_mach_spu           256
-  bfd_arch_mips,      /* MIPS Rxxxx.  */
-#define bfd_mach_mips3000              3000
-#define bfd_mach_mips3900              3900
-#define bfd_mach_mips4000              4000
-#define bfd_mach_mips4010              4010
-#define bfd_mach_mips4100              4100
-#define bfd_mach_mips4111              4111
-#define bfd_mach_mips4120              4120
-#define bfd_mach_mips4300              4300
-#define bfd_mach_mips4400              4400
-#define bfd_mach_mips4600              4600
-#define bfd_mach_mips4650              4650
-#define bfd_mach_mips5000              5000
-#define bfd_mach_mips5400              5400
-#define bfd_mach_mips5500              5500
-#define bfd_mach_mips5900              5900
-#define bfd_mach_mips6000              6000
-#define bfd_mach_mips7000              7000
-#define bfd_mach_mips8000              8000
-#define bfd_mach_mips9000              9000
-#define bfd_mach_mips10000             10000
-#define bfd_mach_mips12000             12000
-#define bfd_mach_mips14000             14000
-#define bfd_mach_mips16000             16000
-#define bfd_mach_mips16                16
-#define bfd_mach_mips5                 5
-#define bfd_mach_mips_loongson_2e      3001
-#define bfd_mach_mips_loongson_2f      3002
-#define bfd_mach_mips_gs464            3003
-#define bfd_mach_mips_gs464e           3004
-#define bfd_mach_mips_gs264e           3005
-#define bfd_mach_mips_sb1              12310201 /* octal 'SB', 01.  */
-#define bfd_mach_mips_octeon           6501
-#define bfd_mach_mips_octeonp          6601
-#define bfd_mach_mips_octeon2          6502
-#define bfd_mach_mips_octeon3          6503
-#define bfd_mach_mips_xlr              887682   /* decimal 'XLR'.  */
-#define bfd_mach_mips_interaptiv_mr2   736550   /* decimal 'IA2'.  */
-#define bfd_mach_mipsisa32             32
-#define bfd_mach_mipsisa32r2           33
-#define bfd_mach_mipsisa32r3           34
-#define bfd_mach_mipsisa32r5           36
-#define bfd_mach_mipsisa32r6           37
-#define bfd_mach_mipsisa64             64
-#define bfd_mach_mipsisa64r2           65
-#define bfd_mach_mipsisa64r3           66
-#define bfd_mach_mipsisa64r5           68
-#define bfd_mach_mipsisa64r6           69
-#define bfd_mach_mips_micromips        96
-  bfd_arch_i386,      /* Intel 386.  */
-#define bfd_mach_i386_intel_syntax     (1 << 0)
-#define bfd_mach_i386_i8086            (1 << 1)
-#define bfd_mach_i386_i386             (1 << 2)
-#define bfd_mach_x86_64                (1 << 3)
-#define bfd_mach_x64_32                (1 << 4)
-#define bfd_mach_i386_i386_intel_syntax (bfd_mach_i386_i386 | bfd_mach_i386_intel_syntax)
-#define bfd_mach_x86_64_intel_syntax   (bfd_mach_x86_64 | bfd_mach_i386_intel_syntax)
-#define bfd_mach_x64_32_intel_syntax   (bfd_mach_x64_32 | bfd_mach_i386_intel_syntax)
-  bfd_arch_l1om,      /* Intel L1OM.  */
-#define bfd_mach_l1om                  (1 << 5)
-#define bfd_mach_l1om_intel_syntax     (bfd_mach_l1om | bfd_mach_i386_intel_syntax)
-  bfd_arch_k1om,      /* Intel K1OM.  */
-#define bfd_mach_k1om                  (1 << 6)
-#define bfd_mach_k1om_intel_syntax     (bfd_mach_k1om | bfd_mach_i386_intel_syntax)
-  bfd_arch_iamcu,     /* Intel MCU.  */
-#define bfd_mach_iamcu                 (1 << 8)
-#define bfd_mach_i386_iamcu            (bfd_mach_i386_i386 | bfd_mach_iamcu)
-#define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
-  bfd_arch_romp,      /* IBM ROMP PC/RT.  */
-  bfd_arch_convex,    /* Convex.  */
-  bfd_arch_m98k,      /* Motorola 98xxx.  */
-  bfd_arch_pyramid,   /* Pyramid Technology.  */
-  bfd_arch_h8300,     /* Renesas H8/300 (formerly Hitachi H8/300).  */
-#define bfd_mach_h8300         1
-#define bfd_mach_h8300h        2
-#define bfd_mach_h8300s        3
-#define bfd_mach_h8300hn       4
-#define bfd_mach_h8300sn       5
-#define bfd_mach_h8300sx       6
-#define bfd_mach_h8300sxn      7
-  bfd_arch_pdp11,     /* DEC PDP-11.  */
-  bfd_arch_powerpc,   /* PowerPC.  */
-#define bfd_mach_ppc           32
-#define bfd_mach_ppc64         64
-#define bfd_mach_ppc_403       403
-#define bfd_mach_ppc_403gc     4030
-#define bfd_mach_ppc_405       405
-#define bfd_mach_ppc_505       505
-#define bfd_mach_ppc_601       601
-#define bfd_mach_ppc_602       602
-#define bfd_mach_ppc_603       603
-#define bfd_mach_ppc_ec603e    6031
-#define bfd_mach_ppc_604       604
-#define bfd_mach_ppc_620       620
-#define bfd_mach_ppc_630       630
-#define bfd_mach_ppc_750       750
-#define bfd_mach_ppc_860       860
-#define bfd_mach_ppc_a35       35
-#define bfd_mach_ppc_rs64ii    642
-#define bfd_mach_ppc_rs64iii   643
-#define bfd_mach_ppc_7400      7400
-#define bfd_mach_ppc_e500      500
-#define bfd_mach_ppc_e500mc    5001
-#define bfd_mach_ppc_e500mc64  5005
-#define bfd_mach_ppc_e5500     5006
-#define bfd_mach_ppc_e6500     5007
-#define bfd_mach_ppc_titan     83
-#define bfd_mach_ppc_vle       84
-  bfd_arch_rs6000,    /* IBM RS/6000.  */
-#define bfd_mach_rs6k          6000
-#define bfd_mach_rs6k_rs1      6001
-#define bfd_mach_rs6k_rsc      6003
-#define bfd_mach_rs6k_rs2      6002
-  bfd_arch_hppa,      /* HP PA RISC.  */
-#define bfd_mach_hppa10        10
-#define bfd_mach_hppa11        11
-#define bfd_mach_hppa20        20
-#define bfd_mach_hppa20w       25
-  bfd_arch_d10v,      /* Mitsubishi D10V.  */
-#define bfd_mach_d10v          1
-#define bfd_mach_d10v_ts2      2
-#define bfd_mach_d10v_ts3      3
-  bfd_arch_d30v,      /* Mitsubishi D30V.  */
-  bfd_arch_dlx,       /* DLX.  */
-  bfd_arch_m68hc11,   /* Motorola 68HC11.  */
-  bfd_arch_m68hc12,   /* Motorola 68HC12.  */
-#define bfd_mach_m6812_default 0
-#define bfd_mach_m6812         1
-#define bfd_mach_m6812s        2
-  bfd_arch_m9s12x,    /* Freescale S12X.  */
-  bfd_arch_m9s12xg,   /* Freescale XGATE.  */
-  bfd_arch_s12z,    /* Freescale S12Z.  */
-#define bfd_mach_s12z_default 0
-  bfd_arch_z8k,       /* Zilog Z8000.  */
-#define bfd_mach_z8001         1
-#define bfd_mach_z8002         2
-  bfd_arch_sh,        /* Renesas / SuperH SH (formerly Hitachi SH).  */
-#define bfd_mach_sh                            1
-#define bfd_mach_sh2                           0x20
-#define bfd_mach_sh_dsp                        0x2d
-#define bfd_mach_sh2a                          0x2a
-#define bfd_mach_sh2a_nofpu                    0x2b
-#define bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu 0x2a1
-#define bfd_mach_sh2a_nofpu_or_sh3_nommu       0x2a2
-#define bfd_mach_sh2a_or_sh4                   0x2a3
-#define bfd_mach_sh2a_or_sh3e                  0x2a4
-#define bfd_mach_sh2e                          0x2e
-#define bfd_mach_sh3                           0x30
-#define bfd_mach_sh3_nommu                     0x31
-#define bfd_mach_sh3_dsp                       0x3d
-#define bfd_mach_sh3e                          0x3e
-#define bfd_mach_sh4                           0x40
-#define bfd_mach_sh4_nofpu                     0x41
-#define bfd_mach_sh4_nommu_nofpu               0x42
-#define bfd_mach_sh4a                          0x4a
-#define bfd_mach_sh4a_nofpu                    0x4b
-#define bfd_mach_sh4al_dsp                     0x4d
-  bfd_arch_alpha,     /* Dec Alpha.  */
-#define bfd_mach_alpha_ev4     0x10
-#define bfd_mach_alpha_ev5     0x20
-#define bfd_mach_alpha_ev6     0x30
-  bfd_arch_arm,       /* Advanced Risc Machines ARM.  */
-#define bfd_mach_arm_unknown   0
-#define bfd_mach_arm_2         1
-#define bfd_mach_arm_2a        2
-#define bfd_mach_arm_3         3
-#define bfd_mach_arm_3M        4
-#define bfd_mach_arm_4         5
-#define bfd_mach_arm_4T        6
-#define bfd_mach_arm_5         7
-#define bfd_mach_arm_5T        8
-#define bfd_mach_arm_5TE       9
-#define bfd_mach_arm_XScale    10
-#define bfd_mach_arm_ep9312    11
-#define bfd_mach_arm_iWMMXt    12
-#define bfd_mach_arm_iWMMXt2   13
-#define bfd_mach_arm_5TEJ      14
-#define bfd_mach_arm_6         15
-#define bfd_mach_arm_6KZ       16
-#define bfd_mach_arm_6T2       17
-#define bfd_mach_arm_6K        18
-#define bfd_mach_arm_7         19
-#define bfd_mach_arm_6M        20
-#define bfd_mach_arm_6SM       21
-#define bfd_mach_arm_7EM       22
-#define bfd_mach_arm_8         23
-#define bfd_mach_arm_8R        24
-#define bfd_mach_arm_8M_BASE   25
-#define bfd_mach_arm_8M_MAIN   26
-#define bfd_mach_arm_8_1M_MAIN 27
-  bfd_arch_nds32,     /* Andes NDS32.  */
-#define bfd_mach_n1            1
-#define bfd_mach_n1h           2
-#define bfd_mach_n1h_v2        3
-#define bfd_mach_n1h_v3        4
-#define bfd_mach_n1h_v3m       5
-  bfd_arch_ns32k,     /* National Semiconductors ns32000.  */
-  bfd_arch_tic30,     /* Texas Instruments TMS320C30.  */
-  bfd_arch_tic4x,     /* Texas Instruments TMS320C3X/4X.  */
-#define bfd_mach_tic3x         30
-#define bfd_mach_tic4x         40
-  bfd_arch_tic54x,    /* Texas Instruments TMS320C54X.  */
-  bfd_arch_tic6x,     /* Texas Instruments TMS320C6X.  */
-  bfd_arch_v850,      /* NEC V850.  */
-  bfd_arch_v850_rh850,/* NEC V850 (using RH850 ABI).  */
-#define bfd_mach_v850          1
-#define bfd_mach_v850e         'E'
-#define bfd_mach_v850e1        '1'
-#define bfd_mach_v850e2        0x4532
-#define bfd_mach_v850e2v3      0x45325633
-#define bfd_mach_v850e3v5      0x45335635 /* ('E'|'3'|'V'|'5').  */
-  bfd_arch_arc,       /* ARC Cores.  */
-#define bfd_mach_arc_a4        0
-#define bfd_mach_arc_a5        1
-#define bfd_mach_arc_arc600    2
-#define bfd_mach_arc_arc601    4
-#define bfd_mach_arc_arc700    3
-#define bfd_mach_arc_arcv2     5
- bfd_arch_m32c,       /* Renesas M16C/M32C.  */
-#define bfd_mach_m16c          0x75
-#define bfd_mach_m32c          0x78
-  bfd_arch_m32r,      /* Renesas M32R (formerly Mitsubishi M32R/D).  */
-#define bfd_mach_m32r          1 /* For backwards compatibility.  */
-#define bfd_mach_m32rx         'x'
-#define bfd_mach_m32r2         '2'
-  bfd_arch_mn10200,   /* Matsushita MN10200.  */
-  bfd_arch_mn10300,   /* Matsushita MN10300.  */
-#define bfd_mach_mn10300       300
-#define bfd_mach_am33          330
-#define bfd_mach_am33_2        332
-  bfd_arch_fr30,
-#define bfd_mach_fr30          0x46523330
-  bfd_arch_frv,
-#define bfd_mach_frv           1
-#define bfd_mach_frvsimple     2
-#define bfd_mach_fr300         300
-#define bfd_mach_fr400         400
-#define bfd_mach_fr450         450
-#define bfd_mach_frvtomcat     499     /* fr500 prototype.  */
-#define bfd_mach_fr500         500
-#define bfd_mach_fr550         550
-  bfd_arch_moxie,     /* The moxie processor.  */
-#define bfd_mach_moxie         1
-  bfd_arch_ft32,      /* The ft32 processor.  */
-#define bfd_mach_ft32          1
-#define bfd_mach_ft32b         2
-  bfd_arch_mcore,
-  bfd_arch_mep,
-#define bfd_mach_mep           1
-#define bfd_mach_mep_h1        0x6831
-#define bfd_mach_mep_c5        0x6335
-  bfd_arch_metag,
-#define bfd_mach_metag         1
-  bfd_arch_ia64,      /* HP/Intel ia64.  */
-#define bfd_mach_ia64_elf64    64
-#define bfd_mach_ia64_elf32    32
-  bfd_arch_ip2k,      /* Ubicom IP2K microcontrollers. */
-#define bfd_mach_ip2022        1
-#define bfd_mach_ip2022ext     2
- bfd_arch_iq2000,     /* Vitesse IQ2000.  */
-#define bfd_mach_iq2000        1
-#define bfd_mach_iq10          2
-  bfd_arch_bpf,       /* Linux eBPF.  */
-#define bfd_mach_bpf           1
-#define bfd_mach_xbpf          2
-  bfd_arch_epiphany,  /* Adapteva EPIPHANY.  */
-#define bfd_mach_epiphany16    1
-#define bfd_mach_epiphany32    2
-  bfd_arch_mt,
-#define bfd_mach_ms1           1
-#define bfd_mach_mrisc2        2
-#define bfd_mach_ms2           3
-  bfd_arch_pj,
-  bfd_arch_avr,       /* Atmel AVR microcontrollers.  */
-#define bfd_mach_avr1          1
-#define bfd_mach_avr2          2
-#define bfd_mach_avr25         25
-#define bfd_mach_avr3          3
-#define bfd_mach_avr31         31
-#define bfd_mach_avr35         35
-#define bfd_mach_avr4          4
-#define bfd_mach_avr5          5
-#define bfd_mach_avr51         51
-#define bfd_mach_avr6          6
-#define bfd_mach_avrtiny       100
-#define bfd_mach_avrxmega1     101
-#define bfd_mach_avrxmega2     102
-#define bfd_mach_avrxmega3     103
-#define bfd_mach_avrxmega4     104
-#define bfd_mach_avrxmega5     105
-#define bfd_mach_avrxmega6     106
-#define bfd_mach_avrxmega7     107
-  bfd_arch_bfin,      /* ADI Blackfin.  */
-#define bfd_mach_bfin          1
-  bfd_arch_cr16,      /* National Semiconductor CompactRISC (ie CR16).  */
-#define bfd_mach_cr16          1
-  bfd_arch_crx,       /*  National Semiconductor CRX.  */
-#define bfd_mach_crx           1
-  bfd_arch_cris,      /* Axis CRIS.  */
-#define bfd_mach_cris_v0_v10   255
-#define bfd_mach_cris_v32      32
-#define bfd_mach_cris_v10_v32  1032
-  bfd_arch_riscv,
-#define bfd_mach_riscv32       132
-#define bfd_mach_riscv64       164
-  bfd_arch_rl78,
-#define bfd_mach_rl78          0x75
-  bfd_arch_rx,        /* Renesas RX.  */
-#define bfd_mach_rx            0x75
-#define bfd_mach_rx_v2         0x76
-#define bfd_mach_rx_v3         0x77
-  bfd_arch_s390,      /* IBM s390.  */
-#define bfd_mach_s390_31       31
-#define bfd_mach_s390_64       64
-  bfd_arch_score,     /* Sunplus score.  */
-#define bfd_mach_score3        3
-#define bfd_mach_score7        7
-  bfd_arch_mmix,      /* Donald Knuth's educational processor.  */
-  bfd_arch_xstormy16,
-#define bfd_mach_xstormy16     1
-  bfd_arch_msp430,    /* Texas Instruments MSP430 architecture.  */
-#define bfd_mach_msp11         11
-#define bfd_mach_msp110        110
-#define bfd_mach_msp12         12
-#define bfd_mach_msp13         13
-#define bfd_mach_msp14         14
-#define bfd_mach_msp15         15
-#define bfd_mach_msp16         16
-#define bfd_mach_msp20         20
-#define bfd_mach_msp21         21
-#define bfd_mach_msp22         22
-#define bfd_mach_msp23         23
-#define bfd_mach_msp24         24
-#define bfd_mach_msp26         26
-#define bfd_mach_msp31         31
-#define bfd_mach_msp32         32
-#define bfd_mach_msp33         33
-#define bfd_mach_msp41         41
-#define bfd_mach_msp42         42
-#define bfd_mach_msp43         43
-#define bfd_mach_msp44         44
-#define bfd_mach_msp430x       45
-#define bfd_mach_msp46         46
-#define bfd_mach_msp47         47
-#define bfd_mach_msp54         54
-  bfd_arch_xc16x,     /* Infineon's XC16X Series.  */
-#define bfd_mach_xc16x         1
-#define bfd_mach_xc16xl        2
-#define bfd_mach_xc16xs        3
-  bfd_arch_xgate,     /* Freescale XGATE.  */
-#define bfd_mach_xgate         1
-  bfd_arch_xtensa,    /* Tensilica's Xtensa cores.  */
-#define bfd_mach_xtensa        1
-  bfd_arch_z80,
-/* Zilog Z80 without undocumented opcodes.  */
-#define bfd_mach_z80strict     1
-/* Zilog Z180: successor with additional instructions, but without
- halves of ix and iy.  */
-#define bfd_mach_z180          2
-/* Zilog Z80 with ixl, ixh, iyl, and iyh.  */
-#define bfd_mach_z80           3
-/* Zilog eZ80 (successor of Z80 & Z180) in Z80 (16-bit address) mode.  */
-#define bfd_mach_ez80_z80      4
-/* Zilog eZ80 (successor of Z80 & Z180) in ADL (24-bit address) mode.  */
-#define bfd_mach_ez80_adl      5
-/* Z80N */
-#define bfd_mach_z80n          6
-/* Zilog Z80 with all undocumented instructions.  */
-#define bfd_mach_z80full       7
-/* GameBoy Z80 (reduced instruction set).  */
-#define bfd_mach_gbz80         8
-/* ASCII R800: successor with multiplication.  */
-#define bfd_mach_r800          11
-  bfd_arch_lm32,      /* Lattice Mico32.  */
-#define bfd_mach_lm32          1
-  bfd_arch_microblaze,/* Xilinx MicroBlaze.  */
-  bfd_arch_tilepro,   /* Tilera TILEPro.  */
-  bfd_arch_tilegx,    /* Tilera TILE-Gx.  */
-#define bfd_mach_tilepro       1
-#define bfd_mach_tilegx        1
-#define bfd_mach_tilegx32      2
-  bfd_arch_aarch64,   /* AArch64.  */
-#define bfd_mach_aarch64 0
-#define bfd_mach_aarch64_8R    1
-#define bfd_mach_aarch64_ilp32 32
-  bfd_arch_nios2,     /* Nios II.  */
-#define bfd_mach_nios2         0
-#define bfd_mach_nios2r1       1
-#define bfd_mach_nios2r2       2
-  bfd_arch_visium,    /* Visium.  */
-#define bfd_mach_visium        1
-  bfd_arch_wasm32,    /* WebAssembly.  */
-#define bfd_mach_wasm32        1
-  bfd_arch_pru,       /* PRU.  */
-#define bfd_mach_pru           0
-  bfd_arch_nfp,       /* Netronome Flow Processor */
-#define bfd_mach_nfp3200       0x3200
-#define bfd_mach_nfp6000       0x6000
-  bfd_arch_csky,      /* C-SKY.  */
-#define bfd_mach_ck_unknown    0
-#define bfd_mach_ck510         1
-#define bfd_mach_ck610         2
-#define bfd_mach_ck801         3
-#define bfd_mach_ck802         4
-#define bfd_mach_ck803         5
-#define bfd_mach_ck807         6
-#define bfd_mach_ck810         7
-#define bfd_mach_ck860         8
-  bfd_arch_last
-  };
-
-typedef struct bfd_arch_info
-{
-  int bits_per_word;
-  int bits_per_address;
-  int bits_per_byte;
-  enum bfd_architecture arch;
-  unsigned long mach;
-  const char *arch_name;
-  const char *printable_name;
-  unsigned int section_align_power;
-  /* TRUE if this is the default machine for the architecture.
-     The default arch should be the first entry for an arch so that
-     all the entries for that arch can be accessed via <<next>>.  */
-  bfd_boolean the_default;
-  const struct bfd_arch_info * (*compatible) (const struct bfd_arch_info *,
-                                              const struct bfd_arch_info *);
-
-  bfd_boolean (*scan) (const struct bfd_arch_info *, const char *);
-
-  /* Allocate via bfd_malloc and return a fill buffer of size COUNT.  If
-     IS_BIGENDIAN is TRUE, the order of bytes is big endian.  If CODE is
-     TRUE, the buffer contains code.  */
-  void *(*fill) (bfd_size_type count, bfd_boolean is_bigendian,
-                 bfd_boolean code);
-
-  const struct bfd_arch_info *next;
-
-  /* On some architectures the offset for a relocation can point into
-     the middle of an instruction.  This field specifies the maximum
-     offset such a relocation can have (in octets).  This affects the
-     behaviour of the disassembler, since a value greater than zero
-     means that it may need to disassemble an instruction twice, once
-     to get its length and then a second time to display it.  If the
-     value is negative then this has to be done for every single
-     instruction, regardless of the offset of the reloc.  */
-  signed int max_reloc_offset_into_insn;
-}
-bfd_arch_info_type;
-
-const char *bfd_printable_name (bfd *abfd);
-
-const bfd_arch_info_type *bfd_scan_arch (const char *string);
-
-const char **bfd_arch_list (void);
-
-const bfd_arch_info_type *bfd_arch_get_compatible
-   (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);
-
-void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);
-
-bfd_boolean bfd_default_set_arch_mach
-   (bfd *abfd, enum bfd_architecture arch, unsigned long mach);
-
-enum bfd_architecture bfd_get_arch (const bfd *abfd);
-
-unsigned long bfd_get_mach (const bfd *abfd);
-
-unsigned int bfd_arch_bits_per_byte (const bfd *abfd);
-
-unsigned int bfd_arch_bits_per_address (const bfd *abfd);
-
-const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);
-
-const bfd_arch_info_type *bfd_lookup_arch
-   (enum bfd_architecture arch, unsigned long machine);
-
-const char *bfd_printable_arch_mach
-   (enum bfd_architecture arch, unsigned long machine);
-
-unsigned int bfd_octets_per_byte (const bfd *abfd,
-    const asection *sec);
-
-unsigned int bfd_arch_mach_octets_per_byte
-   (enum bfd_architecture arch, unsigned long machine);
-
-/* Extracted from reloc.c.  */
-
-typedef enum bfd_reloc_status
-{
-  /* No errors detected.  Note - the value 2 is used so that it
-     will not be mistaken for the boolean TRUE or FALSE values.  */
-  bfd_reloc_ok = 2,
-
-  /* The relocation was performed, but there was an overflow.  */
-  bfd_reloc_overflow,
-
-  /* The address to relocate was not within the section supplied.  */
-  bfd_reloc_outofrange,
-
-  /* Used by special functions.  */
-  bfd_reloc_continue,
-
-  /* Unsupported relocation size requested.  */
-  bfd_reloc_notsupported,
-
-  /* Unused.  */
-  bfd_reloc_other,
-
-  /* The symbol to relocate against was undefined.  */
-  bfd_reloc_undefined,
-
-  /* The relocation was performed, but may not be ok.  If this type is
-     returned, the error_message argument to bfd_perform_relocation
-     will be set.  */
-  bfd_reloc_dangerous
- }
- bfd_reloc_status_type;
-
-typedef const struct reloc_howto_struct reloc_howto_type;
-
-typedef struct reloc_cache_entry
-{
-  /* A pointer into the canonical table of pointers.  */
-  struct bfd_symbol **sym_ptr_ptr;
-
-  /* offset in section.  */
-  bfd_size_type address;
-
-  /* addend for relocation value.  */
-  bfd_vma addend;
-
-  /* Pointer to how to perform the required relocation.  */
-  reloc_howto_type *howto;
-
-}
-arelent;
-
-
-enum complain_overflow
-{
-  /* Do not complain on overflow.  */
-  complain_overflow_dont,
-
-  /* Complain if the value overflows when considered as a signed
-     number one bit larger than the field.  ie. A bitfield of N bits
-     is allowed to represent -2**n to 2**n-1.  */
-  complain_overflow_bitfield,
-
-  /* Complain if the value overflows when considered as a signed
-     number.  */
-  complain_overflow_signed,
-
-  /* Complain if the value overflows when considered as an
-     unsigned number.  */
-  complain_overflow_unsigned
-};
-struct reloc_howto_struct
-{
-  /* The type field has mainly a documentary use - the back end can
-     do what it wants with it, though normally the back end's idea of
-     an external reloc number is stored in this field.  */
-  unsigned int type;
-
-  /* The encoded size of the item to be relocated.  This is *not* a
-     power-of-two measure.  Use bfd_get_reloc_size to find the size
-     of the item in bytes.  */
-  unsigned int size:3;
-
-  /* The number of bits in the field to be relocated.  This is used
-     when doing overflow checking.  */
-  unsigned int bitsize:7;
-
-  /* The value the final relocation is shifted right by.  This drops
-     unwanted data from the relocation.  */
-  unsigned int rightshift:6;
-
-  /* The bit position of the reloc value in the destination.
-     The relocated value is left shifted by this amount.  */
-  unsigned int bitpos:6;
-
-  /* What type of overflow error should be checked for when
-     relocating.  */
-  ENUM_BITFIELD (complain_overflow) complain_on_overflow:2;
-
-  /* The relocation value should be negated before applying.  */
-  unsigned int negate:1;
-
-  /* The relocation is relative to the item being relocated.  */
-  unsigned int pc_relative:1;
-
-  /* Some formats record a relocation addend in the section contents
-     rather than with the relocation.  For ELF formats this is the
-     distinction between USE_REL and USE_RELA (though the code checks
-     for USE_REL == 1/0).  The value of this field is TRUE if the
-     addend is recorded with the section contents; when performing a
-     partial link (ld -r) the section contents (the data) will be
-     modified.  The value of this field is FALSE if addends are
-     recorded with the relocation (in arelent.addend); when performing
-     a partial link the relocation will be modified.
-     All relocations for all ELF USE_RELA targets should set this field
-     to FALSE (values of TRUE should be looked on with suspicion).
-     However, the converse is not true: not all relocations of all ELF
-     USE_REL targets set this field to TRUE.  Why this is so is peculiar
-     to each particular target.  For relocs that aren't used in partial
-     links (e.g. GOT stuff) it doesn't matter what this is set to.  */
-  unsigned int partial_inplace:1;
-
-  /* When some formats create PC relative instructions, they leave
-     the value of the pc of the place being relocated in the offset
-     slot of the instruction, so that a PC relative relocation can
-     be made just by adding in an ordinary offset (e.g., sun3 a.out).
-     Some formats leave the displacement part of an instruction
-     empty (e.g., ELF); this flag signals the fact.  */
-  unsigned int pcrel_offset:1;
-
-  /* src_mask selects the part of the instruction (or data) to be used
-     in the relocation sum.  If the target relocations don't have an
-     addend in the reloc, eg. ELF USE_REL, src_mask will normally equal
-     dst_mask to extract the addend from the section contents.  If
-     relocations do have an addend in the reloc, eg. ELF USE_RELA, this
-     field should normally be zero.  Non-zero values for ELF USE_RELA
-     targets should be viewed with suspicion as normally the value in
-     the dst_mask part of the section contents should be ignored.  */
-  bfd_vma src_mask;
-
-  /* dst_mask selects which parts of the instruction (or data) are
-     replaced with a relocated value.  */
-  bfd_vma dst_mask;
-
-  /* If this field is non null, then the supplied function is
-     called rather than the normal function.  This allows really
-     strange relocation methods to be accommodated.  */
-  bfd_reloc_status_type (*special_function)
-    (bfd *, arelent *, struct bfd_symbol *, void *, asection *,
-     bfd *, char **);
-
-  /* The textual name of the relocation type.  */
-  const char *name;
-};
-
-#define HOWTO(type, right, size, bits, pcrel, left, ovf, func, name,   \
-              inplace, src_mask, dst_mask, pcrel_off)                  \
-  { (unsigned) type, size < 0 ? -size : size, bits, right, left, ovf,  \
-    size < 0, pcrel, inplace, pcrel_off, src_mask, dst_mask, func, name }
-#define EMPTY_HOWTO(C) \
-  HOWTO ((C), 0, 0, 0, FALSE, 0, complain_overflow_dont, NULL, \
-         NULL, FALSE, 0, 0, FALSE)
-
-unsigned int bfd_get_reloc_size (reloc_howto_type *);
-
-typedef struct relent_chain
-{
-  arelent relent;
-  struct relent_chain *next;
-}
-arelent_chain;
-
-bfd_reloc_status_type bfd_check_overflow
-   (enum complain_overflow how,
-    unsigned int bitsize,
-    unsigned int rightshift,
-    unsigned int addrsize,
-    bfd_vma relocation);
-
-bfd_boolean bfd_reloc_offset_in_range
-   (reloc_howto_type *howto,
-    bfd *abfd,
-    asection *section,
-    bfd_size_type offset);
-
-bfd_reloc_status_type bfd_perform_relocation
-   (bfd *abfd,
-    arelent *reloc_entry,
-    void *data,
-    asection *input_section,
-    bfd *output_bfd,
-    char **error_message);
-
-bfd_reloc_status_type bfd_install_relocation
-   (bfd *abfd,
-    arelent *reloc_entry,
-    void *data, bfd_vma data_start,
-    asection *input_section,
-    char **error_message);
-
-enum bfd_reloc_code_real {
-  _dummy_first_bfd_reloc_code_real,
-
-
-/* Basic absolute relocations of N bits.  */
-  BFD_RELOC_64,
-  BFD_RELOC_32,
-  BFD_RELOC_26,
-  BFD_RELOC_24,
-  BFD_RELOC_16,
-  BFD_RELOC_14,
-  BFD_RELOC_8,
-
-/* PC-relative relocations.  Sometimes these are relative to the address
-of the relocation itself; sometimes they are relative to the start of
-the section containing the relocation.  It depends on the specific target.  */
-  BFD_RELOC_64_PCREL,
-  BFD_RELOC_32_PCREL,
-  BFD_RELOC_24_PCREL,
-  BFD_RELOC_16_PCREL,
-  BFD_RELOC_12_PCREL,
-  BFD_RELOC_8_PCREL,
-
-/* Section relative relocations.  Some targets need this for DWARF2.  */
-  BFD_RELOC_32_SECREL,
-
-/* For ELF.  */
-  BFD_RELOC_32_GOT_PCREL,
-  BFD_RELOC_16_GOT_PCREL,
-  BFD_RELOC_8_GOT_PCREL,
-  BFD_RELOC_32_GOTOFF,
-  BFD_RELOC_16_GOTOFF,
-  BFD_RELOC_LO16_GOTOFF,
-  BFD_RELOC_HI16_GOTOFF,
-  BFD_RELOC_HI16_S_GOTOFF,
-  BFD_RELOC_8_GOTOFF,
-  BFD_RELOC_64_PLT_PCREL,
-  BFD_RELOC_32_PLT_PCREL,
-  BFD_RELOC_24_PLT_PCREL,
-  BFD_RELOC_16_PLT_PCREL,
-  BFD_RELOC_8_PLT_PCREL,
-  BFD_RELOC_64_PLTOFF,
-  BFD_RELOC_32_PLTOFF,
-  BFD_RELOC_16_PLTOFF,
-  BFD_RELOC_LO16_PLTOFF,
-  BFD_RELOC_HI16_PLTOFF,
-  BFD_RELOC_HI16_S_PLTOFF,
-  BFD_RELOC_8_PLTOFF,
-
-/* Size relocations.  */
-  BFD_RELOC_SIZE32,
-  BFD_RELOC_SIZE64,
-
-/* Relocations used by 68K ELF.  */
-  BFD_RELOC_68K_GLOB_DAT,
-  BFD_RELOC_68K_JMP_SLOT,
-  BFD_RELOC_68K_RELATIVE,
-  BFD_RELOC_68K_TLS_GD32,
-  BFD_RELOC_68K_TLS_GD16,
-  BFD_RELOC_68K_TLS_GD8,
-  BFD_RELOC_68K_TLS_LDM32,
-  BFD_RELOC_68K_TLS_LDM16,
-  BFD_RELOC_68K_TLS_LDM8,
-  BFD_RELOC_68K_TLS_LDO32,
-  BFD_RELOC_68K_TLS_LDO16,
-  BFD_RELOC_68K_TLS_LDO8,
-  BFD_RELOC_68K_TLS_IE32,
-  BFD_RELOC_68K_TLS_IE16,
-  BFD_RELOC_68K_TLS_IE8,
-  BFD_RELOC_68K_TLS_LE32,
-  BFD_RELOC_68K_TLS_LE16,
-  BFD_RELOC_68K_TLS_LE8,
-
-/* Linkage-table relative.  */
-  BFD_RELOC_32_BASEREL,
-  BFD_RELOC_16_BASEREL,
-  BFD_RELOC_LO16_BASEREL,
-  BFD_RELOC_HI16_BASEREL,
-  BFD_RELOC_HI16_S_BASEREL,
-  BFD_RELOC_8_BASEREL,
-  BFD_RELOC_RVA,
-
-/* Absolute 8-bit relocation, but used to form an address like 0xFFnn.  */
-  BFD_RELOC_8_FFnn,
-
-/* These PC-relative relocations are stored as word displacements --
-i.e., byte displacements shifted right two bits.  The 30-bit word
-displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the
-SPARC.  (SPARC tools generally refer to this as <<WDISP30>>.)  The
-signed 16-bit displacement is used on the MIPS, and the 23-bit
-displacement is used on the Alpha.  */
-  BFD_RELOC_32_PCREL_S2,
-  BFD_RELOC_16_PCREL_S2,
-  BFD_RELOC_23_PCREL_S2,
-
-/* High 22 bits and low 10 bits of 32-bit value, placed into lower bits of
-the target word.  These are used on the SPARC.  */
-  BFD_RELOC_HI22,
-  BFD_RELOC_LO10,
-
-/* For systems that allocate a Global Pointer register, these are
-displacements off that register.  These relocation types are
-handled specially, because the value the register will have is
-decided relatively late.  */
-  BFD_RELOC_GPREL16,
-  BFD_RELOC_GPREL32,
-
-/* SPARC ELF relocations.  There is probably some overlap with other
-relocation types already defined.  */
-  BFD_RELOC_NONE,
-  BFD_RELOC_SPARC_WDISP22,
-  BFD_RELOC_SPARC22,
-  BFD_RELOC_SPARC13,
-  BFD_RELOC_SPARC_GOT10,
-  BFD_RELOC_SPARC_GOT13,
-  BFD_RELOC_SPARC_GOT22,
-  BFD_RELOC_SPARC_PC10,
-  BFD_RELOC_SPARC_PC22,
-  BFD_RELOC_SPARC_WPLT30,
-  BFD_RELOC_SPARC_COPY,
-  BFD_RELOC_SPARC_GLOB_DAT,
-  BFD_RELOC_SPARC_JMP_SLOT,
-  BFD_RELOC_SPARC_RELATIVE,
-  BFD_RELOC_SPARC_UA16,
-  BFD_RELOC_SPARC_UA32,
-  BFD_RELOC_SPARC_UA64,
-  BFD_RELOC_SPARC_GOTDATA_HIX22,
-  BFD_RELOC_SPARC_GOTDATA_LOX10,
-  BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
-  BFD_RELOC_SPARC_GOTDATA_OP_LOX10,
-  BFD_RELOC_SPARC_GOTDATA_OP,
-  BFD_RELOC_SPARC_JMP_IREL,
-  BFD_RELOC_SPARC_IRELATIVE,
-
-/* I think these are specific to SPARC a.out (e.g., Sun 4).  */
-  BFD_RELOC_SPARC_BASE13,
-  BFD_RELOC_SPARC_BASE22,
-
-/* SPARC64 relocations  */
-#define BFD_RELOC_SPARC_64 BFD_RELOC_64
-  BFD_RELOC_SPARC_10,
-  BFD_RELOC_SPARC_11,
-  BFD_RELOC_SPARC_OLO10,
-  BFD_RELOC_SPARC_HH22,
-  BFD_RELOC_SPARC_HM10,
-  BFD_RELOC_SPARC_LM22,
-  BFD_RELOC_SPARC_PC_HH22,
-  BFD_RELOC_SPARC_PC_HM10,
-  BFD_RELOC_SPARC_PC_LM22,
-  BFD_RELOC_SPARC_WDISP16,
-  BFD_RELOC_SPARC_WDISP19,
-  BFD_RELOC_SPARC_7,
-  BFD_RELOC_SPARC_6,
-  BFD_RELOC_SPARC_5,
-#define BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL
-  BFD_RELOC_SPARC_PLT32,
-  BFD_RELOC_SPARC_PLT64,
-  BFD_RELOC_SPARC_HIX22,
-  BFD_RELOC_SPARC_LOX10,
-  BFD_RELOC_SPARC_H44,
-  BFD_RELOC_SPARC_M44,
-  BFD_RELOC_SPARC_L44,
-  BFD_RELOC_SPARC_REGISTER,
-  BFD_RELOC_SPARC_H34,
-  BFD_RELOC_SPARC_SIZE32,
-  BFD_RELOC_SPARC_SIZE64,
-  BFD_RELOC_SPARC_WDISP10,
-
-/* SPARC little endian relocation  */
-  BFD_RELOC_SPARC_REV32,
-
-/* SPARC TLS relocations  */
-  BFD_RELOC_SPARC_TLS_GD_HI22,
-  BFD_RELOC_SPARC_TLS_GD_LO10,
-  BFD_RELOC_SPARC_TLS_GD_ADD,
-  BFD_RELOC_SPARC_TLS_GD_CALL,
-  BFD_RELOC_SPARC_TLS_LDM_HI22,
-  BFD_RELOC_SPARC_TLS_LDM_LO10,
-  BFD_RELOC_SPARC_TLS_LDM_ADD,
-  BFD_RELOC_SPARC_TLS_LDM_CALL,
-  BFD_RELOC_SPARC_TLS_LDO_HIX22,
-  BFD_RELOC_SPARC_TLS_LDO_LOX10,
-  BFD_RELOC_SPARC_TLS_LDO_ADD,
-  BFD_RELOC_SPARC_TLS_IE_HI22,
-  BFD_RELOC_SPARC_TLS_IE_LO10,
-  BFD_RELOC_SPARC_TLS_IE_LD,
-  BFD_RELOC_SPARC_TLS_IE_LDX,
-  BFD_RELOC_SPARC_TLS_IE_ADD,
-  BFD_RELOC_SPARC_TLS_LE_HIX22,
-  BFD_RELOC_SPARC_TLS_LE_LOX10,
-  BFD_RELOC_SPARC_TLS_DTPMOD32,
-  BFD_RELOC_SPARC_TLS_DTPMOD64,
-  BFD_RELOC_SPARC_TLS_DTPOFF32,
-  BFD_RELOC_SPARC_TLS_DTPOFF64,
-  BFD_RELOC_SPARC_TLS_TPOFF32,
-  BFD_RELOC_SPARC_TLS_TPOFF64,
-
-/* SPU Relocations.  */
-  BFD_RELOC_SPU_IMM7,
-  BFD_RELOC_SPU_IMM8,
-  BFD_RELOC_SPU_IMM10,
-  BFD_RELOC_SPU_IMM10W,
-  BFD_RELOC_SPU_IMM16,
-  BFD_RELOC_SPU_IMM16W,
-  BFD_RELOC_SPU_IMM18,
-  BFD_RELOC_SPU_PCREL9a,
-  BFD_RELOC_SPU_PCREL9b,
-  BFD_RELOC_SPU_PCREL16,
-  BFD_RELOC_SPU_LO16,
-  BFD_RELOC_SPU_HI16,
-  BFD_RELOC_SPU_PPU32,
-  BFD_RELOC_SPU_PPU64,
-  BFD_RELOC_SPU_ADD_PIC,
-
-/* Alpha ECOFF and ELF relocations.  Some of these treat the symbol or
-"addend" in some special way.
-For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when
-writing; when reading, it will be the absolute section symbol.  The
-addend is the displacement in bytes of the "lda" instruction from
-the "ldah" instruction (which is at the address of this reloc).  */
-  BFD_RELOC_ALPHA_GPDISP_HI16,
-
-/* For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
-with GPDISP_HI16 relocs.  The addend is ignored when writing the
-relocations out, and is filled in with the file's GP value on
-reading, for convenience.  */
-  BFD_RELOC_ALPHA_GPDISP_LO16,
-
-/* The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
-relocation except that there is no accompanying GPDISP_LO16
-relocation.  */
-  BFD_RELOC_ALPHA_GPDISP,
-
-/* The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
-the assembler turns it into a LDQ instruction to load the address of
-the symbol, and then fills in a register in the real instruction.
-
-The LITERAL reloc, at the LDQ instruction, refers to the .lita
-section symbol.  The addend is ignored when writing, but is filled
-in with the file's GP value on reading, for convenience, as with the
-GPDISP_LO16 reloc.
-
-The ELF_LITERAL reloc is somewhere between 16_GOTOFF and GPDISP_LO16.
-It should refer to the symbol to be referenced, as with 16_GOTOFF,
-but it generates output not based on the position within the .got
-section, but relative to the GP value chosen for the file during the
-final link stage.
-
-The LITUSE reloc, on the instruction using the loaded address, gives
-information to the linker that it might be able to use to optimize
-away some literal section references.  The symbol is ignored (read
-as the absolute section symbol), and the "addend" indicates the type
-of instruction using the register:
-1 - "memory" fmt insn
-2 - byte-manipulation (byte offset reg)
-3 - jsr (target of branch)  */
-  BFD_RELOC_ALPHA_LITERAL,
-  BFD_RELOC_ALPHA_ELF_LITERAL,
-  BFD_RELOC_ALPHA_LITUSE,
-
-/* The HINT relocation indicates a value that should be filled into the
-"hint" field of a jmp/jsr/ret instruction, for possible branch-
-prediction logic which may be provided on some processors.  */
-  BFD_RELOC_ALPHA_HINT,
-
-/* The LINKAGE relocation outputs a linkage pair in the object file,
-which is filled by the linker.  */
-  BFD_RELOC_ALPHA_LINKAGE,
-
-/* The CODEADDR relocation outputs a STO_CA in the object file,
-which is filled by the linker.  */
-  BFD_RELOC_ALPHA_CODEADDR,
-
-/* The GPREL_HI/LO relocations together form a 32-bit offset from the
-GP register.  */
-  BFD_RELOC_ALPHA_GPREL_HI16,
-  BFD_RELOC_ALPHA_GPREL_LO16,
-
-/* Like BFD_RELOC_23_PCREL_S2, except that the source and target must
-share a common GP, and the target address is adjusted for
-STO_ALPHA_STD_GPLOAD.  */
-  BFD_RELOC_ALPHA_BRSGP,
-
-/* The NOP relocation outputs a NOP if the longword displacement
-between two procedure entry points is < 2^21.  */
-  BFD_RELOC_ALPHA_NOP,
-
-/* The BSR relocation outputs a BSR if the longword displacement
-between two procedure entry points is < 2^21.  */
-  BFD_RELOC_ALPHA_BSR,
-
-/* The LDA relocation outputs a LDA if the longword displacement
-between two procedure entry points is < 2^16.  */
-  BFD_RELOC_ALPHA_LDA,
-
-/* The BOH relocation outputs a BSR if the longword displacement
-between two procedure entry points is < 2^21, or else a hint.  */
-  BFD_RELOC_ALPHA_BOH,
-
-/* Alpha thread-local storage relocations.  */
-  BFD_RELOC_ALPHA_TLSGD,
-  BFD_RELOC_ALPHA_TLSLDM,
-  BFD_RELOC_ALPHA_DTPMOD64,
-  BFD_RELOC_ALPHA_GOTDTPREL16,
-  BFD_RELOC_ALPHA_DTPREL64,
-  BFD_RELOC_ALPHA_DTPREL_HI16,
-  BFD_RELOC_ALPHA_DTPREL_LO16,
-  BFD_RELOC_ALPHA_DTPREL16,
-  BFD_RELOC_ALPHA_GOTTPREL16,
-  BFD_RELOC_ALPHA_TPREL64,
-  BFD_RELOC_ALPHA_TPREL_HI16,
-  BFD_RELOC_ALPHA_TPREL_LO16,
-  BFD_RELOC_ALPHA_TPREL16,
-
-/* The MIPS jump instruction.  */
-  BFD_RELOC_MIPS_JMP,
-  BFD_RELOC_MICROMIPS_JMP,
-
-/* The MIPS16 jump instruction.  */
-  BFD_RELOC_MIPS16_JMP,
-
-/* MIPS16 GP relative reloc.  */
-  BFD_RELOC_MIPS16_GPREL,
-
-/* High 16 bits of 32-bit value; simple reloc.  */
-  BFD_RELOC_HI16,
-
-/* High 16 bits of 32-bit value but the low 16 bits will be sign
-extended and added to form the final result.  If the low 16
-bits form a negative number, we need to add one to the high value
-to compensate for the borrow when the low bits are added.  */
-  BFD_RELOC_HI16_S,
-
-/* Low 16 bits.  */
-  BFD_RELOC_LO16,
-
-/* High 16 bits of 32-bit pc-relative value  */
-  BFD_RELOC_HI16_PCREL,
-
-/* High 16 bits of 32-bit pc-relative value, adjusted  */
-  BFD_RELOC_HI16_S_PCREL,
-
-/* Low 16 bits of pc-relative value  */
-  BFD_RELOC_LO16_PCREL,
-
-/* Equivalent of BFD_RELOC_MIPS_*, but with the MIPS16 layout of
-16-bit immediate fields  */
-  BFD_RELOC_MIPS16_GOT16,
-  BFD_RELOC_MIPS16_CALL16,
-
-/* MIPS16 high 16 bits of 32-bit value.  */
-  BFD_RELOC_MIPS16_HI16,
-
-/* MIPS16 high 16 bits of 32-bit value but the low 16 bits will be sign
-extended and added to form the final result.  If the low 16
-bits form a negative number, we need to add one to the high value
-to compensate for the borrow when the low bits are added.  */
-  BFD_RELOC_MIPS16_HI16_S,
-
-/* MIPS16 low 16 bits.  */
-  BFD_RELOC_MIPS16_LO16,
-
-/* MIPS16 TLS relocations  */
-  BFD_RELOC_MIPS16_TLS_GD,
-  BFD_RELOC_MIPS16_TLS_LDM,
-  BFD_RELOC_MIPS16_TLS_DTPREL_HI16,
-  BFD_RELOC_MIPS16_TLS_DTPREL_LO16,
-  BFD_RELOC_MIPS16_TLS_GOTTPREL,
-  BFD_RELOC_MIPS16_TLS_TPREL_HI16,
-  BFD_RELOC_MIPS16_TLS_TPREL_LO16,
-
-/* Relocation against a MIPS literal section.  */
-  BFD_RELOC_MIPS_LITERAL,
-  BFD_RELOC_MICROMIPS_LITERAL,
-
-/* microMIPS PC-relative relocations.  */
-  BFD_RELOC_MICROMIPS_7_PCREL_S1,
-  BFD_RELOC_MICROMIPS_10_PCREL_S1,
-  BFD_RELOC_MICROMIPS_16_PCREL_S1,
-
-/* MIPS16 PC-relative relocation.  */
-  BFD_RELOC_MIPS16_16_PCREL_S1,
-
-/* MIPS PC-relative relocations.  */
-  BFD_RELOC_MIPS_21_PCREL_S2,
-  BFD_RELOC_MIPS_26_PCREL_S2,
-  BFD_RELOC_MIPS_18_PCREL_S3,
-  BFD_RELOC_MIPS_19_PCREL_S2,
-
-/* microMIPS versions of generic BFD relocs.  */
-  BFD_RELOC_MICROMIPS_GPREL16,
-  BFD_RELOC_MICROMIPS_HI16,
-  BFD_RELOC_MICROMIPS_HI16_S,
-  BFD_RELOC_MICROMIPS_LO16,
-
-/* MIPS ELF relocations.  */
-  BFD_RELOC_MIPS_GOT16,
-  BFD_RELOC_MICROMIPS_GOT16,
-  BFD_RELOC_MIPS_CALL16,
-  BFD_RELOC_MICROMIPS_CALL16,
-  BFD_RELOC_MIPS_GOT_HI16,
-  BFD_RELOC_MICROMIPS_GOT_HI16,
-  BFD_RELOC_MIPS_GOT_LO16,
-  BFD_RELOC_MICROMIPS_GOT_LO16,
-  BFD_RELOC_MIPS_CALL_HI16,
-  BFD_RELOC_MICROMIPS_CALL_HI16,
-  BFD_RELOC_MIPS_CALL_LO16,
-  BFD_RELOC_MICROMIPS_CALL_LO16,
-  BFD_RELOC_MIPS_SUB,
-  BFD_RELOC_MICROMIPS_SUB,
-  BFD_RELOC_MIPS_GOT_PAGE,
-  BFD_RELOC_MICROMIPS_GOT_PAGE,
-  BFD_RELOC_MIPS_GOT_OFST,
-  BFD_RELOC_MICROMIPS_GOT_OFST,
-  BFD_RELOC_MIPS_GOT_DISP,
-  BFD_RELOC_MICROMIPS_GOT_DISP,
-  BFD_RELOC_MIPS_SHIFT5,
-  BFD_RELOC_MIPS_SHIFT6,
-  BFD_RELOC_MIPS_INSERT_A,
-  BFD_RELOC_MIPS_INSERT_B,
-  BFD_RELOC_MIPS_DELETE,
-  BFD_RELOC_MIPS_HIGHEST,
-  BFD_RELOC_MICROMIPS_HIGHEST,
-  BFD_RELOC_MIPS_HIGHER,
-  BFD_RELOC_MICROMIPS_HIGHER,
-  BFD_RELOC_MIPS_SCN_DISP,
-  BFD_RELOC_MICROMIPS_SCN_DISP,
-  BFD_RELOC_MIPS_REL16,
-  BFD_RELOC_MIPS_RELGOT,
-  BFD_RELOC_MIPS_JALR,
-  BFD_RELOC_MICROMIPS_JALR,
-  BFD_RELOC_MIPS_TLS_DTPMOD32,
-  BFD_RELOC_MIPS_TLS_DTPREL32,
-  BFD_RELOC_MIPS_TLS_DTPMOD64,
-  BFD_RELOC_MIPS_TLS_DTPREL64,
-  BFD_RELOC_MIPS_TLS_GD,
-  BFD_RELOC_MICROMIPS_TLS_GD,
-  BFD_RELOC_MIPS_TLS_LDM,
-  BFD_RELOC_MICROMIPS_TLS_LDM,
-  BFD_RELOC_MIPS_TLS_DTPREL_HI16,
-  BFD_RELOC_MICROMIPS_TLS_DTPREL_HI16,
-  BFD_RELOC_MIPS_TLS_DTPREL_LO16,
-  BFD_RELOC_MICROMIPS_TLS_DTPREL_LO16,
-  BFD_RELOC_MIPS_TLS_GOTTPREL,
-  BFD_RELOC_MICROMIPS_TLS_GOTTPREL,
-  BFD_RELOC_MIPS_TLS_TPREL32,
-  BFD_RELOC_MIPS_TLS_TPREL64,
-  BFD_RELOC_MIPS_TLS_TPREL_HI16,
-  BFD_RELOC_MICROMIPS_TLS_TPREL_HI16,
-  BFD_RELOC_MIPS_TLS_TPREL_LO16,
-  BFD_RELOC_MICROMIPS_TLS_TPREL_LO16,
-  BFD_RELOC_MIPS_EH,
-
-
-/* MIPS ELF relocations (VxWorks and PLT extensions).  */
-  BFD_RELOC_MIPS_COPY,
-  BFD_RELOC_MIPS_JUMP_SLOT,
-
-
-/* Moxie ELF relocations.  */
-  BFD_RELOC_MOXIE_10_PCREL,
-
-
-/* FT32 ELF relocations.  */
-  BFD_RELOC_FT32_10,
-  BFD_RELOC_FT32_20,
-  BFD_RELOC_FT32_17,
-  BFD_RELOC_FT32_18,
-  BFD_RELOC_FT32_RELAX,
-  BFD_RELOC_FT32_SC0,
-  BFD_RELOC_FT32_SC1,
-  BFD_RELOC_FT32_15,
-  BFD_RELOC_FT32_DIFF32,
-
-
-/* Fujitsu Frv Relocations.  */
-  BFD_RELOC_FRV_LABEL16,
-  BFD_RELOC_FRV_LABEL24,
-  BFD_RELOC_FRV_LO16,
-  BFD_RELOC_FRV_HI16,
-  BFD_RELOC_FRV_GPREL12,
-  BFD_RELOC_FRV_GPRELU12,
-  BFD_RELOC_FRV_GPREL32,
-  BFD_RELOC_FRV_GPRELHI,
-  BFD_RELOC_FRV_GPRELLO,
-  BFD_RELOC_FRV_GOT12,
-  BFD_RELOC_FRV_GOTHI,
-  BFD_RELOC_FRV_GOTLO,
-  BFD_RELOC_FRV_FUNCDESC,
-  BFD_RELOC_FRV_FUNCDESC_GOT12,
-  BFD_RELOC_FRV_FUNCDESC_GOTHI,
-  BFD_RELOC_FRV_FUNCDESC_GOTLO,
-  BFD_RELOC_FRV_FUNCDESC_VALUE,
-  BFD_RELOC_FRV_FUNCDESC_GOTOFF12,
-  BFD_RELOC_FRV_FUNCDESC_GOTOFFHI,
-  BFD_RELOC_FRV_FUNCDESC_GOTOFFLO,
-  BFD_RELOC_FRV_GOTOFF12,
-  BFD_RELOC_FRV_GOTOFFHI,
-  BFD_RELOC_FRV_GOTOFFLO,
-  BFD_RELOC_FRV_GETTLSOFF,
-  BFD_RELOC_FRV_TLSDESC_VALUE,
-  BFD_RELOC_FRV_GOTTLSDESC12,
-  BFD_RELOC_FRV_GOTTLSDESCHI,
-  BFD_RELOC_FRV_GOTTLSDESCLO,
-  BFD_RELOC_FRV_TLSMOFF12,
-  BFD_RELOC_FRV_TLSMOFFHI,
-  BFD_RELOC_FRV_TLSMOFFLO,
-  BFD_RELOC_FRV_GOTTLSOFF12,
-  BFD_RELOC_FRV_GOTTLSOFFHI,
-  BFD_RELOC_FRV_GOTTLSOFFLO,
-  BFD_RELOC_FRV_TLSOFF,
-  BFD_RELOC_FRV_TLSDESC_RELAX,
-  BFD_RELOC_FRV_GETTLSOFF_RELAX,
-  BFD_RELOC_FRV_TLSOFF_RELAX,
-  BFD_RELOC_FRV_TLSMOFF,
-
-
-/* This is a 24bit GOT-relative reloc for the mn10300.  */
-  BFD_RELOC_MN10300_GOTOFF24,
-
-/* This is a 32bit GOT-relative reloc for the mn10300, offset by two bytes
-in the instruction.  */
-  BFD_RELOC_MN10300_GOT32,
-
-/* This is a 24bit GOT-relative reloc for the mn10300, offset by two bytes
-in the instruction.  */
-  BFD_RELOC_MN10300_GOT24,
-
-/* This is a 16bit GOT-relative reloc for the mn10300, offset by two bytes
-in the instruction.  */
-  BFD_RELOC_MN10300_GOT16,
-
-/* Copy symbol at runtime.  */
-  BFD_RELOC_MN10300_COPY,
-
-/* Create GOT entry.  */
-  BFD_RELOC_MN10300_GLOB_DAT,
-
-/* Create PLT entry.  */
-  BFD_RELOC_MN10300_JMP_SLOT,
-
-/* Adjust by program base.  */
-  BFD_RELOC_MN10300_RELATIVE,
-
-/* Together with another reloc targeted at the same location,
-allows for a value that is the difference of two symbols
-in the same section.  */
-  BFD_RELOC_MN10300_SYM_DIFF,
-
-/* The addend of this reloc is an alignment power that must
-be honoured at the offset's location, regardless of linker
-relaxation.  */
-  BFD_RELOC_MN10300_ALIGN,
-
-/* Various TLS-related relocations.  */
-  BFD_RELOC_MN10300_TLS_GD,
-  BFD_RELOC_MN10300_TLS_LD,
-  BFD_RELOC_MN10300_TLS_LDO,
-  BFD_RELOC_MN10300_TLS_GOTIE,
-  BFD_RELOC_MN10300_TLS_IE,
-  BFD_RELOC_MN10300_TLS_LE,
-  BFD_RELOC_MN10300_TLS_DTPMOD,
-  BFD_RELOC_MN10300_TLS_DTPOFF,
-  BFD_RELOC_MN10300_TLS_TPOFF,
-
-/* This is a 32bit pcrel reloc for the mn10300, offset by two bytes in the
-instruction.  */
-  BFD_RELOC_MN10300_32_PCREL,
-
-/* This is a 16bit pcrel reloc for the mn10300, offset by two bytes in the
-instruction.  */
-  BFD_RELOC_MN10300_16_PCREL,
-
-
-/* i386/elf relocations  */
-  BFD_RELOC_386_GOT32,
-  BFD_RELOC_386_PLT32,
-  BFD_RELOC_386_COPY,
-  BFD_RELOC_386_GLOB_DAT,
-  BFD_RELOC_386_JUMP_SLOT,
-  BFD_RELOC_386_RELATIVE,
-  BFD_RELOC_386_GOTOFF,
-  BFD_RELOC_386_GOTPC,
-  BFD_RELOC_386_TLS_TPOFF,
-  BFD_RELOC_386_TLS_IE,
-  BFD_RELOC_386_TLS_GOTIE,
-  BFD_RELOC_386_TLS_LE,
-  BFD_RELOC_386_TLS_GD,
-  BFD_RELOC_386_TLS_LDM,
-  BFD_RELOC_386_TLS_LDO_32,
-  BFD_RELOC_386_TLS_IE_32,
-  BFD_RELOC_386_TLS_LE_32,
-  BFD_RELOC_386_TLS_DTPMOD32,
-  BFD_RELOC_386_TLS_DTPOFF32,
-  BFD_RELOC_386_TLS_TPOFF32,
-  BFD_RELOC_386_TLS_GOTDESC,
-  BFD_RELOC_386_TLS_DESC_CALL,
-  BFD_RELOC_386_TLS_DESC,
-  BFD_RELOC_386_IRELATIVE,
-  BFD_RELOC_386_GOT32X,
-
-/* x86-64/elf relocations  */
-  BFD_RELOC_X86_64_GOT32,
-  BFD_RELOC_X86_64_PLT32,
-  BFD_RELOC_X86_64_COPY,
-  BFD_RELOC_X86_64_GLOB_DAT,
-  BFD_RELOC_X86_64_JUMP_SLOT,
-  BFD_RELOC_X86_64_RELATIVE,
-  BFD_RELOC_X86_64_GOTPCREL,
-  BFD_RELOC_X86_64_32S,
-  BFD_RELOC_X86_64_DTPMOD64,
-  BFD_RELOC_X86_64_DTPOFF64,
-  BFD_RELOC_X86_64_TPOFF64,
-  BFD_RELOC_X86_64_TLSGD,
-  BFD_RELOC_X86_64_TLSLD,
-  BFD_RELOC_X86_64_DTPOFF32,
-  BFD_RELOC_X86_64_GOTTPOFF,
-  BFD_RELOC_X86_64_TPOFF32,
-  BFD_RELOC_X86_64_GOTOFF64,
-  BFD_RELOC_X86_64_GOTPC32,
-  BFD_RELOC_X86_64_GOT64,
-  BFD_RELOC_X86_64_GOTPCREL64,
-  BFD_RELOC_X86_64_GOTPC64,
-  BFD_RELOC_X86_64_GOTPLT64,
-  BFD_RELOC_X86_64_PLTOFF64,
-  BFD_RELOC_X86_64_GOTPC32_TLSDESC,
-  BFD_RELOC_X86_64_TLSDESC_CALL,
-  BFD_RELOC_X86_64_TLSDESC,
-  BFD_RELOC_X86_64_IRELATIVE,
-  BFD_RELOC_X86_64_PC32_BND,
-  BFD_RELOC_X86_64_PLT32_BND,
-  BFD_RELOC_X86_64_GOTPCRELX,
-  BFD_RELOC_X86_64_REX_GOTPCRELX,
-
-/* ns32k relocations  */
-  BFD_RELOC_NS32K_IMM_8,
-  BFD_RELOC_NS32K_IMM_16,
-  BFD_RELOC_NS32K_IMM_32,
-  BFD_RELOC_NS32K_IMM_8_PCREL,
-  BFD_RELOC_NS32K_IMM_16_PCREL,
-  BFD_RELOC_NS32K_IMM_32_PCREL,
-  BFD_RELOC_NS32K_DISP_8,
-  BFD_RELOC_NS32K_DISP_16,
-  BFD_RELOC_NS32K_DISP_32,
-  BFD_RELOC_NS32K_DISP_8_PCREL,
-  BFD_RELOC_NS32K_DISP_16_PCREL,
-  BFD_RELOC_NS32K_DISP_32_PCREL,
-
-/* PDP11 relocations  */
-  BFD_RELOC_PDP11_DISP_8_PCREL,
-  BFD_RELOC_PDP11_DISP_6_PCREL,
-
-/* Picojava relocs.  Not all of these appear in object files.  */
-  BFD_RELOC_PJ_CODE_HI16,
-  BFD_RELOC_PJ_CODE_LO16,
-  BFD_RELOC_PJ_CODE_DIR16,
-  BFD_RELOC_PJ_CODE_DIR32,
-  BFD_RELOC_PJ_CODE_REL16,
-  BFD_RELOC_PJ_CODE_REL32,
-
-/* Power(rs6000) and PowerPC relocations.  */
-  BFD_RELOC_PPC_B26,
-  BFD_RELOC_PPC_BA26,
-  BFD_RELOC_PPC_TOC16,
-  BFD_RELOC_PPC_B16,
-  BFD_RELOC_PPC_B16_BRTAKEN,
-  BFD_RELOC_PPC_B16_BRNTAKEN,
-  BFD_RELOC_PPC_BA16,
-  BFD_RELOC_PPC_BA16_BRTAKEN,
-  BFD_RELOC_PPC_BA16_BRNTAKEN,
-  BFD_RELOC_PPC_COPY,
-  BFD_RELOC_PPC_GLOB_DAT,
-  BFD_RELOC_PPC_JMP_SLOT,
-  BFD_RELOC_PPC_RELATIVE,
-  BFD_RELOC_PPC_LOCAL24PC,
-  BFD_RELOC_PPC_EMB_NADDR32,
-  BFD_RELOC_PPC_EMB_NADDR16,
-  BFD_RELOC_PPC_EMB_NADDR16_LO,
-  BFD_RELOC_PPC_EMB_NADDR16_HI,
-  BFD_RELOC_PPC_EMB_NADDR16_HA,
-  BFD_RELOC_PPC_EMB_SDAI16,
-  BFD_RELOC_PPC_EMB_SDA2I16,
-  BFD_RELOC_PPC_EMB_SDA2REL,
-  BFD_RELOC_PPC_EMB_SDA21,
-  BFD_RELOC_PPC_EMB_MRKREF,
-  BFD_RELOC_PPC_EMB_RELSEC16,
-  BFD_RELOC_PPC_EMB_RELST_LO,
-  BFD_RELOC_PPC_EMB_RELST_HI,
-  BFD_RELOC_PPC_EMB_RELST_HA,
-  BFD_RELOC_PPC_EMB_BIT_FLD,
-  BFD_RELOC_PPC_EMB_RELSDA,
-  BFD_RELOC_PPC_VLE_REL8,
-  BFD_RELOC_PPC_VLE_REL15,
-  BFD_RELOC_PPC_VLE_REL24,
-  BFD_RELOC_PPC_VLE_LO16A,
-  BFD_RELOC_PPC_VLE_LO16D,
-  BFD_RELOC_PPC_VLE_HI16A,
-  BFD_RELOC_PPC_VLE_HI16D,
-  BFD_RELOC_PPC_VLE_HA16A,
-  BFD_RELOC_PPC_VLE_HA16D,
-  BFD_RELOC_PPC_VLE_SDA21,
-  BFD_RELOC_PPC_VLE_SDA21_LO,
-  BFD_RELOC_PPC_VLE_SDAREL_LO16A,
-  BFD_RELOC_PPC_VLE_SDAREL_LO16D,
-  BFD_RELOC_PPC_VLE_SDAREL_HI16A,
-  BFD_RELOC_PPC_VLE_SDAREL_HI16D,
-  BFD_RELOC_PPC_VLE_SDAREL_HA16A,
-  BFD_RELOC_PPC_VLE_SDAREL_HA16D,
-  BFD_RELOC_PPC_16DX_HA,
-  BFD_RELOC_PPC_REL16DX_HA,
-  BFD_RELOC_PPC64_HIGHER,
-  BFD_RELOC_PPC64_HIGHER_S,
-  BFD_RELOC_PPC64_HIGHEST,
-  BFD_RELOC_PPC64_HIGHEST_S,
-  BFD_RELOC_PPC64_TOC16_LO,
-  BFD_RELOC_PPC64_TOC16_HI,
-  BFD_RELOC_PPC64_TOC16_HA,
-  BFD_RELOC_PPC64_TOC,
-  BFD_RELOC_PPC64_PLTGOT16,
-  BFD_RELOC_PPC64_PLTGOT16_LO,
-  BFD_RELOC_PPC64_PLTGOT16_HI,
-  BFD_RELOC_PPC64_PLTGOT16_HA,
-  BFD_RELOC_PPC64_ADDR16_DS,
-  BFD_RELOC_PPC64_ADDR16_LO_DS,
-  BFD_RELOC_PPC64_GOT16_DS,
-  BFD_RELOC_PPC64_GOT16_LO_DS,
-  BFD_RELOC_PPC64_PLT16_LO_DS,
-  BFD_RELOC_PPC64_SECTOFF_DS,
-  BFD_RELOC_PPC64_SECTOFF_LO_DS,
-  BFD_RELOC_PPC64_TOC16_DS,
-  BFD_RELOC_PPC64_TOC16_LO_DS,
-  BFD_RELOC_PPC64_PLTGOT16_DS,
-  BFD_RELOC_PPC64_PLTGOT16_LO_DS,
-  BFD_RELOC_PPC64_ADDR16_HIGH,
-  BFD_RELOC_PPC64_ADDR16_HIGHA,
-  BFD_RELOC_PPC64_REL16_HIGH,
-  BFD_RELOC_PPC64_REL16_HIGHA,
-  BFD_RELOC_PPC64_REL16_HIGHER,
-  BFD_RELOC_PPC64_REL16_HIGHERA,
-  BFD_RELOC_PPC64_REL16_HIGHEST,
-  BFD_RELOC_PPC64_REL16_HIGHESTA,
-  BFD_RELOC_PPC64_ADDR64_LOCAL,
-  BFD_RELOC_PPC64_ENTRY,
-  BFD_RELOC_PPC64_REL24_NOTOC,
-  BFD_RELOC_PPC64_D34,
-  BFD_RELOC_PPC64_D34_LO,
-  BFD_RELOC_PPC64_D34_HI30,
-  BFD_RELOC_PPC64_D34_HA30,
-  BFD_RELOC_PPC64_PCREL34,
-  BFD_RELOC_PPC64_GOT_PCREL34,
-  BFD_RELOC_PPC64_PLT_PCREL34,
-  BFD_RELOC_PPC64_ADDR16_HIGHER34,
-  BFD_RELOC_PPC64_ADDR16_HIGHERA34,
-  BFD_RELOC_PPC64_ADDR16_HIGHEST34,
-  BFD_RELOC_PPC64_ADDR16_HIGHESTA34,
-  BFD_RELOC_PPC64_REL16_HIGHER34,
-  BFD_RELOC_PPC64_REL16_HIGHERA34,
-  BFD_RELOC_PPC64_REL16_HIGHEST34,
-  BFD_RELOC_PPC64_REL16_HIGHESTA34,
-  BFD_RELOC_PPC64_D28,
-  BFD_RELOC_PPC64_PCREL28,
-
-/* PowerPC and PowerPC64 thread-local storage relocations.  */
-  BFD_RELOC_PPC_TLS,
-  BFD_RELOC_PPC_TLSGD,
-  BFD_RELOC_PPC_TLSLD,
-  BFD_RELOC_PPC_DTPMOD,
-  BFD_RELOC_PPC_TPREL16,
-  BFD_RELOC_PPC_TPREL16_LO,
-  BFD_RELOC_PPC_TPREL16_HI,
-  BFD_RELOC_PPC_TPREL16_HA,
-  BFD_RELOC_PPC_TPREL,
-  BFD_RELOC_PPC_DTPREL16,
-  BFD_RELOC_PPC_DTPREL16_LO,
-  BFD_RELOC_PPC_DTPREL16_HI,
-  BFD_RELOC_PPC_DTPREL16_HA,
-  BFD_RELOC_PPC_DTPREL,
-  BFD_RELOC_PPC_GOT_TLSGD16,
-  BFD_RELOC_PPC_GOT_TLSGD16_LO,
-  BFD_RELOC_PPC_GOT_TLSGD16_HI,
-  BFD_RELOC_PPC_GOT_TLSGD16_HA,
-  BFD_RELOC_PPC_GOT_TLSLD16,
-  BFD_RELOC_PPC_GOT_TLSLD16_LO,
-  BFD_RELOC_PPC_GOT_TLSLD16_HI,
-  BFD_RELOC_PPC_GOT_TLSLD16_HA,
-  BFD_RELOC_PPC_GOT_TPREL16,
-  BFD_RELOC_PPC_GOT_TPREL16_LO,
-  BFD_RELOC_PPC_GOT_TPREL16_HI,
-  BFD_RELOC_PPC_GOT_TPREL16_HA,
-  BFD_RELOC_PPC_GOT_DTPREL16,
-  BFD_RELOC_PPC_GOT_DTPREL16_LO,
-  BFD_RELOC_PPC_GOT_DTPREL16_HI,
-  BFD_RELOC_PPC_GOT_DTPREL16_HA,
-  BFD_RELOC_PPC64_TPREL16_DS,
-  BFD_RELOC_PPC64_TPREL16_LO_DS,
-  BFD_RELOC_PPC64_TPREL16_HIGH,
-  BFD_RELOC_PPC64_TPREL16_HIGHA,
-  BFD_RELOC_PPC64_TPREL16_HIGHER,
-  BFD_RELOC_PPC64_TPREL16_HIGHERA,
-  BFD_RELOC_PPC64_TPREL16_HIGHEST,
-  BFD_RELOC_PPC64_TPREL16_HIGHESTA,
-  BFD_RELOC_PPC64_DTPREL16_DS,
-  BFD_RELOC_PPC64_DTPREL16_LO_DS,
-  BFD_RELOC_PPC64_DTPREL16_HIGH,
-  BFD_RELOC_PPC64_DTPREL16_HIGHA,
-  BFD_RELOC_PPC64_DTPREL16_HIGHER,
-  BFD_RELOC_PPC64_DTPREL16_HIGHERA,
-  BFD_RELOC_PPC64_DTPREL16_HIGHEST,
-  BFD_RELOC_PPC64_DTPREL16_HIGHESTA,
-  BFD_RELOC_PPC64_TPREL34,
-  BFD_RELOC_PPC64_DTPREL34,
-  BFD_RELOC_PPC64_GOT_TLSGD_PCREL34,
-  BFD_RELOC_PPC64_GOT_TLSLD_PCREL34,
-  BFD_RELOC_PPC64_GOT_TPREL_PCREL34,
-  BFD_RELOC_PPC64_GOT_DTPREL_PCREL34,
-  BFD_RELOC_PPC64_TLS_PCREL,
-
-/* IBM 370/390 relocations  */
-  BFD_RELOC_I370_D12,
-
-/* The type of reloc used to build a constructor table - at the moment
-probably a 32 bit wide absolute relocation, but the target can choose.
-It generally does map to one of the other relocation types.  */
-  BFD_RELOC_CTOR,
-
-/* ARM 26 bit pc-relative branch.  The lowest two bits must be zero and are
-not stored in the instruction.  */
-  BFD_RELOC_ARM_PCREL_BRANCH,
-
-/* ARM 26 bit pc-relative branch.  The lowest bit must be zero and is
-not stored in the instruction.  The 2nd lowest bit comes from a 1 bit
-field in the instruction.  */
-  BFD_RELOC_ARM_PCREL_BLX,
-
-/* Thumb 22 bit pc-relative branch.  The lowest bit must be zero and is
-not stored in the instruction.  The 2nd lowest bit comes from a 1 bit
-field in the instruction.  */
-  BFD_RELOC_THUMB_PCREL_BLX,
-
-/* ARM 26-bit pc-relative branch for an unconditional BL or BLX instruction.  */
-  BFD_RELOC_ARM_PCREL_CALL,
-
-/* ARM 26-bit pc-relative branch for B or conditional BL instruction.  */
-  BFD_RELOC_ARM_PCREL_JUMP,
-
-/* ARM 5-bit pc-relative branch for Branch Future instructions.  */
-  BFD_RELOC_THUMB_PCREL_BRANCH5,
-
-/* ARM 6-bit pc-relative branch for BFCSEL instruction.  */
-  BFD_RELOC_THUMB_PCREL_BFCSEL,
-
-/* ARM 17-bit pc-relative branch for Branch Future instructions.  */
-  BFD_RELOC_ARM_THUMB_BF17,
-
-/* ARM 13-bit pc-relative branch for BFCSEL instruction.  */
-  BFD_RELOC_ARM_THUMB_BF13,
-
-/* ARM 19-bit pc-relative branch for Branch Future Link instruction.  */
-  BFD_RELOC_ARM_THUMB_BF19,
-
-/* ARM 12-bit pc-relative branch for Low Overhead Loop instructions.  */
-  BFD_RELOC_ARM_THUMB_LOOP12,
-
-/* Thumb 7-, 9-, 12-, 20-, 23-, and 25-bit pc-relative branches.
-The lowest bit must be zero and is not stored in the instruction.
-Note that the corresponding ELF R_ARM_THM_JUMPnn constant has an
-"nn" one smaller in all cases.  Note further that BRANCH23
-corresponds to R_ARM_THM_CALL.  */
-  BFD_RELOC_THUMB_PCREL_BRANCH7,
-  BFD_RELOC_THUMB_PCREL_BRANCH9,
-  BFD_RELOC_THUMB_PCREL_BRANCH12,
-  BFD_RELOC_THUMB_PCREL_BRANCH20,
-  BFD_RELOC_THUMB_PCREL_BRANCH23,
-  BFD_RELOC_THUMB_PCREL_BRANCH25,
-
-/* 12-bit immediate offset, used in ARM-format ldr and str instructions.  */
-  BFD_RELOC_ARM_OFFSET_IMM,
-
-/* 5-bit immediate offset, used in Thumb-format ldr and str instructions.  */
-  BFD_RELOC_ARM_THUMB_OFFSET,
-
-/* Pc-relative or absolute relocation depending on target.  Used for
-entries in .init_array sections.  */
-  BFD_RELOC_ARM_TARGET1,
-
-/* Read-only segment base relative address.  */
-  BFD_RELOC_ARM_ROSEGREL32,
-
-/* Data segment base relative address.  */
-  BFD_RELOC_ARM_SBREL32,
-
-/* This reloc is used for references to RTTI data from exception handling
-tables.  The actual definition depends on the target.  It may be a
-pc-relative or some form of GOT-indirect relocation.  */
-  BFD_RELOC_ARM_TARGET2,
-
-/* 31-bit PC relative address.  */
-  BFD_RELOC_ARM_PREL31,
-
-/* Low and High halfword relocations for MOVW and MOVT instructions.  */
-  BFD_RELOC_ARM_MOVW,
-  BFD_RELOC_ARM_MOVT,
-  BFD_RELOC_ARM_MOVW_PCREL,
-  BFD_RELOC_ARM_MOVT_PCREL,
-  BFD_RELOC_ARM_THUMB_MOVW,
-  BFD_RELOC_ARM_THUMB_MOVT,
-  BFD_RELOC_ARM_THUMB_MOVW_PCREL,
-  BFD_RELOC_ARM_THUMB_MOVT_PCREL,
-
-/* ARM FDPIC specific relocations.  */
-  BFD_RELOC_ARM_GOTFUNCDESC,
-  BFD_RELOC_ARM_GOTOFFFUNCDESC,
-  BFD_RELOC_ARM_FUNCDESC,
-  BFD_RELOC_ARM_FUNCDESC_VALUE,
-  BFD_RELOC_ARM_TLS_GD32_FDPIC,
-  BFD_RELOC_ARM_TLS_LDM32_FDPIC,
-  BFD_RELOC_ARM_TLS_IE32_FDPIC,
-
-/* Relocations for setting up GOTs and PLTs for shared libraries.  */
-  BFD_RELOC_ARM_JUMP_SLOT,
-  BFD_RELOC_ARM_GLOB_DAT,
-  BFD_RELOC_ARM_GOT32,
-  BFD_RELOC_ARM_PLT32,
-  BFD_RELOC_ARM_RELATIVE,
-  BFD_RELOC_ARM_GOTOFF,
-  BFD_RELOC_ARM_GOTPC,
-  BFD_RELOC_ARM_GOT_PREL,
-
-/* ARM thread-local storage relocations.  */
-  BFD_RELOC_ARM_TLS_GD32,
-  BFD_RELOC_ARM_TLS_LDO32,
-  BFD_RELOC_ARM_TLS_LDM32,
-  BFD_RELOC_ARM_TLS_DTPOFF32,
-  BFD_RELOC_ARM_TLS_DTPMOD32,
-  BFD_RELOC_ARM_TLS_TPOFF32,
-  BFD_RELOC_ARM_TLS_IE32,
-  BFD_RELOC_ARM_TLS_LE32,
-  BFD_RELOC_ARM_TLS_GOTDESC,
-  BFD_RELOC_ARM_TLS_CALL,
-  BFD_RELOC_ARM_THM_TLS_CALL,
-  BFD_RELOC_ARM_TLS_DESCSEQ,
-  BFD_RELOC_ARM_THM_TLS_DESCSEQ,
-  BFD_RELOC_ARM_TLS_DESC,
-
-/* ARM group relocations.  */
-  BFD_RELOC_ARM_ALU_PC_G0_NC,
-  BFD_RELOC_ARM_ALU_PC_G0,
-  BFD_RELOC_ARM_ALU_PC_G1_NC,
-  BFD_RELOC_ARM_ALU_PC_G1,
-  BFD_RELOC_ARM_ALU_PC_G2,
-  BFD_RELOC_ARM_LDR_PC_G0,
-  BFD_RELOC_ARM_LDR_PC_G1,
-  BFD_RELOC_ARM_LDR_PC_G2,
-  BFD_RELOC_ARM_LDRS_PC_G0,
-  BFD_RELOC_ARM_LDRS_PC_G1,
-  BFD_RELOC_ARM_LDRS_PC_G2,
-  BFD_RELOC_ARM_LDC_PC_G0,
-  BFD_RELOC_ARM_LDC_PC_G1,
-  BFD_RELOC_ARM_LDC_PC_G2,
-  BFD_RELOC_ARM_ALU_SB_G0_NC,
-  BFD_RELOC_ARM_ALU_SB_G0,
-  BFD_RELOC_ARM_ALU_SB_G1_NC,
-  BFD_RELOC_ARM_ALU_SB_G1,
-  BFD_RELOC_ARM_ALU_SB_G2,
-  BFD_RELOC_ARM_LDR_SB_G0,
-  BFD_RELOC_ARM_LDR_SB_G1,
-  BFD_RELOC_ARM_LDR_SB_G2,
-  BFD_RELOC_ARM_LDRS_SB_G0,
-  BFD_RELOC_ARM_LDRS_SB_G1,
-  BFD_RELOC_ARM_LDRS_SB_G2,
-  BFD_RELOC_ARM_LDC_SB_G0,
-  BFD_RELOC_ARM_LDC_SB_G1,
-  BFD_RELOC_ARM_LDC_SB_G2,
-
-/* Annotation of BX instructions.  */
-  BFD_RELOC_ARM_V4BX,
-
-/* ARM support for STT_GNU_IFUNC.  */
-  BFD_RELOC_ARM_IRELATIVE,
-
-/* Thumb1 relocations to support execute-only code.  */
-  BFD_RELOC_ARM_THUMB_ALU_ABS_G0_NC,
-  BFD_RELOC_ARM_THUMB_ALU_ABS_G1_NC,
-  BFD_RELOC_ARM_THUMB_ALU_ABS_G2_NC,
-  BFD_RELOC_ARM_THUMB_ALU_ABS_G3_NC,
-
-/* These relocs are only used within the ARM assembler.  They are not
-(at present) written to any object files.  */
-  BFD_RELOC_ARM_IMMEDIATE,
-  BFD_RELOC_ARM_ADRL_IMMEDIATE,
-  BFD_RELOC_ARM_T32_IMMEDIATE,
-  BFD_RELOC_ARM_T32_ADD_IMM,
-  BFD_RELOC_ARM_T32_IMM12,
-  BFD_RELOC_ARM_T32_ADD_PC12,
-  BFD_RELOC_ARM_SHIFT_IMM,
-  BFD_RELOC_ARM_SMC,
-  BFD_RELOC_ARM_HVC,
-  BFD_RELOC_ARM_SWI,
-  BFD_RELOC_ARM_MULTI,
-  BFD_RELOC_ARM_CP_OFF_IMM,
-  BFD_RELOC_ARM_CP_OFF_IMM_S2,
-  BFD_RELOC_ARM_T32_CP_OFF_IMM,
-  BFD_RELOC_ARM_T32_CP_OFF_IMM_S2,
-  BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM,
-  BFD_RELOC_ARM_ADR_IMM,
-  BFD_RELOC_ARM_LDR_IMM,
-  BFD_RELOC_ARM_LITERAL,
-  BFD_RELOC_ARM_IN_POOL,
-  BFD_RELOC_ARM_OFFSET_IMM8,
-  BFD_RELOC_ARM_T32_OFFSET_U8,
-  BFD_RELOC_ARM_T32_OFFSET_IMM,
-  BFD_RELOC_ARM_HWLITERAL,
-  BFD_RELOC_ARM_THUMB_ADD,
-  BFD_RELOC_ARM_THUMB_IMM,
-  BFD_RELOC_ARM_THUMB_SHIFT,
-
-/* Renesas / SuperH SH relocs.  Not all of these appear in object files.  */
-  BFD_RELOC_SH_PCDISP8BY2,
-  BFD_RELOC_SH_PCDISP12BY2,
-  BFD_RELOC_SH_IMM3,
-  BFD_RELOC_SH_IMM3U,
-  BFD_RELOC_SH_DISP12,
-  BFD_RELOC_SH_DISP12BY2,
-  BFD_RELOC_SH_DISP12BY4,
-  BFD_RELOC_SH_DISP12BY8,
-  BFD_RELOC_SH_DISP20,
-  BFD_RELOC_SH_DISP20BY8,
-  BFD_RELOC_SH_IMM4,
-  BFD_RELOC_SH_IMM4BY2,
-  BFD_RELOC_SH_IMM4BY4,
-  BFD_RELOC_SH_IMM8,
-  BFD_RELOC_SH_IMM8BY2,
-  BFD_RELOC_SH_IMM8BY4,
-  BFD_RELOC_SH_PCRELIMM8BY2,
-  BFD_RELOC_SH_PCRELIMM8BY4,
-  BFD_RELOC_SH_SWITCH16,
-  BFD_RELOC_SH_SWITCH32,
-  BFD_RELOC_SH_USES,
-  BFD_RELOC_SH_COUNT,
-  BFD_RELOC_SH_ALIGN,
-  BFD_RELOC_SH_CODE,
-  BFD_RELOC_SH_DATA,
-  BFD_RELOC_SH_LABEL,
-  BFD_RELOC_SH_LOOP_START,
-  BFD_RELOC_SH_LOOP_END,
-  BFD_RELOC_SH_COPY,
-  BFD_RELOC_SH_GLOB_DAT,
-  BFD_RELOC_SH_JMP_SLOT,
-  BFD_RELOC_SH_RELATIVE,
-  BFD_RELOC_SH_GOTPC,
-  BFD_RELOC_SH_GOT_LOW16,
-  BFD_RELOC_SH_GOT_MEDLOW16,
-  BFD_RELOC_SH_GOT_MEDHI16,
-  BFD_RELOC_SH_GOT_HI16,
-  BFD_RELOC_SH_GOTPLT_LOW16,
-  BFD_RELOC_SH_GOTPLT_MEDLOW16,
-  BFD_RELOC_SH_GOTPLT_MEDHI16,
-  BFD_RELOC_SH_GOTPLT_HI16,
-  BFD_RELOC_SH_PLT_LOW16,
-  BFD_RELOC_SH_PLT_MEDLOW16,
-  BFD_RELOC_SH_PLT_MEDHI16,
-  BFD_RELOC_SH_PLT_HI16,
-  BFD_RELOC_SH_GOTOFF_LOW16,
-  BFD_RELOC_SH_GOTOFF_MEDLOW16,
-  BFD_RELOC_SH_GOTOFF_MEDHI16,
-  BFD_RELOC_SH_GOTOFF_HI16,
-  BFD_RELOC_SH_GOTPC_LOW16,
-  BFD_RELOC_SH_GOTPC_MEDLOW16,
-  BFD_RELOC_SH_GOTPC_MEDHI16,
-  BFD_RELOC_SH_GOTPC_HI16,
-  BFD_RELOC_SH_COPY64,
-  BFD_RELOC_SH_GLOB_DAT64,
-  BFD_RELOC_SH_JMP_SLOT64,
-  BFD_RELOC_SH_RELATIVE64,
-  BFD_RELOC_SH_GOT10BY4,
-  BFD_RELOC_SH_GOT10BY8,
-  BFD_RELOC_SH_GOTPLT10BY4,
-  BFD_RELOC_SH_GOTPLT10BY8,
-  BFD_RELOC_SH_GOTPLT32,
-  BFD_RELOC_SH_SHMEDIA_CODE,
-  BFD_RELOC_SH_IMMU5,
-  BFD_RELOC_SH_IMMS6,
-  BFD_RELOC_SH_IMMS6BY32,
-  BFD_RELOC_SH_IMMU6,
-  BFD_RELOC_SH_IMMS10,
-  BFD_RELOC_SH_IMMS10BY2,
-  BFD_RELOC_SH_IMMS10BY4,
-  BFD_RELOC_SH_IMMS10BY8,
-  BFD_RELOC_SH_IMMS16,
-  BFD_RELOC_SH_IMMU16,
-  BFD_RELOC_SH_IMM_LOW16,
-  BFD_RELOC_SH_IMM_LOW16_PCREL,
-  BFD_RELOC_SH_IMM_MEDLOW16,
-  BFD_RELOC_SH_IMM_MEDLOW16_PCREL,
-  BFD_RELOC_SH_IMM_MEDHI16,
-  BFD_RELOC_SH_IMM_MEDHI16_PCREL,
-  BFD_RELOC_SH_IMM_HI16,
-  BFD_RELOC_SH_IMM_HI16_PCREL,
-  BFD_RELOC_SH_PT_16,
-  BFD_RELOC_SH_TLS_GD_32,
-  BFD_RELOC_SH_TLS_LD_32,
-  BFD_RELOC_SH_TLS_LDO_32,
-  BFD_RELOC_SH_TLS_IE_32,
-  BFD_RELOC_SH_TLS_LE_32,
-  BFD_RELOC_SH_TLS_DTPMOD32,
-  BFD_RELOC_SH_TLS_DTPOFF32,
-  BFD_RELOC_SH_TLS_TPOFF32,
-  BFD_RELOC_SH_GOT20,
-  BFD_RELOC_SH_GOTOFF20,
-  BFD_RELOC_SH_GOTFUNCDESC,
-  BFD_RELOC_SH_GOTFUNCDESC20,
-  BFD_RELOC_SH_GOTOFFFUNCDESC,
-  BFD_RELOC_SH_GOTOFFFUNCDESC20,
-  BFD_RELOC_SH_FUNCDESC,
-
-/* ARC relocs.  */
-  BFD_RELOC_ARC_NONE,
-  BFD_RELOC_ARC_8,
-  BFD_RELOC_ARC_16,
-  BFD_RELOC_ARC_24,
-  BFD_RELOC_ARC_32,
-  BFD_RELOC_ARC_N8,
-  BFD_RELOC_ARC_N16,
-  BFD_RELOC_ARC_N24,
-  BFD_RELOC_ARC_N32,
-  BFD_RELOC_ARC_SDA,
-  BFD_RELOC_ARC_SECTOFF,
-  BFD_RELOC_ARC_S21H_PCREL,
-  BFD_RELOC_ARC_S21W_PCREL,
-  BFD_RELOC_ARC_S25H_PCREL,
-  BFD_RELOC_ARC_S25W_PCREL,
-  BFD_RELOC_ARC_SDA32,
-  BFD_RELOC_ARC_SDA_LDST,
-  BFD_RELOC_ARC_SDA_LDST1,
-  BFD_RELOC_ARC_SDA_LDST2,
-  BFD_RELOC_ARC_SDA16_LD,
-  BFD_RELOC_ARC_SDA16_LD1,
-  BFD_RELOC_ARC_SDA16_LD2,
-  BFD_RELOC_ARC_S13_PCREL,
-  BFD_RELOC_ARC_W,
-  BFD_RELOC_ARC_32_ME,
-  BFD_RELOC_ARC_32_ME_S,
-  BFD_RELOC_ARC_N32_ME,
-  BFD_RELOC_ARC_SECTOFF_ME,
-  BFD_RELOC_ARC_SDA32_ME,
-  BFD_RELOC_ARC_W_ME,
-  BFD_RELOC_AC_SECTOFF_U8,
-  BFD_RELOC_AC_SECTOFF_U8_1,
-  BFD_RELOC_AC_SECTOFF_U8_2,
-  BFD_RELOC_AC_SECTOFF_S9,
-  BFD_RELOC_AC_SECTOFF_S9_1,
-  BFD_RELOC_AC_SECTOFF_S9_2,
-  BFD_RELOC_ARC_SECTOFF_ME_1,
-  BFD_RELOC_ARC_SECTOFF_ME_2,
-  BFD_RELOC_ARC_SECTOFF_1,
-  BFD_RELOC_ARC_SECTOFF_2,
-  BFD_RELOC_ARC_SDA_12,
-  BFD_RELOC_ARC_SDA16_ST2,
-  BFD_RELOC_ARC_32_PCREL,
-  BFD_RELOC_ARC_PC32,
-  BFD_RELOC_ARC_GOT32,
-  BFD_RELOC_ARC_GOTPC32,
-  BFD_RELOC_ARC_PLT32,
-  BFD_RELOC_ARC_COPY,
-  BFD_RELOC_ARC_GLOB_DAT,
-  BFD_RELOC_ARC_JMP_SLOT,
-  BFD_RELOC_ARC_RELATIVE,
-  BFD_RELOC_ARC_GOTOFF,
-  BFD_RELOC_ARC_GOTPC,
-  BFD_RELOC_ARC_S21W_PCREL_PLT,
-  BFD_RELOC_ARC_S25H_PCREL_PLT,
-  BFD_RELOC_ARC_TLS_DTPMOD,
-  BFD_RELOC_ARC_TLS_TPOFF,
-  BFD_RELOC_ARC_TLS_GD_GOT,
-  BFD_RELOC_ARC_TLS_GD_LD,
-  BFD_RELOC_ARC_TLS_GD_CALL,
-  BFD_RELOC_ARC_TLS_IE_GOT,
-  BFD_RELOC_ARC_TLS_DTPOFF,
-  BFD_RELOC_ARC_TLS_DTPOFF_S9,
-  BFD_RELOC_ARC_TLS_LE_S9,
-  BFD_RELOC_ARC_TLS_LE_32,
-  BFD_RELOC_ARC_S25W_PCREL_PLT,
-  BFD_RELOC_ARC_S21H_PCREL_PLT,
-  BFD_RELOC_ARC_NPS_CMEM16,
-  BFD_RELOC_ARC_JLI_SECTOFF,
-
-/* ADI Blackfin 16 bit immediate absolute reloc.  */
-  BFD_RELOC_BFIN_16_IMM,
-
-/* ADI Blackfin 16 bit immediate absolute reloc higher 16 bits.  */
-  BFD_RELOC_BFIN_16_HIGH,
-
-/* ADI Blackfin 'a' part of LSETUP.  */
-  BFD_RELOC_BFIN_4_PCREL,
-
-/* ADI Blackfin.  */
-  BFD_RELOC_BFIN_5_PCREL,
-
-/* ADI Blackfin 16 bit immediate absolute reloc lower 16 bits.  */
-  BFD_RELOC_BFIN_16_LOW,
-
-/* ADI Blackfin.  */
-  BFD_RELOC_BFIN_10_PCREL,
-
-/* ADI Blackfin 'b' part of LSETUP.  */
-  BFD_RELOC_BFIN_11_PCREL,
-
-/* ADI Blackfin.  */
-  BFD_RELOC_BFIN_12_PCREL_JUMP,
-
-/* ADI Blackfin Short jump, pcrel.  */
-  BFD_RELOC_BFIN_12_PCREL_JUMP_S,
-
-/* ADI Blackfin Call.x not implemented.  */
-  BFD_RELOC_BFIN_24_PCREL_CALL_X,
-
-/* ADI Blackfin Long Jump pcrel.  */
-  BFD_RELOC_BFIN_24_PCREL_JUMP_L,
-
-/* ADI Blackfin FD-PIC relocations.  */
-  BFD_RELOC_BFIN_GOT17M4,
-  BFD_RELOC_BFIN_GOTHI,
-  BFD_RELOC_BFIN_GOTLO,
-  BFD_RELOC_BFIN_FUNCDESC,
-  BFD_RELOC_BFIN_FUNCDESC_GOT17M4,
-  BFD_RELOC_BFIN_FUNCDESC_GOTHI,
-  BFD_RELOC_BFIN_FUNCDESC_GOTLO,
-  BFD_RELOC_BFIN_FUNCDESC_VALUE,
-  BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4,
-  BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
-  BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO,
-  BFD_RELOC_BFIN_GOTOFF17M4,
-  BFD_RELOC_BFIN_GOTOFFHI,
-  BFD_RELOC_BFIN_GOTOFFLO,
-
-/* ADI Blackfin GOT relocation.  */
-  BFD_RELOC_BFIN_GOT,
-
-/* ADI Blackfin PLTPC relocation.  */
-  BFD_RELOC_BFIN_PLTPC,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_PUSH,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_CONST,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_ADD,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_SUB,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_MULT,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_DIV,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_MOD,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_LSHIFT,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_RSHIFT,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_AND,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_OR,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_XOR,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_LAND,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_LOR,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_LEN,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_NEG,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_COMP,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_PAGE,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_HWPAGE,
-
-/* ADI Blackfin arithmetic relocation.  */
-  BFD_ARELOC_BFIN_ADDR,
-
-/* Mitsubishi D10V relocs.
-This is a 10-bit reloc with the right 2 bits
-assumed to be 0.  */
-  BFD_RELOC_D10V_10_PCREL_R,
-
-/* Mitsubishi D10V relocs.
-This is a 10-bit reloc with the right 2 bits
-assumed to be 0.  This is the same as the previous reloc
-except it is in the left container, i.e.,
-shifted left 15 bits.  */
-  BFD_RELOC_D10V_10_PCREL_L,
-
-/* This is an 18-bit reloc with the right 2 bits
-assumed to be 0.  */
-  BFD_RELOC_D10V_18,
-
-/* This is an 18-bit reloc with the right 2 bits
-assumed to be 0.  */
-  BFD_RELOC_D10V_18_PCREL,
-
-/* Mitsubishi D30V relocs.
-This is a 6-bit absolute reloc.  */
-  BFD_RELOC_D30V_6,
-
-/* This is a 6-bit pc-relative reloc with
-the right 3 bits assumed to be 0.  */
-  BFD_RELOC_D30V_9_PCREL,
-
-/* This is a 6-bit pc-relative reloc with
-the right 3 bits assumed to be 0. Same
-as the previous reloc but on the right side
-of the container.  */
-  BFD_RELOC_D30V_9_PCREL_R,
-
-/* This is a 12-bit absolute reloc with the
-right 3 bitsassumed to be 0.  */
-  BFD_RELOC_D30V_15,
-
-/* This is a 12-bit pc-relative reloc with
-the right 3 bits assumed to be 0.  */
-  BFD_RELOC_D30V_15_PCREL,
-
-/* This is a 12-bit pc-relative reloc with
-the right 3 bits assumed to be 0. Same
-as the previous reloc but on the right side
-of the container.  */
-  BFD_RELOC_D30V_15_PCREL_R,
-
-/* This is an 18-bit absolute reloc with
-the right 3 bits assumed to be 0.  */
-  BFD_RELOC_D30V_21,
-
-/* This is an 18-bit pc-relative reloc with
-the right 3 bits assumed to be 0.  */
-  BFD_RELOC_D30V_21_PCREL,
-
-/* This is an 18-bit pc-relative reloc with
-the right 3 bits assumed to be 0. Same
-as the previous reloc but on the right side
-of the container.  */
-  BFD_RELOC_D30V_21_PCREL_R,
-
-/* This is a 32-bit absolute reloc.  */
-  BFD_RELOC_D30V_32,
-
-/* This is a 32-bit pc-relative reloc.  */
-  BFD_RELOC_D30V_32_PCREL,
-
-/* DLX relocs  */
-  BFD_RELOC_DLX_HI16_S,
-
-/* DLX relocs  */
-  BFD_RELOC_DLX_LO16,
-
-/* DLX relocs  */
-  BFD_RELOC_DLX_JMP26,
-
-/* Renesas M16C/M32C Relocations.  */
-  BFD_RELOC_M32C_HI8,
-  BFD_RELOC_M32C_RL_JUMP,
-  BFD_RELOC_M32C_RL_1ADDR,
-  BFD_RELOC_M32C_RL_2ADDR,
-
-/* Renesas M32R (formerly Mitsubishi M32R) relocs.
-This is a 24 bit absolute address.  */
-  BFD_RELOC_M32R_24,
-
-/* This is a 10-bit pc-relative reloc with the right 2 bits assumed to be 0.  */
-  BFD_RELOC_M32R_10_PCREL,
-
-/* This is an 18-bit reloc with the right 2 bits assumed to be 0.  */
-  BFD_RELOC_M32R_18_PCREL,
-
-/* This is a 26-bit reloc with the right 2 bits assumed to be 0.  */
-  BFD_RELOC_M32R_26_PCREL,
-
-/* This is a 16-bit reloc containing the high 16 bits of an address
-used when the lower 16 bits are treated as unsigned.  */
-  BFD_RELOC_M32R_HI16_ULO,
-
-/* This is a 16-bit reloc containing the high 16 bits of an address
-used when the lower 16 bits are treated as signed.  */
-  BFD_RELOC_M32R_HI16_SLO,
-
-/* This is a 16-bit reloc containing the lower 16 bits of an address.  */
-  BFD_RELOC_M32R_LO16,
-
-/* This is a 16-bit reloc containing the small data area offset for use in
-add3, load, and store instructions.  */
-  BFD_RELOC_M32R_SDA16,
-
-/* For PIC.  */
-  BFD_RELOC_M32R_GOT24,
-  BFD_RELOC_M32R_26_PLTREL,
-  BFD_RELOC_M32R_COPY,
-  BFD_RELOC_M32R_GLOB_DAT,
-  BFD_RELOC_M32R_JMP_SLOT,
-  BFD_RELOC_M32R_RELATIVE,
-  BFD_RELOC_M32R_GOTOFF,
-  BFD_RELOC_M32R_GOTOFF_HI_ULO,
-  BFD_RELOC_M32R_GOTOFF_HI_SLO,
-  BFD_RELOC_M32R_GOTOFF_LO,
-  BFD_RELOC_M32R_GOTPC24,
-  BFD_RELOC_M32R_GOT16_HI_ULO,
-  BFD_RELOC_M32R_GOT16_HI_SLO,
-  BFD_RELOC_M32R_GOT16_LO,
-  BFD_RELOC_M32R_GOTPC_HI_ULO,
-  BFD_RELOC_M32R_GOTPC_HI_SLO,
-  BFD_RELOC_M32R_GOTPC_LO,
-
-/* NDS32 relocs.
-This is a 20 bit absolute address.  */
-  BFD_RELOC_NDS32_20,
-
-/* This is a 9-bit pc-relative reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_9_PCREL,
-
-/* This is a 9-bit pc-relative reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_WORD_9_PCREL,
-
-/* This is an 15-bit reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_15_PCREL,
-
-/* This is an 17-bit reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_17_PCREL,
-
-/* This is a 25-bit reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_25_PCREL,
-
-/* This is a 20-bit reloc containing the high 20 bits of an address
-used with the lower 12 bits  */
-  BFD_RELOC_NDS32_HI20,
-
-/* This is a 12-bit reloc containing the lower 12 bits of an address
-then shift right by 3. This is used with ldi,sdi...  */
-  BFD_RELOC_NDS32_LO12S3,
-
-/* This is a 12-bit reloc containing the lower 12 bits of an address
-then shift left by 2. This is used with lwi,swi...  */
-  BFD_RELOC_NDS32_LO12S2,
-
-/* This is a 12-bit reloc containing the lower 12 bits of an address
-then shift left by 1. This is used with lhi,shi...  */
-  BFD_RELOC_NDS32_LO12S1,
-
-/* This is a 12-bit reloc containing the lower 12 bits of an address
-then shift left by 0. This is used with lbisbi...  */
-  BFD_RELOC_NDS32_LO12S0,
-
-/* This is a 12-bit reloc containing the lower 12 bits of an address
-then shift left by 0. This is only used with branch relaxations  */
-  BFD_RELOC_NDS32_LO12S0_ORI,
-
-/* This is a 15-bit reloc containing the small data area 18-bit signed offset
-and shift left by 3 for use in ldi, sdi...  */
-  BFD_RELOC_NDS32_SDA15S3,
-
-/* This is a 15-bit reloc containing the small data area 17-bit signed offset
-and shift left by 2 for use in lwi, swi...  */
-  BFD_RELOC_NDS32_SDA15S2,
-
-/* This is a 15-bit reloc containing the small data area 16-bit signed offset
-and shift left by 1 for use in lhi, shi...  */
-  BFD_RELOC_NDS32_SDA15S1,
-
-/* This is a 15-bit reloc containing the small data area 15-bit signed offset
-and shift left by 0 for use in lbi, sbi...  */
-  BFD_RELOC_NDS32_SDA15S0,
-
-/* This is a 16-bit reloc containing the small data area 16-bit signed offset
-and shift left by 3  */
-  BFD_RELOC_NDS32_SDA16S3,
-
-/* This is a 17-bit reloc containing the small data area 17-bit signed offset
-and shift left by 2 for use in lwi.gp, swi.gp...  */
-  BFD_RELOC_NDS32_SDA17S2,
-
-/* This is a 18-bit reloc containing the small data area 18-bit signed offset
-and shift left by 1 for use in lhi.gp, shi.gp...  */
-  BFD_RELOC_NDS32_SDA18S1,
-
-/* This is a 19-bit reloc containing the small data area 19-bit signed offset
-and shift left by 0 for use in lbi.gp, sbi.gp...  */
-  BFD_RELOC_NDS32_SDA19S0,
-
-/* for PIC  */
-  BFD_RELOC_NDS32_GOT20,
-  BFD_RELOC_NDS32_9_PLTREL,
-  BFD_RELOC_NDS32_25_PLTREL,
-  BFD_RELOC_NDS32_COPY,
-  BFD_RELOC_NDS32_GLOB_DAT,
-  BFD_RELOC_NDS32_JMP_SLOT,
-  BFD_RELOC_NDS32_RELATIVE,
-  BFD_RELOC_NDS32_GOTOFF,
-  BFD_RELOC_NDS32_GOTOFF_HI20,
-  BFD_RELOC_NDS32_GOTOFF_LO12,
-  BFD_RELOC_NDS32_GOTPC20,
-  BFD_RELOC_NDS32_GOT_HI20,
-  BFD_RELOC_NDS32_GOT_LO12,
-  BFD_RELOC_NDS32_GOTPC_HI20,
-  BFD_RELOC_NDS32_GOTPC_LO12,
-
-/* for relax  */
-  BFD_RELOC_NDS32_INSN16,
-  BFD_RELOC_NDS32_LABEL,
-  BFD_RELOC_NDS32_LONGCALL1,
-  BFD_RELOC_NDS32_LONGCALL2,
-  BFD_RELOC_NDS32_LONGCALL3,
-  BFD_RELOC_NDS32_LONGJUMP1,
-  BFD_RELOC_NDS32_LONGJUMP2,
-  BFD_RELOC_NDS32_LONGJUMP3,
-  BFD_RELOC_NDS32_LOADSTORE,
-  BFD_RELOC_NDS32_9_FIXED,
-  BFD_RELOC_NDS32_15_FIXED,
-  BFD_RELOC_NDS32_17_FIXED,
-  BFD_RELOC_NDS32_25_FIXED,
-  BFD_RELOC_NDS32_LONGCALL4,
-  BFD_RELOC_NDS32_LONGCALL5,
-  BFD_RELOC_NDS32_LONGCALL6,
-  BFD_RELOC_NDS32_LONGJUMP4,
-  BFD_RELOC_NDS32_LONGJUMP5,
-  BFD_RELOC_NDS32_LONGJUMP6,
-  BFD_RELOC_NDS32_LONGJUMP7,
-
-/* for PIC  */
-  BFD_RELOC_NDS32_PLTREL_HI20,
-  BFD_RELOC_NDS32_PLTREL_LO12,
-  BFD_RELOC_NDS32_PLT_GOTREL_HI20,
-  BFD_RELOC_NDS32_PLT_GOTREL_LO12,
-
-/* for floating point  */
-  BFD_RELOC_NDS32_SDA12S2_DP,
-  BFD_RELOC_NDS32_SDA12S2_SP,
-  BFD_RELOC_NDS32_LO12S2_DP,
-  BFD_RELOC_NDS32_LO12S2_SP,
-
-/* for dwarf2 debug_line.  */
-  BFD_RELOC_NDS32_DWARF2_OP1,
-  BFD_RELOC_NDS32_DWARF2_OP2,
-  BFD_RELOC_NDS32_DWARF2_LEB,
-
-/* for eliminate 16-bit instructions  */
-  BFD_RELOC_NDS32_UPDATE_TA,
-
-/* for PIC object relaxation  */
-  BFD_RELOC_NDS32_PLT_GOTREL_LO20,
-  BFD_RELOC_NDS32_PLT_GOTREL_LO15,
-  BFD_RELOC_NDS32_PLT_GOTREL_LO19,
-  BFD_RELOC_NDS32_GOT_LO15,
-  BFD_RELOC_NDS32_GOT_LO19,
-  BFD_RELOC_NDS32_GOTOFF_LO15,
-  BFD_RELOC_NDS32_GOTOFF_LO19,
-  BFD_RELOC_NDS32_GOT15S2,
-  BFD_RELOC_NDS32_GOT17S2,
-
-/* NDS32 relocs.
-This is a 5 bit absolute address.  */
-  BFD_RELOC_NDS32_5,
-
-/* This is a 10-bit unsigned pc-relative reloc with the right 1 bit assumed to be 0.  */
-  BFD_RELOC_NDS32_10_UPCREL,
-
-/* If fp were omitted, fp can used as another gp.  */
-  BFD_RELOC_NDS32_SDA_FP7U2_RELA,
-
-/* relaxation relative relocation types  */
-  BFD_RELOC_NDS32_RELAX_ENTRY,
-  BFD_RELOC_NDS32_GOT_SUFF,
-  BFD_RELOC_NDS32_GOTOFF_SUFF,
-  BFD_RELOC_NDS32_PLT_GOT_SUFF,
-  BFD_RELOC_NDS32_MULCALL_SUFF,
-  BFD_RELOC_NDS32_PTR,
-  BFD_RELOC_NDS32_PTR_COUNT,
-  BFD_RELOC_NDS32_PTR_RESOLVED,
-  BFD_RELOC_NDS32_PLTBLOCK,
-  BFD_RELOC_NDS32_RELAX_REGION_BEGIN,
-  BFD_RELOC_NDS32_RELAX_REGION_END,
-  BFD_RELOC_NDS32_MINUEND,
-  BFD_RELOC_NDS32_SUBTRAHEND,
-  BFD_RELOC_NDS32_DIFF8,
-  BFD_RELOC_NDS32_DIFF16,
-  BFD_RELOC_NDS32_DIFF32,
-  BFD_RELOC_NDS32_DIFF_ULEB128,
-  BFD_RELOC_NDS32_EMPTY,
-
-/* This is a 25 bit absolute address.  */
-  BFD_RELOC_NDS32_25_ABS,
-
-/* For ex9 and ifc using.  */
-  BFD_RELOC_NDS32_DATA,
-  BFD_RELOC_NDS32_TRAN,
-  BFD_RELOC_NDS32_17IFC_PCREL,
-  BFD_RELOC_NDS32_10IFCU_PCREL,
-
-/* For TLS.  */
-  BFD_RELOC_NDS32_TPOFF,
-  BFD_RELOC_NDS32_GOTTPOFF,
-  BFD_RELOC_NDS32_TLS_LE_HI20,
-  BFD_RELOC_NDS32_TLS_LE_LO12,
-  BFD_RELOC_NDS32_TLS_LE_20,
-  BFD_RELOC_NDS32_TLS_LE_15S0,
-  BFD_RELOC_NDS32_TLS_LE_15S1,
-  BFD_RELOC_NDS32_TLS_LE_15S2,
-  BFD_RELOC_NDS32_TLS_LE_ADD,
-  BFD_RELOC_NDS32_TLS_LE_LS,
-  BFD_RELOC_NDS32_TLS_IE_HI20,
-  BFD_RELOC_NDS32_TLS_IE_LO12,
-  BFD_RELOC_NDS32_TLS_IE_LO12S2,
-  BFD_RELOC_NDS32_TLS_IEGP_HI20,
-  BFD_RELOC_NDS32_TLS_IEGP_LO12,
-  BFD_RELOC_NDS32_TLS_IEGP_LO12S2,
-  BFD_RELOC_NDS32_TLS_IEGP_LW,
-  BFD_RELOC_NDS32_TLS_DESC,
-  BFD_RELOC_NDS32_TLS_DESC_HI20,
-  BFD_RELOC_NDS32_TLS_DESC_LO12,
-  BFD_RELOC_NDS32_TLS_DESC_20,
-  BFD_RELOC_NDS32_TLS_DESC_SDA17S2,
-  BFD_RELOC_NDS32_TLS_DESC_ADD,
-  BFD_RELOC_NDS32_TLS_DESC_FUNC,
-  BFD_RELOC_NDS32_TLS_DESC_CALL,
-  BFD_RELOC_NDS32_TLS_DESC_MEM,
-  BFD_RELOC_NDS32_REMOVE,
-  BFD_RELOC_NDS32_GROUP,
-
-/* For floating load store relaxation.  */
-  BFD_RELOC_NDS32_LSI,
-
-/* This is a 9-bit reloc  */
-  BFD_RELOC_V850_9_PCREL,
-
-/* This is a 22-bit reloc  */
-  BFD_RELOC_V850_22_PCREL,
-
-/* This is a 16 bit offset from the short data area pointer.  */
-  BFD_RELOC_V850_SDA_16_16_OFFSET,
-
-/* This is a 16 bit offset (of which only 15 bits are used) from the
-short data area pointer.  */
-  BFD_RELOC_V850_SDA_15_16_OFFSET,
-
-/* This is a 16 bit offset from the zero data area pointer.  */
-  BFD_RELOC_V850_ZDA_16_16_OFFSET,
-
-/* This is a 16 bit offset (of which only 15 bits are used) from the
-zero data area pointer.  */
-  BFD_RELOC_V850_ZDA_15_16_OFFSET,
-
-/* This is an 8 bit offset (of which only 6 bits are used) from the
-tiny data area pointer.  */
-  BFD_RELOC_V850_TDA_6_8_OFFSET,
-
-/* This is an 8bit offset (of which only 7 bits are used) from the tiny
-data area pointer.  */
-  BFD_RELOC_V850_TDA_7_8_OFFSET,
-
-/* This is a 7 bit offset from the tiny data area pointer.  */
-  BFD_RELOC_V850_TDA_7_7_OFFSET,
-
-/* This is a 16 bit offset from the tiny data area pointer.  */
-  BFD_RELOC_V850_TDA_16_16_OFFSET,
-
-/* This is a 5 bit offset (of which only 4 bits are used) from the tiny
-data area pointer.  */
-  BFD_RELOC_V850_TDA_4_5_OFFSET,
-
-/* This is a 4 bit offset from the tiny data area pointer.  */
-  BFD_RELOC_V850_TDA_4_4_OFFSET,
-
-/* This is a 16 bit offset from the short data area pointer, with the
-bits placed non-contiguously in the instruction.  */
-  BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET,
-
-/* This is a 16 bit offset from the zero data area pointer, with the
-bits placed non-contiguously in the instruction.  */
-  BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET,
-
-/* This is a 6 bit offset from the call table base pointer.  */
-  BFD_RELOC_V850_CALLT_6_7_OFFSET,
-
-/* This is a 16 bit offset from the call table base pointer.  */
-  BFD_RELOC_V850_CALLT_16_16_OFFSET,
-
-/* Used for relaxing indirect function calls.  */
-  BFD_RELOC_V850_LONGCALL,
-
-/* Used for relaxing indirect jumps.  */
-  BFD_RELOC_V850_LONGJUMP,
-
-/* Used to maintain alignment whilst relaxing.  */
-  BFD_RELOC_V850_ALIGN,
-
-/* This is a variation of BFD_RELOC_LO16 that can be used in v850e ld.bu
-instructions.  */
-  BFD_RELOC_V850_LO16_SPLIT_OFFSET,
-
-/* This is a 16-bit reloc.  */
-  BFD_RELOC_V850_16_PCREL,
-
-/* This is a 17-bit reloc.  */
-  BFD_RELOC_V850_17_PCREL,
-
-/* This is a 23-bit reloc.  */
-  BFD_RELOC_V850_23,
-
-/* This is a 32-bit reloc.  */
-  BFD_RELOC_V850_32_PCREL,
-
-/* This is a 32-bit reloc.  */
-  BFD_RELOC_V850_32_ABS,
-
-/* This is a 16-bit reloc.  */
-  BFD_RELOC_V850_16_SPLIT_OFFSET,
-
-/* This is a 16-bit reloc.  */
-  BFD_RELOC_V850_16_S1,
-
-/* Low 16 bits. 16 bit shifted by 1.  */
-  BFD_RELOC_V850_LO16_S1,
-
-/* This is a 16 bit offset from the call table base pointer.  */
-  BFD_RELOC_V850_CALLT_15_16_OFFSET,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_32_GOTPCREL,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_16_GOT,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_32_GOT,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_22_PLT_PCREL,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_32_PLT_PCREL,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_COPY,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_GLOB_DAT,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_JMP_SLOT,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_RELATIVE,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_16_GOTOFF,
-
-/* DSO relocations.  */
-  BFD_RELOC_V850_32_GOTOFF,
-
-/* start code.  */
-  BFD_RELOC_V850_CODE,
-
-/* start data in text.  */
-  BFD_RELOC_V850_DATA,
-
-/* This is a 8bit DP reloc for the tms320c30, where the most
-significant 8 bits of a 24 bit word are placed into the least
-significant 8 bits of the opcode.  */
-  BFD_RELOC_TIC30_LDP,
-
-/* This is a 7bit reloc for the tms320c54x, where the least
-significant 7 bits of a 16 bit word are placed into the least
-significant 7 bits of the opcode.  */
-  BFD_RELOC_TIC54X_PARTLS7,
-
-/* This is a 9bit DP reloc for the tms320c54x, where the most
-significant 9 bits of a 16 bit word are placed into the least
-significant 9 bits of the opcode.  */
-  BFD_RELOC_TIC54X_PARTMS9,
-
-/* This is an extended address 23-bit reloc for the tms320c54x.  */
-  BFD_RELOC_TIC54X_23,
-
-/* This is a 16-bit reloc for the tms320c54x, where the least
-significant 16 bits of a 23-bit extended address are placed into
-the opcode.  */
-  BFD_RELOC_TIC54X_16_OF_23,
-
-/* This is a reloc for the tms320c54x, where the most
-significant 7 bits of a 23-bit extended address are placed into
-the opcode.  */
-  BFD_RELOC_TIC54X_MS7_OF_23,
-
-/* TMS320C6000 relocations.  */
-  BFD_RELOC_C6000_PCR_S21,
-  BFD_RELOC_C6000_PCR_S12,
-  BFD_RELOC_C6000_PCR_S10,
-  BFD_RELOC_C6000_PCR_S7,
-  BFD_RELOC_C6000_ABS_S16,
-  BFD_RELOC_C6000_ABS_L16,
-  BFD_RELOC_C6000_ABS_H16,
-  BFD_RELOC_C6000_SBR_U15_B,
-  BFD_RELOC_C6000_SBR_U15_H,
-  BFD_RELOC_C6000_SBR_U15_W,
-  BFD_RELOC_C6000_SBR_S16,
-  BFD_RELOC_C6000_SBR_L16_B,
-  BFD_RELOC_C6000_SBR_L16_H,
-  BFD_RELOC_C6000_SBR_L16_W,
-  BFD_RELOC_C6000_SBR_H16_B,
-  BFD_RELOC_C6000_SBR_H16_H,
-  BFD_RELOC_C6000_SBR_H16_W,
-  BFD_RELOC_C6000_SBR_GOT_U15_W,
-  BFD_RELOC_C6000_SBR_GOT_L16_W,
-  BFD_RELOC_C6000_SBR_GOT_H16_W,
-  BFD_RELOC_C6000_DSBT_INDEX,
-  BFD_RELOC_C6000_PREL31,
-  BFD_RELOC_C6000_COPY,
-  BFD_RELOC_C6000_JUMP_SLOT,
-  BFD_RELOC_C6000_EHTYPE,
-  BFD_RELOC_C6000_PCR_H16,
-  BFD_RELOC_C6000_PCR_L16,
-  BFD_RELOC_C6000_ALIGN,
-  BFD_RELOC_C6000_FPHEAD,
-  BFD_RELOC_C6000_NOCMP,
-
-/* This is a 48 bit reloc for the FR30 that stores 32 bits.  */
-  BFD_RELOC_FR30_48,
-
-/* This is a 32 bit reloc for the FR30 that stores 20 bits split up into
-two sections.  */
-  BFD_RELOC_FR30_20,
-
-/* This is a 16 bit reloc for the FR30 that stores a 6 bit word offset in
-4 bits.  */
-  BFD_RELOC_FR30_6_IN_4,
-
-/* This is a 16 bit reloc for the FR30 that stores an 8 bit byte offset
-into 8 bits.  */
-  BFD_RELOC_FR30_8_IN_8,
-
-/* This is a 16 bit reloc for the FR30 that stores a 9 bit short offset
-into 8 bits.  */
-  BFD_RELOC_FR30_9_IN_8,
-
-/* This is a 16 bit reloc for the FR30 that stores a 10 bit word offset
-into 8 bits.  */
-  BFD_RELOC_FR30_10_IN_8,
-
-/* This is a 16 bit reloc for the FR30 that stores a 9 bit pc relative
-short offset into 8 bits.  */
-  BFD_RELOC_FR30_9_PCREL,
-
-/* This is a 16 bit reloc for the FR30 that stores a 12 bit pc relative
-short offset into 11 bits.  */
-  BFD_RELOC_FR30_12_PCREL,
-
-/* Motorola Mcore relocations.  */
-  BFD_RELOC_MCORE_PCREL_IMM8BY4,
-  BFD_RELOC_MCORE_PCREL_IMM11BY2,
-  BFD_RELOC_MCORE_PCREL_IMM4BY2,
-  BFD_RELOC_MCORE_PCREL_32,
-  BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2,
-  BFD_RELOC_MCORE_RVA,
-
-/* Toshiba Media Processor Relocations.  */
-  BFD_RELOC_MEP_8,
-  BFD_RELOC_MEP_16,
-  BFD_RELOC_MEP_32,
-  BFD_RELOC_MEP_PCREL8A2,
-  BFD_RELOC_MEP_PCREL12A2,
-  BFD_RELOC_MEP_PCREL17A2,
-  BFD_RELOC_MEP_PCREL24A2,
-  BFD_RELOC_MEP_PCABS24A2,
-  BFD_RELOC_MEP_LOW16,
-  BFD_RELOC_MEP_HI16U,
-  BFD_RELOC_MEP_HI16S,
-  BFD_RELOC_MEP_GPREL,
-  BFD_RELOC_MEP_TPREL,
-  BFD_RELOC_MEP_TPREL7,
-  BFD_RELOC_MEP_TPREL7A2,
-  BFD_RELOC_MEP_TPREL7A4,
-  BFD_RELOC_MEP_UIMM24,
-  BFD_RELOC_MEP_ADDR24A4,
-  BFD_RELOC_MEP_GNU_VTINHERIT,
-  BFD_RELOC_MEP_GNU_VTENTRY,
-
-
-/* Imagination Technologies Meta relocations.  */
-  BFD_RELOC_METAG_HIADDR16,
-  BFD_RELOC_METAG_LOADDR16,
-  BFD_RELOC_METAG_RELBRANCH,
-  BFD_RELOC_METAG_GETSETOFF,
-  BFD_RELOC_METAG_HIOG,
-  BFD_RELOC_METAG_LOOG,
-  BFD_RELOC_METAG_REL8,
-  BFD_RELOC_METAG_REL16,
-  BFD_RELOC_METAG_HI16_GOTOFF,
-  BFD_RELOC_METAG_LO16_GOTOFF,
-  BFD_RELOC_METAG_GETSET_GOTOFF,
-  BFD_RELOC_METAG_GETSET_GOT,
-  BFD_RELOC_METAG_HI16_GOTPC,
-  BFD_RELOC_METAG_LO16_GOTPC,
-  BFD_RELOC_METAG_HI16_PLT,
-  BFD_RELOC_METAG_LO16_PLT,
-  BFD_RELOC_METAG_RELBRANCH_PLT,
-  BFD_RELOC_METAG_GOTOFF,
-  BFD_RELOC_METAG_PLT,
-  BFD_RELOC_METAG_COPY,
-  BFD_RELOC_METAG_JMP_SLOT,
-  BFD_RELOC_METAG_RELATIVE,
-  BFD_RELOC_METAG_GLOB_DAT,
-  BFD_RELOC_METAG_TLS_GD,
-  BFD_RELOC_METAG_TLS_LDM,
-  BFD_RELOC_METAG_TLS_LDO_HI16,
-  BFD_RELOC_METAG_TLS_LDO_LO16,
-  BFD_RELOC_METAG_TLS_LDO,
-  BFD_RELOC_METAG_TLS_IE,
-  BFD_RELOC_METAG_TLS_IENONPIC,
-  BFD_RELOC_METAG_TLS_IENONPIC_HI16,
-  BFD_RELOC_METAG_TLS_IENONPIC_LO16,
-  BFD_RELOC_METAG_TLS_TPOFF,
-  BFD_RELOC_METAG_TLS_DTPMOD,
-  BFD_RELOC_METAG_TLS_DTPOFF,
-  BFD_RELOC_METAG_TLS_LE,
-  BFD_RELOC_METAG_TLS_LE_HI16,
-  BFD_RELOC_METAG_TLS_LE_LO16,
-
-/* These are relocations for the GETA instruction.  */
-  BFD_RELOC_MMIX_GETA,
-  BFD_RELOC_MMIX_GETA_1,
-  BFD_RELOC_MMIX_GETA_2,
-  BFD_RELOC_MMIX_GETA_3,
-
-/* These are relocations for a conditional branch instruction.  */
-  BFD_RELOC_MMIX_CBRANCH,
-  BFD_RELOC_MMIX_CBRANCH_J,
-  BFD_RELOC_MMIX_CBRANCH_1,
-  BFD_RELOC_MMIX_CBRANCH_2,
-  BFD_RELOC_MMIX_CBRANCH_3,
-
-/* These are relocations for the PUSHJ instruction.  */
-  BFD_RELOC_MMIX_PUSHJ,
-  BFD_RELOC_MMIX_PUSHJ_1,
-  BFD_RELOC_MMIX_PUSHJ_2,
-  BFD_RELOC_MMIX_PUSHJ_3,
-  BFD_RELOC_MMIX_PUSHJ_STUBBABLE,
-
-/* These are relocations for the JMP instruction.  */
-  BFD_RELOC_MMIX_JMP,
-  BFD_RELOC_MMIX_JMP_1,
-  BFD_RELOC_MMIX_JMP_2,
-  BFD_RELOC_MMIX_JMP_3,
-
-/* This is a relocation for a relative address as in a GETA instruction or
-a branch.  */
-  BFD_RELOC_MMIX_ADDR19,
-
-/* This is a relocation for a relative address as in a JMP instruction.  */
-  BFD_RELOC_MMIX_ADDR27,
-
-/* This is a relocation for an instruction field that may be a general
-register or a value 0..255.  */
-  BFD_RELOC_MMIX_REG_OR_BYTE,
-
-/* This is a relocation for an instruction field that may be a general
-register.  */
-  BFD_RELOC_MMIX_REG,
-
-/* This is a relocation for two instruction fields holding a register and
-an offset, the equivalent of the relocation.  */
-  BFD_RELOC_MMIX_BASE_PLUS_OFFSET,
-
-/* This relocation is an assertion that the expression is not allocated as
-a global register.  It does not modify contents.  */
-  BFD_RELOC_MMIX_LOCAL,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit pc relative
-short offset into 7 bits.  */
-  BFD_RELOC_AVR_7_PCREL,
-
-/* This is a 16 bit reloc for the AVR that stores 13 bit pc relative
-short offset into 12 bits.  */
-  BFD_RELOC_AVR_13_PCREL,
-
-/* This is a 16 bit reloc for the AVR that stores 17 bit value (usually
-program memory address) into 16 bits.  */
-  BFD_RELOC_AVR_16_PM,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (usually
-data memory address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_LO8_LDI,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit
-of data memory address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_HI8_LDI,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit
-of program memory address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_HH8_LDI,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit
-of 32 bit value) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_MS8_LDI,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(usually data memory address) into 8 bit immediate value of SUBI insn.  */
-  BFD_RELOC_AVR_LO8_LDI_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(high 8 bit of data memory address) into 8 bit immediate value of
-SUBI insn.  */
-  BFD_RELOC_AVR_HI8_LDI_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(most high 8 bit of program memory address) into 8 bit immediate value
-of LDI or SUBI insn.  */
-  BFD_RELOC_AVR_HH8_LDI_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value (msb
-of 32 bit value) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_MS8_LDI_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (usually
-command address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_LO8_LDI_PM,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value
-(command address) into 8 bit immediate value of LDI insn. If the address
-is beyond the 128k boundary, the linker inserts a jump stub for this reloc
-in the lower 128k.  */
-  BFD_RELOC_AVR_LO8_LDI_GS,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit
-of command address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_HI8_LDI_PM,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (high 8 bit
-of command address) into 8 bit immediate value of LDI insn.  If the address
-is beyond the 128k boundary, the linker inserts a jump stub for this reloc
-below 128k.  */
-  BFD_RELOC_AVR_HI8_LDI_GS,
-
-/* This is a 16 bit reloc for the AVR that stores 8 bit value (most high 8 bit
-of command address) into 8 bit immediate value of LDI insn.  */
-  BFD_RELOC_AVR_HH8_LDI_PM,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(usually command address) into 8 bit immediate value of SUBI insn.  */
-  BFD_RELOC_AVR_LO8_LDI_PM_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(high 8 bit of 16 bit command address) into 8 bit immediate value
-of SUBI insn.  */
-  BFD_RELOC_AVR_HI8_LDI_PM_NEG,
-
-/* This is a 16 bit reloc for the AVR that stores negated 8 bit value
-(high 6 bit of 22 bit command address) into 8 bit immediate
-value of SUBI insn.  */
-  BFD_RELOC_AVR_HH8_LDI_PM_NEG,
-
-/* This is a 32 bit reloc for the AVR that stores 23 bit value
-into 22 bits.  */
-  BFD_RELOC_AVR_CALL,
-
-/* This is a 16 bit reloc for the AVR that stores all needed bits
-for absolute addressing with ldi with overflow check to linktime  */
-  BFD_RELOC_AVR_LDI,
-
-/* This is a 6 bit reloc for the AVR that stores offset for ldd/std
-instructions  */
-  BFD_RELOC_AVR_6,
-
-/* This is a 6 bit reloc for the AVR that stores offset for adiw/sbiw
-instructions  */
-  BFD_RELOC_AVR_6_ADIW,
-
-/* This is a 8 bit reloc for the AVR that stores bits 0..7 of a symbol
-in .byte lo8(symbol)  */
-  BFD_RELOC_AVR_8_LO,
-
-/* This is a 8 bit reloc for the AVR that stores bits 8..15 of a symbol
-in .byte hi8(symbol)  */
-  BFD_RELOC_AVR_8_HI,
-
-/* This is a 8 bit reloc for the AVR that stores bits 16..23 of a symbol
-in .byte hlo8(symbol)  */
-  BFD_RELOC_AVR_8_HLO,
-
-/* AVR relocations to mark the difference of two local symbols.
-These are only needed to support linker relaxation and can be ignored
-when not relaxing.  The field is set to the value of the difference
-assuming no relaxation.  The relocation encodes the position of the
-second symbol so the linker can determine whether to adjust the field
-value.  */
-  BFD_RELOC_AVR_DIFF8,
-  BFD_RELOC_AVR_DIFF16,
-  BFD_RELOC_AVR_DIFF32,
-
-/* This is a 7 bit reloc for the AVR that stores SRAM address for 16bit
-lds and sts instructions supported only tiny core.  */
-  BFD_RELOC_AVR_LDS_STS_16,
-
-/* This is a 6 bit reloc for the AVR that stores an I/O register
-number for the IN and OUT instructions  */
-  BFD_RELOC_AVR_PORT6,
-
-/* This is a 5 bit reloc for the AVR that stores an I/O register
-number for the SBIC, SBIS, SBI and CBI instructions  */
-  BFD_RELOC_AVR_PORT5,
-
-/* RISC-V relocations.  */
-  BFD_RELOC_RISCV_HI20,
-  BFD_RELOC_RISCV_PCREL_HI20,
-  BFD_RELOC_RISCV_PCREL_LO12_I,
-  BFD_RELOC_RISCV_PCREL_LO12_S,
-  BFD_RELOC_RISCV_LO12_I,
-  BFD_RELOC_RISCV_LO12_S,
-  BFD_RELOC_RISCV_GPREL12_I,
-  BFD_RELOC_RISCV_GPREL12_S,
-  BFD_RELOC_RISCV_TPREL_HI20,
-  BFD_RELOC_RISCV_TPREL_LO12_I,
-  BFD_RELOC_RISCV_TPREL_LO12_S,
-  BFD_RELOC_RISCV_TPREL_ADD,
-  BFD_RELOC_RISCV_CALL,
-  BFD_RELOC_RISCV_CALL_PLT,
-  BFD_RELOC_RISCV_ADD8,
-  BFD_RELOC_RISCV_ADD16,
-  BFD_RELOC_RISCV_ADD32,
-  BFD_RELOC_RISCV_ADD64,
-  BFD_RELOC_RISCV_SUB8,
-  BFD_RELOC_RISCV_SUB16,
-  BFD_RELOC_RISCV_SUB32,
-  BFD_RELOC_RISCV_SUB64,
-  BFD_RELOC_RISCV_GOT_HI20,
-  BFD_RELOC_RISCV_TLS_GOT_HI20,
-  BFD_RELOC_RISCV_TLS_GD_HI20,
-  BFD_RELOC_RISCV_JMP,
-  BFD_RELOC_RISCV_TLS_DTPMOD32,
-  BFD_RELOC_RISCV_TLS_DTPREL32,
-  BFD_RELOC_RISCV_TLS_DTPMOD64,
-  BFD_RELOC_RISCV_TLS_DTPREL64,
-  BFD_RELOC_RISCV_TLS_TPREL32,
-  BFD_RELOC_RISCV_TLS_TPREL64,
-  BFD_RELOC_RISCV_ALIGN,
-  BFD_RELOC_RISCV_RVC_BRANCH,
-  BFD_RELOC_RISCV_RVC_JUMP,
-  BFD_RELOC_RISCV_RVC_LUI,
-  BFD_RELOC_RISCV_GPREL_I,
-  BFD_RELOC_RISCV_GPREL_S,
-  BFD_RELOC_RISCV_TPREL_I,
-  BFD_RELOC_RISCV_TPREL_S,
-  BFD_RELOC_RISCV_RELAX,
-  BFD_RELOC_RISCV_CFA,
-  BFD_RELOC_RISCV_SUB6,
-  BFD_RELOC_RISCV_SET6,
-  BFD_RELOC_RISCV_SET8,
-  BFD_RELOC_RISCV_SET16,
-  BFD_RELOC_RISCV_SET32,
-  BFD_RELOC_RISCV_32_PCREL,
-
-/* Renesas RL78 Relocations.  */
-  BFD_RELOC_RL78_NEG8,
-  BFD_RELOC_RL78_NEG16,
-  BFD_RELOC_RL78_NEG24,
-  BFD_RELOC_RL78_NEG32,
-  BFD_RELOC_RL78_16_OP,
-  BFD_RELOC_RL78_24_OP,
-  BFD_RELOC_RL78_32_OP,
-  BFD_RELOC_RL78_8U,
-  BFD_RELOC_RL78_16U,
-  BFD_RELOC_RL78_24U,
-  BFD_RELOC_RL78_DIR3U_PCREL,
-  BFD_RELOC_RL78_DIFF,
-  BFD_RELOC_RL78_GPRELB,
-  BFD_RELOC_RL78_GPRELW,
-  BFD_RELOC_RL78_GPRELL,
-  BFD_RELOC_RL78_SYM,
-  BFD_RELOC_RL78_OP_SUBTRACT,
-  BFD_RELOC_RL78_OP_NEG,
-  BFD_RELOC_RL78_OP_AND,
-  BFD_RELOC_RL78_OP_SHRA,
-  BFD_RELOC_RL78_ABS8,
-  BFD_RELOC_RL78_ABS16,
-  BFD_RELOC_RL78_ABS16_REV,
-  BFD_RELOC_RL78_ABS32,
-  BFD_RELOC_RL78_ABS32_REV,
-  BFD_RELOC_RL78_ABS16U,
-  BFD_RELOC_RL78_ABS16UW,
-  BFD_RELOC_RL78_ABS16UL,
-  BFD_RELOC_RL78_RELAX,
-  BFD_RELOC_RL78_HI16,
-  BFD_RELOC_RL78_HI8,
-  BFD_RELOC_RL78_LO16,
-  BFD_RELOC_RL78_CODE,
-  BFD_RELOC_RL78_SADDR,
-
-/* Renesas RX Relocations.  */
-  BFD_RELOC_RX_NEG8,
-  BFD_RELOC_RX_NEG16,
-  BFD_RELOC_RX_NEG24,
-  BFD_RELOC_RX_NEG32,
-  BFD_RELOC_RX_16_OP,
-  BFD_RELOC_RX_24_OP,
-  BFD_RELOC_RX_32_OP,
-  BFD_RELOC_RX_8U,
-  BFD_RELOC_RX_16U,
-  BFD_RELOC_RX_24U,
-  BFD_RELOC_RX_DIR3U_PCREL,
-  BFD_RELOC_RX_DIFF,
-  BFD_RELOC_RX_GPRELB,
-  BFD_RELOC_RX_GPRELW,
-  BFD_RELOC_RX_GPRELL,
-  BFD_RELOC_RX_SYM,
-  BFD_RELOC_RX_OP_SUBTRACT,
-  BFD_RELOC_RX_OP_NEG,
-  BFD_RELOC_RX_ABS8,
-  BFD_RELOC_RX_ABS16,
-  BFD_RELOC_RX_ABS16_REV,
-  BFD_RELOC_RX_ABS32,
-  BFD_RELOC_RX_ABS32_REV,
-  BFD_RELOC_RX_ABS16U,
-  BFD_RELOC_RX_ABS16UW,
-  BFD_RELOC_RX_ABS16UL,
-  BFD_RELOC_RX_RELAX,
-
-/* Direct 12 bit.  */
-  BFD_RELOC_390_12,
-
-/* 12 bit GOT offset.  */
-  BFD_RELOC_390_GOT12,
-
-/* 32 bit PC relative PLT address.  */
-  BFD_RELOC_390_PLT32,
-
-/* Copy symbol at runtime.  */
-  BFD_RELOC_390_COPY,
-
-/* Create GOT entry.  */
-  BFD_RELOC_390_GLOB_DAT,
-
-/* Create PLT entry.  */
-  BFD_RELOC_390_JMP_SLOT,
-
-/* Adjust by program base.  */
-  BFD_RELOC_390_RELATIVE,
-
-/* 32 bit PC relative offset to GOT.  */
-  BFD_RELOC_390_GOTPC,
-
-/* 16 bit GOT offset.  */
-  BFD_RELOC_390_GOT16,
-
-/* PC relative 12 bit shifted by 1.  */
-  BFD_RELOC_390_PC12DBL,
-
-/* 12 bit PC rel. PLT shifted by 1.  */
-  BFD_RELOC_390_PLT12DBL,
-
-/* PC relative 16 bit shifted by 1.  */
-  BFD_RELOC_390_PC16DBL,
-
-/* 16 bit PC rel. PLT shifted by 1.  */
-  BFD_RELOC_390_PLT16DBL,
-
-/* PC relative 24 bit shifted by 1.  */
-  BFD_RELOC_390_PC24DBL,
-
-/* 24 bit PC rel. PLT shifted by 1.  */
-  BFD_RELOC_390_PLT24DBL,
-
-/* PC relative 32 bit shifted by 1.  */
-  BFD_RELOC_390_PC32DBL,
-
-/* 32 bit PC rel. PLT shifted by 1.  */
-  BFD_RELOC_390_PLT32DBL,
-
-/* 32 bit PC rel. GOT shifted by 1.  */
-  BFD_RELOC_390_GOTPCDBL,
-
-/* 64 bit GOT offset.  */
-  BFD_RELOC_390_GOT64,
-
-/* 64 bit PC relative PLT address.  */
-  BFD_RELOC_390_PLT64,
-
-/* 32 bit rel. offset to GOT entry.  */
-  BFD_RELOC_390_GOTENT,
-
-/* 64 bit offset to GOT.  */
-  BFD_RELOC_390_GOTOFF64,
-
-/* 12-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_390_GOTPLT12,
-
-/* 16-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_390_GOTPLT16,
-
-/* 32-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_390_GOTPLT32,
-
-/* 64-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_390_GOTPLT64,
-
-/* 32-bit rel. offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_390_GOTPLTENT,
-
-/* 16-bit rel. offset from the GOT to a PLT entry.  */
-  BFD_RELOC_390_PLTOFF16,
-
-/* 32-bit rel. offset from the GOT to a PLT entry.  */
-  BFD_RELOC_390_PLTOFF32,
-
-/* 64-bit rel. offset from the GOT to a PLT entry.  */
-  BFD_RELOC_390_PLTOFF64,
-
-/* s390 tls relocations.  */
-  BFD_RELOC_390_TLS_LOAD,
-  BFD_RELOC_390_TLS_GDCALL,
-  BFD_RELOC_390_TLS_LDCALL,
-  BFD_RELOC_390_TLS_GD32,
-  BFD_RELOC_390_TLS_GD64,
-  BFD_RELOC_390_TLS_GOTIE12,
-  BFD_RELOC_390_TLS_GOTIE32,
-  BFD_RELOC_390_TLS_GOTIE64,
-  BFD_RELOC_390_TLS_LDM32,
-  BFD_RELOC_390_TLS_LDM64,
-  BFD_RELOC_390_TLS_IE32,
-  BFD_RELOC_390_TLS_IE64,
-  BFD_RELOC_390_TLS_IEENT,
-  BFD_RELOC_390_TLS_LE32,
-  BFD_RELOC_390_TLS_LE64,
-  BFD_RELOC_390_TLS_LDO32,
-  BFD_RELOC_390_TLS_LDO64,
-  BFD_RELOC_390_TLS_DTPMOD,
-  BFD_RELOC_390_TLS_DTPOFF,
-  BFD_RELOC_390_TLS_TPOFF,
-
-/* Long displacement extension.  */
-  BFD_RELOC_390_20,
-  BFD_RELOC_390_GOT20,
-  BFD_RELOC_390_GOTPLT20,
-  BFD_RELOC_390_TLS_GOTIE20,
-
-/* STT_GNU_IFUNC relocation.  */
-  BFD_RELOC_390_IRELATIVE,
-
-/* Score relocations
-Low 16 bit for load/store  */
-  BFD_RELOC_SCORE_GPREL15,
-
-/* This is a 24-bit reloc with the right 1 bit assumed to be 0  */
-  BFD_RELOC_SCORE_DUMMY2,
-  BFD_RELOC_SCORE_JMP,
-
-/* This is a 19-bit reloc with the right 1 bit assumed to be 0  */
-  BFD_RELOC_SCORE_BRANCH,
-
-/* This is a 32-bit reloc for 48-bit instructions.  */
-  BFD_RELOC_SCORE_IMM30,
-
-/* This is a 32-bit reloc for 48-bit instructions.  */
-  BFD_RELOC_SCORE_IMM32,
-
-/* This is a 11-bit reloc with the right 1 bit assumed to be 0  */
-  BFD_RELOC_SCORE16_JMP,
-
-/* This is a 8-bit reloc with the right 1 bit assumed to be 0  */
-  BFD_RELOC_SCORE16_BRANCH,
-
-/* This is a 9-bit reloc with the right 1 bit assumed to be 0  */
-  BFD_RELOC_SCORE_BCMP,
-
-/* Undocumented Score relocs  */
-  BFD_RELOC_SCORE_GOT15,
-  BFD_RELOC_SCORE_GOT_LO16,
-  BFD_RELOC_SCORE_CALL15,
-  BFD_RELOC_SCORE_DUMMY_HI16,
-
-/* Scenix IP2K - 9-bit register number / data address  */
-  BFD_RELOC_IP2K_FR9,
-
-/* Scenix IP2K - 4-bit register/data bank number  */
-  BFD_RELOC_IP2K_BANK,
-
-/* Scenix IP2K - low 13 bits of instruction word address  */
-  BFD_RELOC_IP2K_ADDR16CJP,
-
-/* Scenix IP2K - high 3 bits of instruction word address  */
-  BFD_RELOC_IP2K_PAGE3,
-
-/* Scenix IP2K - ext/low/high 8 bits of data address  */
-  BFD_RELOC_IP2K_LO8DATA,
-  BFD_RELOC_IP2K_HI8DATA,
-  BFD_RELOC_IP2K_EX8DATA,
-
-/* Scenix IP2K - low/high 8 bits of instruction word address  */
-  BFD_RELOC_IP2K_LO8INSN,
-  BFD_RELOC_IP2K_HI8INSN,
-
-/* Scenix IP2K - even/odd PC modifier to modify snb pcl.0  */
-  BFD_RELOC_IP2K_PC_SKIP,
-
-/* Scenix IP2K - 16 bit word address in text section.  */
-  BFD_RELOC_IP2K_TEXT,
-
-/* Scenix IP2K - 7-bit sp or dp offset  */
-  BFD_RELOC_IP2K_FR_OFFSET,
-
-/* Scenix VPE4K coprocessor - data/insn-space addressing  */
-  BFD_RELOC_VPE4KMATH_DATA,
-  BFD_RELOC_VPE4KMATH_INSN,
-
-/* These two relocations are used by the linker to determine which of
-the entries in a C++ virtual function table are actually used.  When
-the --gc-sections option is given, the linker will zero out the entries
-that are not used, so that the code for those functions need not be
-included in the output.
-
-VTABLE_INHERIT is a zero-space relocation used to describe to the
-linker the inheritance tree of a C++ virtual function table.  The
-relocation's symbol should be the parent class' vtable, and the
-relocation should be located at the child vtable.
-
-VTABLE_ENTRY is a zero-space relocation that describes the use of a
-virtual function table entry.  The reloc's symbol should refer to the
-table of the class mentioned in the code.  Off of that base, an offset
-describes the entry that is being used.  For Rela hosts, this offset
-is stored in the reloc's addend.  For Rel hosts, we are forced to put
-this offset in the reloc's section offset.  */
-  BFD_RELOC_VTABLE_INHERIT,
-  BFD_RELOC_VTABLE_ENTRY,
-
-/* Intel IA64 Relocations.  */
-  BFD_RELOC_IA64_IMM14,
-  BFD_RELOC_IA64_IMM22,
-  BFD_RELOC_IA64_IMM64,
-  BFD_RELOC_IA64_DIR32MSB,
-  BFD_RELOC_IA64_DIR32LSB,
-  BFD_RELOC_IA64_DIR64MSB,
-  BFD_RELOC_IA64_DIR64LSB,
-  BFD_RELOC_IA64_GPREL22,
-  BFD_RELOC_IA64_GPREL64I,
-  BFD_RELOC_IA64_GPREL32MSB,
-  BFD_RELOC_IA64_GPREL32LSB,
-  BFD_RELOC_IA64_GPREL64MSB,
-  BFD_RELOC_IA64_GPREL64LSB,
-  BFD_RELOC_IA64_LTOFF22,
-  BFD_RELOC_IA64_LTOFF64I,
-  BFD_RELOC_IA64_PLTOFF22,
-  BFD_RELOC_IA64_PLTOFF64I,
-  BFD_RELOC_IA64_PLTOFF64MSB,
-  BFD_RELOC_IA64_PLTOFF64LSB,
-  BFD_RELOC_IA64_FPTR64I,
-  BFD_RELOC_IA64_FPTR32MSB,
-  BFD_RELOC_IA64_FPTR32LSB,
-  BFD_RELOC_IA64_FPTR64MSB,
-  BFD_RELOC_IA64_FPTR64LSB,
-  BFD_RELOC_IA64_PCREL21B,
-  BFD_RELOC_IA64_PCREL21BI,
-  BFD_RELOC_IA64_PCREL21M,
-  BFD_RELOC_IA64_PCREL21F,
-  BFD_RELOC_IA64_PCREL22,
-  BFD_RELOC_IA64_PCREL60B,
-  BFD_RELOC_IA64_PCREL64I,
-  BFD_RELOC_IA64_PCREL32MSB,
-  BFD_RELOC_IA64_PCREL32LSB,
-  BFD_RELOC_IA64_PCREL64MSB,
-  BFD_RELOC_IA64_PCREL64LSB,
-  BFD_RELOC_IA64_LTOFF_FPTR22,
-  BFD_RELOC_IA64_LTOFF_FPTR64I,
-  BFD_RELOC_IA64_LTOFF_FPTR32MSB,
-  BFD_RELOC_IA64_LTOFF_FPTR32LSB,
-  BFD_RELOC_IA64_LTOFF_FPTR64MSB,
-  BFD_RELOC_IA64_LTOFF_FPTR64LSB,
-  BFD_RELOC_IA64_SEGREL32MSB,
-  BFD_RELOC_IA64_SEGREL32LSB,
-  BFD_RELOC_IA64_SEGREL64MSB,
-  BFD_RELOC_IA64_SEGREL64LSB,
-  BFD_RELOC_IA64_SECREL32MSB,
-  BFD_RELOC_IA64_SECREL32LSB,
-  BFD_RELOC_IA64_SECREL64MSB,
-  BFD_RELOC_IA64_SECREL64LSB,
-  BFD_RELOC_IA64_REL32MSB,
-  BFD_RELOC_IA64_REL32LSB,
-  BFD_RELOC_IA64_REL64MSB,
-  BFD_RELOC_IA64_REL64LSB,
-  BFD_RELOC_IA64_LTV32MSB,
-  BFD_RELOC_IA64_LTV32LSB,
-  BFD_RELOC_IA64_LTV64MSB,
-  BFD_RELOC_IA64_LTV64LSB,
-  BFD_RELOC_IA64_IPLTMSB,
-  BFD_RELOC_IA64_IPLTLSB,
-  BFD_RELOC_IA64_COPY,
-  BFD_RELOC_IA64_LTOFF22X,
-  BFD_RELOC_IA64_LDXMOV,
-  BFD_RELOC_IA64_TPREL14,
-  BFD_RELOC_IA64_TPREL22,
-  BFD_RELOC_IA64_TPREL64I,
-  BFD_RELOC_IA64_TPREL64MSB,
-  BFD_RELOC_IA64_TPREL64LSB,
-  BFD_RELOC_IA64_LTOFF_TPREL22,
-  BFD_RELOC_IA64_DTPMOD64MSB,
-  BFD_RELOC_IA64_DTPMOD64LSB,
-  BFD_RELOC_IA64_LTOFF_DTPMOD22,
-  BFD_RELOC_IA64_DTPREL14,
-  BFD_RELOC_IA64_DTPREL22,
-  BFD_RELOC_IA64_DTPREL64I,
-  BFD_RELOC_IA64_DTPREL32MSB,
-  BFD_RELOC_IA64_DTPREL32LSB,
-  BFD_RELOC_IA64_DTPREL64MSB,
-  BFD_RELOC_IA64_DTPREL64LSB,
-  BFD_RELOC_IA64_LTOFF_DTPREL22,
-
-/* Motorola 68HC11 reloc.
-This is the 8 bit high part of an absolute address.  */
-  BFD_RELOC_M68HC11_HI8,
-
-/* Motorola 68HC11 reloc.
-This is the 8 bit low part of an absolute address.  */
-  BFD_RELOC_M68HC11_LO8,
-
-/* Motorola 68HC11 reloc.
-This is the 3 bit of a value.  */
-  BFD_RELOC_M68HC11_3B,
-
-/* Motorola 68HC11 reloc.
-This reloc marks the beginning of a jump/call instruction.
-It is used for linker relaxation to correctly identify beginning
-of instruction and change some branches to use PC-relative
-addressing mode.  */
-  BFD_RELOC_M68HC11_RL_JUMP,
-
-/* Motorola 68HC11 reloc.
-This reloc marks a group of several instructions that gcc generates
-and for which the linker relaxation pass can modify and/or remove
-some of them.  */
-  BFD_RELOC_M68HC11_RL_GROUP,
-
-/* Motorola 68HC11 reloc.
-This is the 16-bit lower part of an address.  It is used for 'call'
-instruction to specify the symbol address without any special
-transformation (due to memory bank window).  */
-  BFD_RELOC_M68HC11_LO16,
-
-/* Motorola 68HC11 reloc.
-This is a 8-bit reloc that specifies the page number of an address.
-It is used by 'call' instruction to specify the page number of
-the symbol.  */
-  BFD_RELOC_M68HC11_PAGE,
-
-/* Motorola 68HC11 reloc.
-This is a 24-bit reloc that represents the address with a 16-bit
-value and a 8-bit page number.  The symbol address is transformed
-to follow the 16K memory bank of 68HC12 (seen as mapped in the window).  */
-  BFD_RELOC_M68HC11_24,
-
-/* Motorola 68HC12 reloc.
-This is the 5 bits of a value.  */
-  BFD_RELOC_M68HC12_5B,
-
-/* Freescale XGATE reloc.
-This reloc marks the beginning of a bra/jal instruction.  */
-  BFD_RELOC_XGATE_RL_JUMP,
-
-/* Freescale XGATE reloc.
-This reloc marks a group of several instructions that gcc generates
-and for which the linker relaxation pass can modify and/or remove
-some of them.  */
-  BFD_RELOC_XGATE_RL_GROUP,
-
-/* Freescale XGATE reloc.
-This is the 16-bit lower part of an address.  It is used for the '16-bit'
-instructions.  */
-  BFD_RELOC_XGATE_LO16,
-
-/* Freescale XGATE reloc.  */
-  BFD_RELOC_XGATE_GPAGE,
-
-/* Freescale XGATE reloc.  */
-  BFD_RELOC_XGATE_24,
-
-/* Freescale XGATE reloc.
-This is a 9-bit pc-relative reloc.  */
-  BFD_RELOC_XGATE_PCREL_9,
-
-/* Freescale XGATE reloc.
-This is a 10-bit pc-relative reloc.  */
-  BFD_RELOC_XGATE_PCREL_10,
-
-/* Freescale XGATE reloc.
-This is the 16-bit lower part of an address.  It is used for the '16-bit'
-instructions.  */
-  BFD_RELOC_XGATE_IMM8_LO,
-
-/* Freescale XGATE reloc.
-This is the 16-bit higher part of an address.  It is used for the '16-bit'
-instructions.  */
-  BFD_RELOC_XGATE_IMM8_HI,
-
-/* Freescale XGATE reloc.
-This is a 3-bit pc-relative reloc.  */
-  BFD_RELOC_XGATE_IMM3,
-
-/* Freescale XGATE reloc.
-This is a 4-bit pc-relative reloc.  */
-  BFD_RELOC_XGATE_IMM4,
-
-/* Freescale XGATE reloc.
-This is a 5-bit pc-relative reloc.  */
-  BFD_RELOC_XGATE_IMM5,
-
-/* Motorola 68HC12 reloc.
-This is the 9 bits of a value.  */
-  BFD_RELOC_M68HC12_9B,
-
-/* Motorola 68HC12 reloc.
-This is the 16 bits of a value.  */
-  BFD_RELOC_M68HC12_16B,
-
-/* Motorola 68HC12/XGATE reloc.
-This is a PCREL9 branch.  */
-  BFD_RELOC_M68HC12_9_PCREL,
-
-/* Motorola 68HC12/XGATE reloc.
-This is a PCREL10 branch.  */
-  BFD_RELOC_M68HC12_10_PCREL,
-
-/* Motorola 68HC12/XGATE reloc.
-This is the 8 bit low part of an absolute address and immediately precedes
-a matching HI8XG part.  */
-  BFD_RELOC_M68HC12_LO8XG,
-
-/* Motorola 68HC12/XGATE reloc.
-This is the 8 bit high part of an absolute address and immediately follows
-a matching LO8XG part.  */
-  BFD_RELOC_M68HC12_HI8XG,
-
-/* Freescale S12Z reloc.
-This is a 15 bit relative address.  If the most significant bits are all zero
-then it may be truncated to 8 bits.  */
-  BFD_RELOC_S12Z_15_PCREL,
-
-/* NS CR16 Relocations.  */
-  BFD_RELOC_CR16_NUM8,
-  BFD_RELOC_CR16_NUM16,
-  BFD_RELOC_CR16_NUM32,
-  BFD_RELOC_CR16_NUM32a,
-  BFD_RELOC_CR16_REGREL0,
-  BFD_RELOC_CR16_REGREL4,
-  BFD_RELOC_CR16_REGREL4a,
-  BFD_RELOC_CR16_REGREL14,
-  BFD_RELOC_CR16_REGREL14a,
-  BFD_RELOC_CR16_REGREL16,
-  BFD_RELOC_CR16_REGREL20,
-  BFD_RELOC_CR16_REGREL20a,
-  BFD_RELOC_CR16_ABS20,
-  BFD_RELOC_CR16_ABS24,
-  BFD_RELOC_CR16_IMM4,
-  BFD_RELOC_CR16_IMM8,
-  BFD_RELOC_CR16_IMM16,
-  BFD_RELOC_CR16_IMM20,
-  BFD_RELOC_CR16_IMM24,
-  BFD_RELOC_CR16_IMM32,
-  BFD_RELOC_CR16_IMM32a,
-  BFD_RELOC_CR16_DISP4,
-  BFD_RELOC_CR16_DISP8,
-  BFD_RELOC_CR16_DISP16,
-  BFD_RELOC_CR16_DISP20,
-  BFD_RELOC_CR16_DISP24,
-  BFD_RELOC_CR16_DISP24a,
-  BFD_RELOC_CR16_SWITCH8,
-  BFD_RELOC_CR16_SWITCH16,
-  BFD_RELOC_CR16_SWITCH32,
-  BFD_RELOC_CR16_GOT_REGREL20,
-  BFD_RELOC_CR16_GOTC_REGREL20,
-  BFD_RELOC_CR16_GLOB_DAT,
-
-/* NS CRX Relocations.  */
-  BFD_RELOC_CRX_REL4,
-  BFD_RELOC_CRX_REL8,
-  BFD_RELOC_CRX_REL8_CMP,
-  BFD_RELOC_CRX_REL16,
-  BFD_RELOC_CRX_REL24,
-  BFD_RELOC_CRX_REL32,
-  BFD_RELOC_CRX_REGREL12,
-  BFD_RELOC_CRX_REGREL22,
-  BFD_RELOC_CRX_REGREL28,
-  BFD_RELOC_CRX_REGREL32,
-  BFD_RELOC_CRX_ABS16,
-  BFD_RELOC_CRX_ABS32,
-  BFD_RELOC_CRX_NUM8,
-  BFD_RELOC_CRX_NUM16,
-  BFD_RELOC_CRX_NUM32,
-  BFD_RELOC_CRX_IMM16,
-  BFD_RELOC_CRX_IMM32,
-  BFD_RELOC_CRX_SWITCH8,
-  BFD_RELOC_CRX_SWITCH16,
-  BFD_RELOC_CRX_SWITCH32,
-
-/* These relocs are only used within the CRIS assembler.  They are not
-(at present) written to any object files.  */
-  BFD_RELOC_CRIS_BDISP8,
-  BFD_RELOC_CRIS_UNSIGNED_5,
-  BFD_RELOC_CRIS_SIGNED_6,
-  BFD_RELOC_CRIS_UNSIGNED_6,
-  BFD_RELOC_CRIS_SIGNED_8,
-  BFD_RELOC_CRIS_UNSIGNED_8,
-  BFD_RELOC_CRIS_SIGNED_16,
-  BFD_RELOC_CRIS_UNSIGNED_16,
-  BFD_RELOC_CRIS_LAPCQ_OFFSET,
-  BFD_RELOC_CRIS_UNSIGNED_4,
-
-/* Relocs used in ELF shared libraries for CRIS.  */
-  BFD_RELOC_CRIS_COPY,
-  BFD_RELOC_CRIS_GLOB_DAT,
-  BFD_RELOC_CRIS_JUMP_SLOT,
-  BFD_RELOC_CRIS_RELATIVE,
-
-/* 32-bit offset to symbol-entry within GOT.  */
-  BFD_RELOC_CRIS_32_GOT,
-
-/* 16-bit offset to symbol-entry within GOT.  */
-  BFD_RELOC_CRIS_16_GOT,
-
-/* 32-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_CRIS_32_GOTPLT,
-
-/* 16-bit offset to symbol-entry within GOT, with PLT handling.  */
-  BFD_RELOC_CRIS_16_GOTPLT,
-
-/* 32-bit offset to symbol, relative to GOT.  */
-  BFD_RELOC_CRIS_32_GOTREL,
-
-/* 32-bit offset to symbol with PLT entry, relative to GOT.  */
-  BFD_RELOC_CRIS_32_PLT_GOTREL,
-
-/* 32-bit offset to symbol with PLT entry, relative to this relocation.  */
-  BFD_RELOC_CRIS_32_PLT_PCREL,
-
-/* Relocs used in TLS code for CRIS.  */
-  BFD_RELOC_CRIS_32_GOT_GD,
-  BFD_RELOC_CRIS_16_GOT_GD,
-  BFD_RELOC_CRIS_32_GD,
-  BFD_RELOC_CRIS_DTP,
-  BFD_RELOC_CRIS_32_DTPREL,
-  BFD_RELOC_CRIS_16_DTPREL,
-  BFD_RELOC_CRIS_32_GOT_TPREL,
-  BFD_RELOC_CRIS_16_GOT_TPREL,
-  BFD_RELOC_CRIS_32_TPREL,
-  BFD_RELOC_CRIS_16_TPREL,
-  BFD_RELOC_CRIS_DTPMOD,
-  BFD_RELOC_CRIS_32_IE,
-
-/* OpenRISC 1000 Relocations.  */
-  BFD_RELOC_OR1K_REL_26,
-  BFD_RELOC_OR1K_SLO16,
-  BFD_RELOC_OR1K_PCREL_PG21,
-  BFD_RELOC_OR1K_LO13,
-  BFD_RELOC_OR1K_SLO13,
-  BFD_RELOC_OR1K_GOTPC_HI16,
-  BFD_RELOC_OR1K_GOTPC_LO16,
-  BFD_RELOC_OR1K_GOT16,
-  BFD_RELOC_OR1K_GOT_PG21,
-  BFD_RELOC_OR1K_GOT_LO13,
-  BFD_RELOC_OR1K_PLT26,
-  BFD_RELOC_OR1K_PLTA26,
-  BFD_RELOC_OR1K_GOTOFF_SLO16,
-  BFD_RELOC_OR1K_COPY,
-  BFD_RELOC_OR1K_GLOB_DAT,
-  BFD_RELOC_OR1K_JMP_SLOT,
-  BFD_RELOC_OR1K_RELATIVE,
-  BFD_RELOC_OR1K_TLS_GD_HI16,
-  BFD_RELOC_OR1K_TLS_GD_LO16,
-  BFD_RELOC_OR1K_TLS_GD_PG21,
-  BFD_RELOC_OR1K_TLS_GD_LO13,
-  BFD_RELOC_OR1K_TLS_LDM_HI16,
-  BFD_RELOC_OR1K_TLS_LDM_LO16,
-  BFD_RELOC_OR1K_TLS_LDM_PG21,
-  BFD_RELOC_OR1K_TLS_LDM_LO13,
-  BFD_RELOC_OR1K_TLS_LDO_HI16,
-  BFD_RELOC_OR1K_TLS_LDO_LO16,
-  BFD_RELOC_OR1K_TLS_IE_HI16,
-  BFD_RELOC_OR1K_TLS_IE_AHI16,
-  BFD_RELOC_OR1K_TLS_IE_LO16,
-  BFD_RELOC_OR1K_TLS_IE_PG21,
-  BFD_RELOC_OR1K_TLS_IE_LO13,
-  BFD_RELOC_OR1K_TLS_LE_HI16,
-  BFD_RELOC_OR1K_TLS_LE_AHI16,
-  BFD_RELOC_OR1K_TLS_LE_LO16,
-  BFD_RELOC_OR1K_TLS_LE_SLO16,
-  BFD_RELOC_OR1K_TLS_TPOFF,
-  BFD_RELOC_OR1K_TLS_DTPOFF,
-  BFD_RELOC_OR1K_TLS_DTPMOD,
-
-/* H8 elf Relocations.  */
-  BFD_RELOC_H8_DIR16A8,
-  BFD_RELOC_H8_DIR16R8,
-  BFD_RELOC_H8_DIR24A8,
-  BFD_RELOC_H8_DIR24R8,
-  BFD_RELOC_H8_DIR32A16,
-  BFD_RELOC_H8_DISP32A16,
-
-/* Sony Xstormy16 Relocations.  */
-  BFD_RELOC_XSTORMY16_REL_12,
-  BFD_RELOC_XSTORMY16_12,
-  BFD_RELOC_XSTORMY16_24,
-  BFD_RELOC_XSTORMY16_FPTR16,
-
-/* Self-describing complex relocations.  */
-  BFD_RELOC_RELC,
-
-
-/* Infineon Relocations.  */
-  BFD_RELOC_XC16X_PAG,
-  BFD_RELOC_XC16X_POF,
-  BFD_RELOC_XC16X_SEG,
-  BFD_RELOC_XC16X_SOF,
-
-/* Relocations used by VAX ELF.  */
-  BFD_RELOC_VAX_GLOB_DAT,
-  BFD_RELOC_VAX_JMP_SLOT,
-  BFD_RELOC_VAX_RELATIVE,
-
-/* Morpho MT - 16 bit immediate relocation.  */
-  BFD_RELOC_MT_PC16,
-
-/* Morpho MT - Hi 16 bits of an address.  */
-  BFD_RELOC_MT_HI16,
-
-/* Morpho MT - Low 16 bits of an address.  */
-  BFD_RELOC_MT_LO16,
-
-/* Morpho MT - Used to tell the linker which vtable entries are used.  */
-  BFD_RELOC_MT_GNU_VTINHERIT,
-
-/* Morpho MT - Used to tell the linker which vtable entries are used.  */
-  BFD_RELOC_MT_GNU_VTENTRY,
-
-/* Morpho MT - 8 bit immediate relocation.  */
-  BFD_RELOC_MT_PCINSN8,
-
-/* msp430 specific relocation codes  */
-  BFD_RELOC_MSP430_10_PCREL,
-  BFD_RELOC_MSP430_16_PCREL,
-  BFD_RELOC_MSP430_16,
-  BFD_RELOC_MSP430_16_PCREL_BYTE,
-  BFD_RELOC_MSP430_16_BYTE,
-  BFD_RELOC_MSP430_2X_PCREL,
-  BFD_RELOC_MSP430_RL_PCREL,
-  BFD_RELOC_MSP430_ABS8,
-  BFD_RELOC_MSP430X_PCR20_EXT_SRC,
-  BFD_RELOC_MSP430X_PCR20_EXT_DST,
-  BFD_RELOC_MSP430X_PCR20_EXT_ODST,
-  BFD_RELOC_MSP430X_ABS20_EXT_SRC,
-  BFD_RELOC_MSP430X_ABS20_EXT_DST,
-  BFD_RELOC_MSP430X_ABS20_EXT_ODST,
-  BFD_RELOC_MSP430X_ABS20_ADR_SRC,
-  BFD_RELOC_MSP430X_ABS20_ADR_DST,
-  BFD_RELOC_MSP430X_PCR16,
-  BFD_RELOC_MSP430X_PCR20_CALL,
-  BFD_RELOC_MSP430X_ABS16,
-  BFD_RELOC_MSP430_ABS_HI16,
-  BFD_RELOC_MSP430_PREL31,
-  BFD_RELOC_MSP430_SYM_DIFF,
-  BFD_RELOC_MSP430_SET_ULEB128,
-  BFD_RELOC_MSP430_SUB_ULEB128,
-
-/* Relocations used by the Altera Nios II core.  */
-  BFD_RELOC_NIOS2_S16,
-  BFD_RELOC_NIOS2_U16,
-  BFD_RELOC_NIOS2_CALL26,
-  BFD_RELOC_NIOS2_IMM5,
-  BFD_RELOC_NIOS2_CACHE_OPX,
-  BFD_RELOC_NIOS2_IMM6,
-  BFD_RELOC_NIOS2_IMM8,
-  BFD_RELOC_NIOS2_HI16,
-  BFD_RELOC_NIOS2_LO16,
-  BFD_RELOC_NIOS2_HIADJ16,
-  BFD_RELOC_NIOS2_GPREL,
-  BFD_RELOC_NIOS2_UJMP,
-  BFD_RELOC_NIOS2_CJMP,
-  BFD_RELOC_NIOS2_CALLR,
-  BFD_RELOC_NIOS2_ALIGN,
-  BFD_RELOC_NIOS2_GOT16,
-  BFD_RELOC_NIOS2_CALL16,
-  BFD_RELOC_NIOS2_GOTOFF_LO,
-  BFD_RELOC_NIOS2_GOTOFF_HA,
-  BFD_RELOC_NIOS2_PCREL_LO,
-  BFD_RELOC_NIOS2_PCREL_HA,
-  BFD_RELOC_NIOS2_TLS_GD16,
-  BFD_RELOC_NIOS2_TLS_LDM16,
-  BFD_RELOC_NIOS2_TLS_LDO16,
-  BFD_RELOC_NIOS2_TLS_IE16,
-  BFD_RELOC_NIOS2_TLS_LE16,
-  BFD_RELOC_NIOS2_TLS_DTPMOD,
-  BFD_RELOC_NIOS2_TLS_DTPREL,
-  BFD_RELOC_NIOS2_TLS_TPREL,
-  BFD_RELOC_NIOS2_COPY,
-  BFD_RELOC_NIOS2_GLOB_DAT,
-  BFD_RELOC_NIOS2_JUMP_SLOT,
-  BFD_RELOC_NIOS2_RELATIVE,
-  BFD_RELOC_NIOS2_GOTOFF,
-  BFD_RELOC_NIOS2_CALL26_NOAT,
-  BFD_RELOC_NIOS2_GOT_LO,
-  BFD_RELOC_NIOS2_GOT_HA,
-  BFD_RELOC_NIOS2_CALL_LO,
-  BFD_RELOC_NIOS2_CALL_HA,
-  BFD_RELOC_NIOS2_R2_S12,
-  BFD_RELOC_NIOS2_R2_I10_1_PCREL,
-  BFD_RELOC_NIOS2_R2_T1I7_1_PCREL,
-  BFD_RELOC_NIOS2_R2_T1I7_2,
-  BFD_RELOC_NIOS2_R2_T2I4,
-  BFD_RELOC_NIOS2_R2_T2I4_1,
-  BFD_RELOC_NIOS2_R2_T2I4_2,
-  BFD_RELOC_NIOS2_R2_X1I7_2,
-  BFD_RELOC_NIOS2_R2_X2L5,
-  BFD_RELOC_NIOS2_R2_F1I5_2,
-  BFD_RELOC_NIOS2_R2_L5I4X1,
-  BFD_RELOC_NIOS2_R2_T1X1I6,
-  BFD_RELOC_NIOS2_R2_T1X1I6_2,
-
-/* PRU LDI 16-bit unsigned data-memory relocation.  */
-  BFD_RELOC_PRU_U16,
-
-/* PRU LDI 16-bit unsigned instruction-memory relocation.  */
-  BFD_RELOC_PRU_U16_PMEMIMM,
-
-/* PRU relocation for two consecutive LDI load instructions that load a
-32 bit value into a register. If the higher bits are all zero, then
-the second instruction may be relaxed.  */
-  BFD_RELOC_PRU_LDI32,
-
-/* PRU QBBx 10-bit signed PC-relative relocation.  */
-  BFD_RELOC_PRU_S10_PCREL,
-
-/* PRU 8-bit unsigned relocation used for the LOOP instruction.  */
-  BFD_RELOC_PRU_U8_PCREL,
-
-/* PRU Program Memory relocations.  Used to convert from byte addressing to
-32-bit word addressing.  */
-  BFD_RELOC_PRU_32_PMEM,
-  BFD_RELOC_PRU_16_PMEM,
-
-/* PRU relocations to mark the difference of two local symbols.
-These are only needed to support linker relaxation and can be ignored
-when not relaxing.  The field is set to the value of the difference
-assuming no relaxation.  The relocation encodes the position of the
-second symbol so the linker can determine whether to adjust the field
-value. The PMEM variants encode the word difference, instead of byte
-difference between symbols.  */
-  BFD_RELOC_PRU_GNU_DIFF8,
-  BFD_RELOC_PRU_GNU_DIFF16,
-  BFD_RELOC_PRU_GNU_DIFF32,
-  BFD_RELOC_PRU_GNU_DIFF16_PMEM,
-  BFD_RELOC_PRU_GNU_DIFF32_PMEM,
-
-/* IQ2000 Relocations.  */
-  BFD_RELOC_IQ2000_OFFSET_16,
-  BFD_RELOC_IQ2000_OFFSET_21,
-  BFD_RELOC_IQ2000_UHI16,
-
-/* Special Xtensa relocation used only by PLT entries in ELF shared
-objects to indicate that the runtime linker should set the value
-to one of its own internal functions or data structures.  */
-  BFD_RELOC_XTENSA_RTLD,
-
-/* Xtensa relocations for ELF shared objects.  */
-  BFD_RELOC_XTENSA_GLOB_DAT,
-  BFD_RELOC_XTENSA_JMP_SLOT,
-  BFD_RELOC_XTENSA_RELATIVE,
-
-/* Xtensa relocation used in ELF object files for symbols that may require
-PLT entries.  Otherwise, this is just a generic 32-bit relocation.  */
-  BFD_RELOC_XTENSA_PLT,
-
-/* Xtensa relocations for backward compatibility.  These have been replaced
-by BFD_RELOC_XTENSA_PDIFF and BFD_RELOC_XTENSA_NDIFF.
-Xtensa relocations to mark the difference of two local symbols.
-These are only needed to support linker relaxation and can be ignored
-when not relaxing.  The field is set to the value of the difference
-assuming no relaxation.  The relocation encodes the position of the
-first symbol so the linker can determine whether to adjust the field
-value.  */
-  BFD_RELOC_XTENSA_DIFF8,
-  BFD_RELOC_XTENSA_DIFF16,
-  BFD_RELOC_XTENSA_DIFF32,
-
-/* Generic Xtensa relocations for instruction operands.  Only the slot
-number is encoded in the relocation.  The relocation applies to the
-last PC-relative immediate operand, or if there are no PC-relative
-immediates, to the last immediate operand.  */
-  BFD_RELOC_XTENSA_SLOT0_OP,
-  BFD_RELOC_XTENSA_SLOT1_OP,
-  BFD_RELOC_XTENSA_SLOT2_OP,
-  BFD_RELOC_XTENSA_SLOT3_OP,
-  BFD_RELOC_XTENSA_SLOT4_OP,
-  BFD_RELOC_XTENSA_SLOT5_OP,
-  BFD_RELOC_XTENSA_SLOT6_OP,
-  BFD_RELOC_XTENSA_SLOT7_OP,
-  BFD_RELOC_XTENSA_SLOT8_OP,
-  BFD_RELOC_XTENSA_SLOT9_OP,
-  BFD_RELOC_XTENSA_SLOT10_OP,
-  BFD_RELOC_XTENSA_SLOT11_OP,
-  BFD_RELOC_XTENSA_SLOT12_OP,
-  BFD_RELOC_XTENSA_SLOT13_OP,
-  BFD_RELOC_XTENSA_SLOT14_OP,
-
-/* Alternate Xtensa relocations.  Only the slot is encoded in the
-relocation.  The meaning of these relocations is opcode-specific.  */
-  BFD_RELOC_XTENSA_SLOT0_ALT,
-  BFD_RELOC_XTENSA_SLOT1_ALT,
-  BFD_RELOC_XTENSA_SLOT2_ALT,
-  BFD_RELOC_XTENSA_SLOT3_ALT,
-  BFD_RELOC_XTENSA_SLOT4_ALT,
-  BFD_RELOC_XTENSA_SLOT5_ALT,
-  BFD_RELOC_XTENSA_SLOT6_ALT,
-  BFD_RELOC_XTENSA_SLOT7_ALT,
-  BFD_RELOC_XTENSA_SLOT8_ALT,
-  BFD_RELOC_XTENSA_SLOT9_ALT,
-  BFD_RELOC_XTENSA_SLOT10_ALT,
-  BFD_RELOC_XTENSA_SLOT11_ALT,
-  BFD_RELOC_XTENSA_SLOT12_ALT,
-  BFD_RELOC_XTENSA_SLOT13_ALT,
-  BFD_RELOC_XTENSA_SLOT14_ALT,
-
-/* Xtensa relocations for backward compatibility.  These have all been
-replaced by BFD_RELOC_XTENSA_SLOT0_OP.  */
-  BFD_RELOC_XTENSA_OP0,
-  BFD_RELOC_XTENSA_OP1,
-  BFD_RELOC_XTENSA_OP2,
-
-/* Xtensa relocation to mark that the assembler expanded the
-instructions from an original target.  The expansion size is
-encoded in the reloc size.  */
-  BFD_RELOC_XTENSA_ASM_EXPAND,
-
-/* Xtensa relocation to mark that the linker should simplify
-assembler-expanded instructions.  This is commonly used
-internally by the linker after analysis of a
-BFD_RELOC_XTENSA_ASM_EXPAND.  */
-  BFD_RELOC_XTENSA_ASM_SIMPLIFY,
-
-/* Xtensa TLS relocations.  */
-  BFD_RELOC_XTENSA_TLSDESC_FN,
-  BFD_RELOC_XTENSA_TLSDESC_ARG,
-  BFD_RELOC_XTENSA_TLS_DTPOFF,
-  BFD_RELOC_XTENSA_TLS_TPOFF,
-  BFD_RELOC_XTENSA_TLS_FUNC,
-  BFD_RELOC_XTENSA_TLS_ARG,
-  BFD_RELOC_XTENSA_TLS_CALL,
-
-/* Xtensa relocations to mark the difference of two local symbols.
-These are only needed to support linker relaxation and can be ignored
-when not relaxing.  The field is set to the value of the difference
-assuming no relaxation.  The relocation encodes the position of the
-subtracted symbol so the linker can determine whether to adjust the field
-value.  PDIFF relocations are used for positive differences, NDIFF
-relocations are used for negative differences.  The difference value
-is treated as unsigned with these relocation types, giving full
-8/16 value ranges.  */
-  BFD_RELOC_XTENSA_PDIFF8,
-  BFD_RELOC_XTENSA_PDIFF16,
-  BFD_RELOC_XTENSA_PDIFF32,
-  BFD_RELOC_XTENSA_NDIFF8,
-  BFD_RELOC_XTENSA_NDIFF16,
-  BFD_RELOC_XTENSA_NDIFF32,
-
-/* 8 bit signed offset in (ix+d) or (iy+d).  */
-  BFD_RELOC_Z80_DISP8,
-
-/* First 8 bits of multibyte (32, 24 or 16 bit) value.  */
-  BFD_RELOC_Z80_BYTE0,
-
-/* Second 8 bits of multibyte (32, 24 or 16 bit) value.  */
-  BFD_RELOC_Z80_BYTE1,
-
-/* Third 8 bits of multibyte (32 or 24 bit) value.  */
-  BFD_RELOC_Z80_BYTE2,
-
-/* Fourth 8 bits of multibyte (32 bit) value.  */
-  BFD_RELOC_Z80_BYTE3,
-
-/* Lowest 16 bits of multibyte (32 or 24 bit) value.  */
-  BFD_RELOC_Z80_WORD0,
-
-/* Highest 16 bits of multibyte (32 or 24 bit) value.  */
-  BFD_RELOC_Z80_WORD1,
-
-/* Like BFD_RELOC_16 but big-endian.  */
-  BFD_RELOC_Z80_16_BE,
-
-/* DJNZ offset.  */
-  BFD_RELOC_Z8K_DISP7,
-
-/* CALR offset.  */
-  BFD_RELOC_Z8K_CALLR,
-
-/* 4 bit value.  */
-  BFD_RELOC_Z8K_IMM4L,
-
-/* Lattice Mico32 relocations.  */
-  BFD_RELOC_LM32_CALL,
-  BFD_RELOC_LM32_BRANCH,
-  BFD_RELOC_LM32_16_GOT,
-  BFD_RELOC_LM32_GOTOFF_HI16,
-  BFD_RELOC_LM32_GOTOFF_LO16,
-  BFD_RELOC_LM32_COPY,
-  BFD_RELOC_LM32_GLOB_DAT,
-  BFD_RELOC_LM32_JMP_SLOT,
-  BFD_RELOC_LM32_RELATIVE,
-
-/* Difference between two section addreses.  Must be followed by a
-BFD_RELOC_MACH_O_PAIR.  */
-  BFD_RELOC_MACH_O_SECTDIFF,
-
-/* Like BFD_RELOC_MACH_O_SECTDIFF but with a local symbol.  */
-  BFD_RELOC_MACH_O_LOCAL_SECTDIFF,
-
-/* Pair of relocation.  Contains the first symbol.  */
-  BFD_RELOC_MACH_O_PAIR,
-
-/* Symbol will be substracted.  Must be followed by a BFD_RELOC_32.  */
-  BFD_RELOC_MACH_O_SUBTRACTOR32,
-
-/* Symbol will be substracted.  Must be followed by a BFD_RELOC_64.  */
-  BFD_RELOC_MACH_O_SUBTRACTOR64,
-
-/* PCREL relocations.  They are marked as branch to create PLT entry if
-required.  */
-  BFD_RELOC_MACH_O_X86_64_BRANCH32,
-  BFD_RELOC_MACH_O_X86_64_BRANCH8,
-
-/* Used when referencing a GOT entry.  */
-  BFD_RELOC_MACH_O_X86_64_GOT,
-
-/* Used when loading a GOT entry with movq.  It is specially marked so that
-the linker could optimize the movq to a leaq if possible.  */
-  BFD_RELOC_MACH_O_X86_64_GOT_LOAD,
-
-/* Same as BFD_RELOC_32_PCREL but with an implicit -1 addend.  */
-  BFD_RELOC_MACH_O_X86_64_PCREL32_1,
-
-/* Same as BFD_RELOC_32_PCREL but with an implicit -2 addend.  */
-  BFD_RELOC_MACH_O_X86_64_PCREL32_2,
-
-/* Same as BFD_RELOC_32_PCREL but with an implicit -4 addend.  */
-  BFD_RELOC_MACH_O_X86_64_PCREL32_4,
-
-/* Used when referencing a TLV entry.  */
-  BFD_RELOC_MACH_O_X86_64_TLV,
-
-/* Addend for PAGE or PAGEOFF.  */
-  BFD_RELOC_MACH_O_ARM64_ADDEND,
-
-/* Relative offset to page of GOT slot.  */
-  BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21,
-
-/* Relative offset within page of GOT slot.  */
-  BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12,
-
-/* Address of a GOT entry.  */
-  BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT,
-
-/* This is a 32 bit reloc for the microblaze that stores the
-low 16 bits of a value  */
-  BFD_RELOC_MICROBLAZE_32_LO,
-
-/* This is a 32 bit pc-relative reloc for the microblaze that
-stores the low 16 bits of a value  */
-  BFD_RELOC_MICROBLAZE_32_LO_PCREL,
-
-/* This is a 32 bit reloc for the microblaze that stores a
-value relative to the read-only small data area anchor  */
-  BFD_RELOC_MICROBLAZE_32_ROSDA,
-
-/* This is a 32 bit reloc for the microblaze that stores a
-value relative to the read-write small data area anchor  */
-  BFD_RELOC_MICROBLAZE_32_RWSDA,
-
-/* This is a 32 bit reloc for the microblaze to handle
-expressions of the form "Symbol Op Symbol"  */
-  BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM,
-
-/* This is a 64 bit reloc that stores the 32 bit pc relative
-value in two words (with an imm instruction).  No relocation is
-done here - only used for relaxing  */
-  BFD_RELOC_MICROBLAZE_64_NONE,
-
-/* This is a 64 bit reloc that stores the 32 bit pc relative
-value in two words (with an imm instruction).  The relocation is
-PC-relative GOT offset  */
-  BFD_RELOC_MICROBLAZE_64_GOTPC,
-
-/* This is a 64 bit reloc that stores the 32 bit pc relative
-value in two words (with an imm instruction).  The relocation is
-GOT offset  */
-  BFD_RELOC_MICROBLAZE_64_GOT,
-
-/* This is a 64 bit reloc that stores the 32 bit pc relative
-value in two words (with an imm instruction).  The relocation is
-PC-relative offset into PLT  */
-  BFD_RELOC_MICROBLAZE_64_PLT,
-
-/* This is a 64 bit reloc that stores the 32 bit GOT relative
-value in two words (with an imm instruction).  The relocation is
-relative offset from _GLOBAL_OFFSET_TABLE_  */
-  BFD_RELOC_MICROBLAZE_64_GOTOFF,
-
-/* This is a 32 bit reloc that stores the 32 bit GOT relative
-value in a word.  The relocation is relative offset from  */
-  BFD_RELOC_MICROBLAZE_32_GOTOFF,
-
-/* This is used to tell the dynamic linker to copy the value out of
-the dynamic object into the runtime process image.  */
-  BFD_RELOC_MICROBLAZE_COPY,
-
-/* Unused Reloc  */
-  BFD_RELOC_MICROBLAZE_64_TLS,
-
-/* This is a 64 bit reloc that stores the 32 bit GOT relative value
-of the GOT TLS GD info entry in two words (with an imm instruction). The
-relocation is GOT offset.  */
-  BFD_RELOC_MICROBLAZE_64_TLSGD,
-
-/* This is a 64 bit reloc that stores the 32 bit GOT relative value
-of the GOT TLS LD info entry in two words (with an imm instruction). The
-relocation is GOT offset.  */
-  BFD_RELOC_MICROBLAZE_64_TLSLD,
-
-/* This is a 32 bit reloc that stores the Module ID to GOT(n).  */
-  BFD_RELOC_MICROBLAZE_32_TLSDTPMOD,
-
-/* This is a 32 bit reloc that stores TLS offset to GOT(n+1).  */
-  BFD_RELOC_MICROBLAZE_32_TLSDTPREL,
-
-/* This is a 32 bit reloc for storing TLS offset to two words (uses imm
-instruction)  */
-  BFD_RELOC_MICROBLAZE_64_TLSDTPREL,
-
-/* This is a 64 bit reloc that stores 32-bit thread pointer relative offset
-to two words (uses imm instruction).  */
-  BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL,
-
-/* This is a 64 bit reloc that stores 32-bit thread pointer relative offset
-to two words (uses imm instruction).  */
-  BFD_RELOC_MICROBLAZE_64_TLSTPREL,
-
-/* This is a 64 bit reloc that stores the 32 bit pc relative
-value in two words (with an imm instruction).  The relocation is
-PC-relative offset from start of TEXT.  */
-  BFD_RELOC_MICROBLAZE_64_TEXTPCREL,
-
-/* This is a 64 bit reloc that stores the 32 bit offset
-value in two words (with an imm instruction).  The relocation is
-relative offset from start of TEXT.  */
-  BFD_RELOC_MICROBLAZE_64_TEXTREL,
-
-/* AArch64 pseudo relocation code to mark the start of the AArch64
-relocation enumerators.  N.B. the order of the enumerators is
-important as several tables in the AArch64 bfd backend are indexed
-by these enumerators; make sure they are all synced.  */
-  BFD_RELOC_AARCH64_RELOC_START,
-
-/* Deprecated AArch64 null relocation code.  */
-  BFD_RELOC_AARCH64_NULL,
-
-/* AArch64 null relocation code.  */
-  BFD_RELOC_AARCH64_NONE,
-
-/* Basic absolute relocations of N bits.  These are equivalent to
-BFD_RELOC_N and they were added to assist the indexing of the howto
-table.  */
-  BFD_RELOC_AARCH64_64,
-  BFD_RELOC_AARCH64_32,
-  BFD_RELOC_AARCH64_16,
-
-/* PC-relative relocations.  These are equivalent to BFD_RELOC_N_PCREL
-and they were added to assist the indexing of the howto table.  */
-  BFD_RELOC_AARCH64_64_PCREL,
-  BFD_RELOC_AARCH64_32_PCREL,
-  BFD_RELOC_AARCH64_16_PCREL,
-
-/* AArch64 MOV[NZK] instruction with most significant bits 0 to 15
-of an unsigned address/value.  */
-  BFD_RELOC_AARCH64_MOVW_G0,
-
-/* AArch64 MOV[NZK] instruction with less significant bits 0 to 15 of
-an address/value.  No overflow checking.  */
-  BFD_RELOC_AARCH64_MOVW_G0_NC,
-
-/* AArch64 MOV[NZK] instruction with most significant bits 16 to 31
-of an unsigned address/value.  */
-  BFD_RELOC_AARCH64_MOVW_G1,
-
-/* AArch64 MOV[NZK] instruction with less significant bits 16 to 31
-of an address/value.  No overflow checking.  */
-  BFD_RELOC_AARCH64_MOVW_G1_NC,
-
-/* AArch64 MOV[NZK] instruction with most significant bits 32 to 47
-of an unsigned address/value.  */
-  BFD_RELOC_AARCH64_MOVW_G2,
-
-/* AArch64 MOV[NZK] instruction with less significant bits 32 to 47
-of an address/value.  No overflow checking.  */
-  BFD_RELOC_AARCH64_MOVW_G2_NC,
-
-/* AArch64 MOV[NZK] instruction with most signficant bits 48 to 64
-of a signed or unsigned address/value.  */
-  BFD_RELOC_AARCH64_MOVW_G3,
-
-/* AArch64 MOV[NZ] instruction with most significant bits 0 to 15
-of a signed value.  Changes instruction to MOVZ or MOVN depending on the
-value's sign.  */
-  BFD_RELOC_AARCH64_MOVW_G0_S,
-
-/* AArch64 MOV[NZ] instruction with most significant bits 16 to 31
-of a signed value.  Changes instruction to MOVZ or MOVN depending on the
-value's sign.  */
-  BFD_RELOC_AARCH64_MOVW_G1_S,
-
-/* AArch64 MOV[NZ] instruction with most significant bits 32 to 47
-of a signed value.  Changes instruction to MOVZ or MOVN depending on the
-value's sign.  */
-  BFD_RELOC_AARCH64_MOVW_G2_S,
-
-/* AArch64 MOV[NZ] instruction with most significant bits 0 to 15
-of a signed value.  Changes instruction to MOVZ or MOVN depending on the
-value's sign.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G0,
-
-/* AArch64 MOV[NZ] instruction with most significant bits 0 to 15
-of a signed value.  Changes instruction to MOVZ or MOVN depending on the
-value's sign.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
-
-/* AArch64 MOVK instruction with most significant bits 16 to 31
-of a signed value.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G1,
-
-/* AArch64 MOVK instruction with most significant bits 16 to 31
-of a signed value.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
-
-/* AArch64 MOVK instruction with most significant bits 32 to 47
-of a signed value.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G2,
-
-/* AArch64 MOVK instruction with most significant bits 32 to 47
-of a signed value.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
-
-/* AArch64 MOVK instruction with most significant bits 47 to 63
-of a signed value.  */
-  BFD_RELOC_AARCH64_MOVW_PREL_G3,
-
-/* AArch64 Load Literal instruction, holding a 19 bit pc-relative word
-offset.  The lowest two bits must be zero and are not stored in the
-instruction, giving a 21 bit signed byte offset.  */
-  BFD_RELOC_AARCH64_LD_LO19_PCREL,
-
-/* AArch64 ADR instruction, holding a simple 21 bit pc-relative byte offset.  */
-  BFD_RELOC_AARCH64_ADR_LO21_PCREL,
-
-/* AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
-offset, giving a 4KB aligned page base address.  */
-  BFD_RELOC_AARCH64_ADR_HI21_PCREL,
-
-/* AArch64 ADRP instruction, with bits 12 to 32 of a pc-relative page
-offset, giving a 4KB aligned page base address, but with no overflow
-checking.  */
-  BFD_RELOC_AARCH64_ADR_HI21_NC_PCREL,
-
-/* AArch64 ADD immediate instruction, holding bits 0 to 11 of the address.
-Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_ADD_LO12,
-
-/* AArch64 8-bit load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST8_LO12,
-
-/* AArch64 14 bit pc-relative test bit and branch.
-The lowest two bits must be zero and are not stored in the instruction,
-giving a 16 bit signed byte offset.  */
-  BFD_RELOC_AARCH64_TSTBR14,
-
-/* AArch64 19 bit pc-relative conditional branch and compare & branch.
-The lowest two bits must be zero and are not stored in the instruction,
-giving a 21 bit signed byte offset.  */
-  BFD_RELOC_AARCH64_BRANCH19,
-
-/* AArch64 26 bit pc-relative unconditional branch.
-The lowest two bits must be zero and are not stored in the instruction,
-giving a 28 bit signed byte offset.  */
-  BFD_RELOC_AARCH64_JUMP26,
-
-/* AArch64 26 bit pc-relative unconditional branch and link.
-The lowest two bits must be zero and are not stored in the instruction,
-giving a 28 bit signed byte offset.  */
-  BFD_RELOC_AARCH64_CALL26,
-
-/* AArch64 16-bit load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST16_LO12,
-
-/* AArch64 32-bit load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST32_LO12,
-
-/* AArch64 64-bit load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST64_LO12,
-
-/* AArch64 128-bit load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST128_LO12,
-
-/* AArch64 Load Literal instruction, holding a 19 bit PC relative word
-offset of the global offset table entry for a symbol.  The lowest two
-bits must be zero and are not stored in the instruction, giving a 21
-bit signed byte offset.  This relocation type requires signed overflow
-checking.  */
-  BFD_RELOC_AARCH64_GOT_LD_PREL19,
-
-/* Get to the page base of the global offset table entry for a symbol as
-part of an ADRP instruction using a 21 bit PC relative value.Used in
-conjunction with BFD_RELOC_AARCH64_LD64_GOT_LO12_NC.  */
-  BFD_RELOC_AARCH64_ADR_GOT_PAGE,
-
-/* Unsigned 12 bit byte offset for 64 bit load/store from the page of
-the GOT entry for this symbol.  Used in conjunction with
-BFD_RELOC_AARCH64_ADR_GOT_PAGE.  Valid in LP64 ABI only.  */
-  BFD_RELOC_AARCH64_LD64_GOT_LO12_NC,
-
-/* Unsigned 12 bit byte offset for 32 bit load/store from the page of
-the GOT entry for this symbol.  Used in conjunction with
-BFD_RELOC_AARCH64_ADR_GOT_PAGE.  Valid in ILP32 ABI only.  */
-  BFD_RELOC_AARCH64_LD32_GOT_LO12_NC,
-
-/* Unsigned 16 bit byte offset for 64 bit load/store from the GOT entry
-for this symbol.  Valid in LP64 ABI only.  */
-  BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC,
-
-/* Unsigned 16 bit byte higher offset for 64 bit load/store from the GOT entry
-for this symbol.  Valid in LP64 ABI only.  */
-  BFD_RELOC_AARCH64_MOVW_GOTOFF_G1,
-
-/* Unsigned 15 bit byte offset for 64 bit load/store from the page of
-the GOT entry for this symbol.  Valid in LP64 ABI only.  */
-  BFD_RELOC_AARCH64_LD64_GOTOFF_LO15,
-
-/* Scaled 14 bit byte offset to the page base of the global offset table.  */
-  BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14,
-
-/* Scaled 15 bit byte offset to the page base of the global offset table.  */
-  BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15,
-
-/* Get to the page base of the global offset table entry for a symbols
-tls_index structure as part of an adrp instruction using a 21 bit PC
-relative value.  Used in conjunction with
-BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC.  */
-  BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21,
-
-/* AArch64 TLS General Dynamic  */
-  BFD_RELOC_AARCH64_TLSGD_ADR_PREL21,
-
-/* Unsigned 12 bit byte offset to global offset table entry for a symbols
-tls_index structure.  Used in conjunction with
-BFD_RELOC_AARCH64_TLSGD_ADR_PAGE21.  */
-  BFD_RELOC_AARCH64_TLSGD_ADD_LO12_NC,
-
-/* AArch64 TLS General Dynamic relocation.  */
-  BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC,
-
-/* AArch64 TLS General Dynamic relocation.  */
-  BFD_RELOC_AARCH64_TLSGD_MOVW_G1,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_LD32_GOTTPREL_LO12_NC,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC,
-
-/* AArch64 TLS INITIAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSIE_MOVW_GOTTPREL_G1,
-
-/* bit[23:12] of byte offset to module TLS base address.  */
-  BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
-
-/* Unsigned 12 bit byte offset to module TLS base address.  */
-  BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12,
-
-/* No overflow check version of BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.  */
-  BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC,
-
-/* Unsigned 12 bit byte offset to global offset table entry for a symbols
-tls_index structure.  Used in conjunction with
-BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.  */
-  BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC,
-
-/* GOT entry page address for AArch64 TLS Local Dynamic, used with ADRP
-instruction.  */
-  BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21,
-
-/* GOT entry address for AArch64 TLS Local Dynamic, used with ADR instruction.  */
-  BFD_RELOC_AARCH64_TLSLD_ADR_PREL21,
-
-/* bit[11:1] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
-
-/* bit[11:2] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
-
-/* bit[11:3] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
-
-/* bit[11:0] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
-
-/* bit[15:0] of byte offset to module TLS base address.  */
-  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
-
-/* No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0  */
-  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
-
-/* bit[31:16] of byte offset to module TLS base address.  */
-  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
-
-/* No overflow check version of BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1  */
-  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
-
-/* bit[47:32] of byte offset to module TLS base address.  */
-  BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G2,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_HI12,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12,
-
-/* AArch64 TLS LOCAL EXEC relocation.  */
-  BFD_RELOC_AARCH64_TLSLE_ADD_TPREL_LO12_NC,
-
-/* bit[11:1] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
-
-/* bit[11:2] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
-
-/* bit[11:3] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
-
-/* bit[11:0] of byte offset to module TLS base address, encoded in ldst
-instructions.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_LD_PREL19,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_ADR_PAGE21,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_LD64_LO12,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_LD32_LO12_NC,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_ADD_LO12,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_OFF_G1,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_OFF_G0_NC,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_LDR,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_ADD,
-
-/* AArch64 TLS DESC relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC_CALL,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_COPY,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_GLOB_DAT,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_JUMP_SLOT,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_RELATIVE,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_TLS_DTPMOD,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_TLS_DTPREL,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_TLS_TPREL,
-
-/* AArch64 TLS relocation.  */
-  BFD_RELOC_AARCH64_TLSDESC,
-
-/* AArch64 support for STT_GNU_IFUNC.  */
-  BFD_RELOC_AARCH64_IRELATIVE,
-
-/* AArch64 pseudo relocation code to mark the end of the AArch64
-relocation enumerators that have direct mapping to ELF reloc codes.
-There are a few more enumerators after this one; those are mainly
-used by the AArch64 assembler for the internal fixup or to select
-one of the above enumerators.  */
-  BFD_RELOC_AARCH64_RELOC_END,
-
-/* AArch64 pseudo relocation code to be used internally by the AArch64
-assembler and not (currently) written to any object files.  */
-  BFD_RELOC_AARCH64_GAS_INTERNAL_FIXUP,
-
-/* AArch64 unspecified load/store instruction, holding bits 0 to 11 of the
-address.  Used in conjunction with BFD_RELOC_AARCH64_ADR_HI21_PCREL.  */
-  BFD_RELOC_AARCH64_LDST_LO12,
-
-/* AArch64 pseudo relocation code for TLS local dynamic mode.  It's to be
-used internally by the AArch64 assembler and not (currently) written to
-any object files.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLD_LDST_DTPREL_LO12_NC,
-
-/* AArch64 pseudo relocation code for TLS local exec mode.  It's to be
-used internally by the AArch64 assembler and not (currently) written to
-any object files.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12,
-
-/* Similar as BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12, but no overflow check.  */
-  BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
-
-/* AArch64 pseudo relocation code to be used internally by the AArch64
-assembler and not (currently) written to any object files.  */
-  BFD_RELOC_AARCH64_LD_GOT_LO12_NC,
-
-/* AArch64 pseudo relocation code to be used internally by the AArch64
-assembler and not (currently) written to any object files.  */
-  BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC,
-
-/* AArch64 pseudo relocation code to be used internally by the AArch64
-assembler and not (currently) written to any object files.  */
-  BFD_RELOC_AARCH64_TLSDESC_LD_LO12_NC,
-
-/* Tilera TILEPro Relocations.  */
-  BFD_RELOC_TILEPRO_COPY,
-  BFD_RELOC_TILEPRO_GLOB_DAT,
-  BFD_RELOC_TILEPRO_JMP_SLOT,
-  BFD_RELOC_TILEPRO_RELATIVE,
-  BFD_RELOC_TILEPRO_BROFF_X1,
-  BFD_RELOC_TILEPRO_JOFFLONG_X1,
-  BFD_RELOC_TILEPRO_JOFFLONG_X1_PLT,
-  BFD_RELOC_TILEPRO_IMM8_X0,
-  BFD_RELOC_TILEPRO_IMM8_Y0,
-  BFD_RELOC_TILEPRO_IMM8_X1,
-  BFD_RELOC_TILEPRO_IMM8_Y1,
-  BFD_RELOC_TILEPRO_DEST_IMM8_X1,
-  BFD_RELOC_TILEPRO_MT_IMM15_X1,
-  BFD_RELOC_TILEPRO_MF_IMM15_X1,
-  BFD_RELOC_TILEPRO_IMM16_X0,
-  BFD_RELOC_TILEPRO_IMM16_X1,
-  BFD_RELOC_TILEPRO_IMM16_X0_LO,
-  BFD_RELOC_TILEPRO_IMM16_X1_LO,
-  BFD_RELOC_TILEPRO_IMM16_X0_HI,
-  BFD_RELOC_TILEPRO_IMM16_X1_HI,
-  BFD_RELOC_TILEPRO_IMM16_X0_HA,
-  BFD_RELOC_TILEPRO_IMM16_X1_HA,
-  BFD_RELOC_TILEPRO_IMM16_X0_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X1_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X0_LO_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X1_LO_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X0_HI_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X1_HI_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X0_HA_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X1_HA_PCREL,
-  BFD_RELOC_TILEPRO_IMM16_X0_GOT,
-  BFD_RELOC_TILEPRO_IMM16_X1_GOT,
-  BFD_RELOC_TILEPRO_IMM16_X0_GOT_LO,
-  BFD_RELOC_TILEPRO_IMM16_X1_GOT_LO,
-  BFD_RELOC_TILEPRO_IMM16_X0_GOT_HI,
-  BFD_RELOC_TILEPRO_IMM16_X1_GOT_HI,
-  BFD_RELOC_TILEPRO_IMM16_X0_GOT_HA,
-  BFD_RELOC_TILEPRO_IMM16_X1_GOT_HA,
-  BFD_RELOC_TILEPRO_MMSTART_X0,
-  BFD_RELOC_TILEPRO_MMEND_X0,
-  BFD_RELOC_TILEPRO_MMSTART_X1,
-  BFD_RELOC_TILEPRO_MMEND_X1,
-  BFD_RELOC_TILEPRO_SHAMT_X0,
-  BFD_RELOC_TILEPRO_SHAMT_X1,
-  BFD_RELOC_TILEPRO_SHAMT_Y0,
-  BFD_RELOC_TILEPRO_SHAMT_Y1,
-  BFD_RELOC_TILEPRO_TLS_GD_CALL,
-  BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
-  BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
-  BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
-  BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
-  BFD_RELOC_TILEPRO_TLS_IE_LOAD,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_LO,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_LO,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HI,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HI,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_GD_HA,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_GD_HA,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_LO,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_LO,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HI,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HI,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_IE_HA,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_IE_HA,
-  BFD_RELOC_TILEPRO_TLS_DTPMOD32,
-  BFD_RELOC_TILEPRO_TLS_DTPOFF32,
-  BFD_RELOC_TILEPRO_TLS_TPOFF32,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
-  BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
-  BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
-
-/* Tilera TILE-Gx Relocations.  */
-  BFD_RELOC_TILEGX_HW0,
-  BFD_RELOC_TILEGX_HW1,
-  BFD_RELOC_TILEGX_HW2,
-  BFD_RELOC_TILEGX_HW3,
-  BFD_RELOC_TILEGX_HW0_LAST,
-  BFD_RELOC_TILEGX_HW1_LAST,
-  BFD_RELOC_TILEGX_HW2_LAST,
-  BFD_RELOC_TILEGX_COPY,
-  BFD_RELOC_TILEGX_GLOB_DAT,
-  BFD_RELOC_TILEGX_JMP_SLOT,
-  BFD_RELOC_TILEGX_RELATIVE,
-  BFD_RELOC_TILEGX_BROFF_X1,
-  BFD_RELOC_TILEGX_JUMPOFF_X1,
-  BFD_RELOC_TILEGX_JUMPOFF_X1_PLT,
-  BFD_RELOC_TILEGX_IMM8_X0,
-  BFD_RELOC_TILEGX_IMM8_Y0,
-  BFD_RELOC_TILEGX_IMM8_X1,
-  BFD_RELOC_TILEGX_IMM8_Y1,
-  BFD_RELOC_TILEGX_DEST_IMM8_X1,
-  BFD_RELOC_TILEGX_MT_IMM14_X1,
-  BFD_RELOC_TILEGX_MF_IMM14_X1,
-  BFD_RELOC_TILEGX_MMSTART_X0,
-  BFD_RELOC_TILEGX_MMEND_X0,
-  BFD_RELOC_TILEGX_SHAMT_X0,
-  BFD_RELOC_TILEGX_SHAMT_X1,
-  BFD_RELOC_TILEGX_SHAMT_Y0,
-  BFD_RELOC_TILEGX_SHAMT_Y1,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2,
-  BFD_RELOC_TILEGX_IMM16_X0_HW3,
-  BFD_RELOC_TILEGX_IMM16_X1_HW3,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW3_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW3_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_GOT,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_GOT,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_GOT,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_GOT,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_GOT,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_GOT,
-  BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_GD,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_IE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_IE,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL,
-  BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_IE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_IE,
-  BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_IE,
-  BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_IE,
-  BFD_RELOC_TILEGX_TLS_DTPMOD64,
-  BFD_RELOC_TILEGX_TLS_DTPOFF64,
-  BFD_RELOC_TILEGX_TLS_TPOFF64,
-  BFD_RELOC_TILEGX_TLS_DTPMOD32,
-  BFD_RELOC_TILEGX_TLS_DTPOFF32,
-  BFD_RELOC_TILEGX_TLS_TPOFF32,
-  BFD_RELOC_TILEGX_TLS_GD_CALL,
-  BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
-  BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
-  BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
-  BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD,
-  BFD_RELOC_TILEGX_TLS_IE_LOAD,
-  BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
-  BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
-  BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD,
-  BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD,
-
-/* Linux eBPF relocations.  */
-  BFD_RELOC_BPF_64,
-  BFD_RELOC_BPF_32,
-  BFD_RELOC_BPF_16,
-  BFD_RELOC_BPF_DISP16,
-  BFD_RELOC_BPF_DISP32,
-
-/* Adapteva EPIPHANY - 8 bit signed pc-relative displacement  */
-  BFD_RELOC_EPIPHANY_SIMM8,
-
-/* Adapteva EPIPHANY - 24 bit signed pc-relative displacement  */
-  BFD_RELOC_EPIPHANY_SIMM24,
-
-/* Adapteva EPIPHANY - 16 most-significant bits of absolute address  */
-  BFD_RELOC_EPIPHANY_HIGH,
-
-/* Adapteva EPIPHANY - 16 least-significant bits of absolute address  */
-  BFD_RELOC_EPIPHANY_LOW,
-
-/* Adapteva EPIPHANY - 11 bit signed number - add/sub immediate  */
-  BFD_RELOC_EPIPHANY_SIMM11,
-
-/* Adapteva EPIPHANY - 11 bit sign-magnitude number (ld/st displacement)  */
-  BFD_RELOC_EPIPHANY_IMM11,
-
-/* Adapteva EPIPHANY - 8 bit immediate for 16 bit mov instruction.  */
-  BFD_RELOC_EPIPHANY_IMM8,
-
-/* Visium Relocations.  */
-  BFD_RELOC_VISIUM_HI16,
-  BFD_RELOC_VISIUM_LO16,
-  BFD_RELOC_VISIUM_IM16,
-  BFD_RELOC_VISIUM_REL16,
-  BFD_RELOC_VISIUM_HI16_PCREL,
-  BFD_RELOC_VISIUM_LO16_PCREL,
-  BFD_RELOC_VISIUM_IM16_PCREL,
-
-/* WebAssembly relocations.  */
-  BFD_RELOC_WASM32_LEB128,
-  BFD_RELOC_WASM32_LEB128_GOT,
-  BFD_RELOC_WASM32_LEB128_GOT_CODE,
-  BFD_RELOC_WASM32_LEB128_PLT,
-  BFD_RELOC_WASM32_PLT_INDEX,
-  BFD_RELOC_WASM32_ABS32_CODE,
-  BFD_RELOC_WASM32_COPY,
-  BFD_RELOC_WASM32_CODE_POINTER,
-  BFD_RELOC_WASM32_INDEX,
-  BFD_RELOC_WASM32_PLT_SIG,
-
-/* C-SKY relocations.  */
-  BFD_RELOC_CKCORE_NONE,
-  BFD_RELOC_CKCORE_ADDR32,
-  BFD_RELOC_CKCORE_PCREL_IMM8BY4,
-  BFD_RELOC_CKCORE_PCREL_IMM11BY2,
-  BFD_RELOC_CKCORE_PCREL_IMM4BY2,
-  BFD_RELOC_CKCORE_PCREL32,
-  BFD_RELOC_CKCORE_PCREL_JSR_IMM11BY2,
-  BFD_RELOC_CKCORE_GNU_VTINHERIT,
-  BFD_RELOC_CKCORE_GNU_VTENTRY,
-  BFD_RELOC_CKCORE_RELATIVE,
-  BFD_RELOC_CKCORE_COPY,
-  BFD_RELOC_CKCORE_GLOB_DAT,
-  BFD_RELOC_CKCORE_JUMP_SLOT,
-  BFD_RELOC_CKCORE_GOTOFF,
-  BFD_RELOC_CKCORE_GOTPC,
-  BFD_RELOC_CKCORE_GOT32,
-  BFD_RELOC_CKCORE_PLT32,
-  BFD_RELOC_CKCORE_ADDRGOT,
-  BFD_RELOC_CKCORE_ADDRPLT,
-  BFD_RELOC_CKCORE_PCREL_IMM26BY2,
-  BFD_RELOC_CKCORE_PCREL_IMM16BY2,
-  BFD_RELOC_CKCORE_PCREL_IMM16BY4,
-  BFD_RELOC_CKCORE_PCREL_IMM10BY2,
-  BFD_RELOC_CKCORE_PCREL_IMM10BY4,
-  BFD_RELOC_CKCORE_ADDR_HI16,
-  BFD_RELOC_CKCORE_ADDR_LO16,
-  BFD_RELOC_CKCORE_GOTPC_HI16,
-  BFD_RELOC_CKCORE_GOTPC_LO16,
-  BFD_RELOC_CKCORE_GOTOFF_HI16,
-  BFD_RELOC_CKCORE_GOTOFF_LO16,
-  BFD_RELOC_CKCORE_GOT12,
-  BFD_RELOC_CKCORE_GOT_HI16,
-  BFD_RELOC_CKCORE_GOT_LO16,
-  BFD_RELOC_CKCORE_PLT12,
-  BFD_RELOC_CKCORE_PLT_HI16,
-  BFD_RELOC_CKCORE_PLT_LO16,
-  BFD_RELOC_CKCORE_ADDRGOT_HI16,
-  BFD_RELOC_CKCORE_ADDRGOT_LO16,
-  BFD_RELOC_CKCORE_ADDRPLT_HI16,
-  BFD_RELOC_CKCORE_ADDRPLT_LO16,
-  BFD_RELOC_CKCORE_PCREL_JSR_IMM26BY2,
-  BFD_RELOC_CKCORE_TOFFSET_LO16,
-  BFD_RELOC_CKCORE_DOFFSET_LO16,
-  BFD_RELOC_CKCORE_PCREL_IMM18BY2,
-  BFD_RELOC_CKCORE_DOFFSET_IMM18,
-  BFD_RELOC_CKCORE_DOFFSET_IMM18BY2,
-  BFD_RELOC_CKCORE_DOFFSET_IMM18BY4,
-  BFD_RELOC_CKCORE_GOTOFF_IMM18,
-  BFD_RELOC_CKCORE_GOT_IMM18BY4,
-  BFD_RELOC_CKCORE_PLT_IMM18BY4,
-  BFD_RELOC_CKCORE_PCREL_IMM7BY4,
-  BFD_RELOC_CKCORE_TLS_LE32,
-  BFD_RELOC_CKCORE_TLS_IE32,
-  BFD_RELOC_CKCORE_TLS_GD32,
-  BFD_RELOC_CKCORE_TLS_LDM32,
-  BFD_RELOC_CKCORE_TLS_LDO32,
-  BFD_RELOC_CKCORE_TLS_DTPMOD32,
-  BFD_RELOC_CKCORE_TLS_DTPOFF32,
-  BFD_RELOC_CKCORE_TLS_TPOFF32,
-  BFD_RELOC_CKCORE_PCREL_FLRW_IMM8BY4,
-  BFD_RELOC_CKCORE_NOJSRI,
-  BFD_RELOC_CKCORE_CALLGRAPH,
-  BFD_RELOC_CKCORE_IRELATIVE,
-  BFD_RELOC_CKCORE_PCREL_BLOOP_IMM4BY4,
-  BFD_RELOC_CKCORE_PCREL_BLOOP_IMM12BY4,
-
-/* S12Z relocations.  */
-  BFD_RELOC_S12Z_OPR,
-  BFD_RELOC_UNUSED };
-
-typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
-reloc_howto_type *bfd_reloc_type_lookup
-   (bfd *abfd, bfd_reloc_code_real_type code);
-reloc_howto_type *bfd_reloc_name_lookup
-   (bfd *abfd, const char *reloc_name);
-
-const char *bfd_get_reloc_code_name (bfd_reloc_code_real_type code);
-
-/* Extracted from syms.c.  */
-
-typedef struct bfd_symbol
-{
-  /* A pointer to the BFD which owns the symbol. This information
-     is necessary so that a back end can work out what additional
-     information (invisible to the application writer) is carried
-     with the symbol.
-
-     This field is *almost* redundant, since you can use section->owner
-     instead, except that some symbols point to the global sections
-     bfd_{abs,com,und}_section.  This could be fixed by making
-     these globals be per-bfd (or per-target-flavor).  FIXME.  */
-  struct bfd *the_bfd; /* Use bfd_asymbol_bfd(sym) to access this field.  */
-
-  /* The text of the symbol. The name is left alone, and not copied; the
-     application may not alter it.  */
-  const char *name;
-
-  /* The value of the symbol.  This really should be a union of a
-     numeric value with a pointer, since some flags indicate that
-     a pointer to another symbol is stored here.  */
-  symvalue value;
-
-  /* Attributes of a symbol.  */
-#define BSF_NO_FLAGS            0
-
-  /* The symbol has local scope; <<static>> in <<C>>. The value
-     is the offset into the section of the data.  */
-#define BSF_LOCAL               (1 << 0)
-
-  /* The symbol has global scope; initialized data in <<C>>. The
-     value is the offset into the section of the data.  */
-#define BSF_GLOBAL              (1 << 1)
-
-  /* The symbol has global scope and is exported. The value is
-     the offset into the section of the data.  */
-#define BSF_EXPORT              BSF_GLOBAL /* No real difference.  */
-
-  /* A normal C symbol would be one of:
-     <<BSF_LOCAL>>, <<BSF_UNDEFINED>> or <<BSF_GLOBAL>>.  */
-
-  /* The symbol is a debugging record. The value has an arbitrary
-     meaning, unless BSF_DEBUGGING_RELOC is also set.  */
-#define BSF_DEBUGGING           (1 << 2)
-
-  /* The symbol denotes a function entry point.  Used in ELF,
-     perhaps others someday.  */
-#define BSF_FUNCTION            (1 << 3)
-
-  /* Used by the linker.  */
-#define BSF_KEEP                (1 << 5)
-
-  /* An ELF common symbol.  */
-#define BSF_ELF_COMMON          (1 << 6)
-
-  /* A weak global symbol, overridable without warnings by
-     a regular global symbol of the same name.  */
-#define BSF_WEAK                (1 << 7)
-
-  /* This symbol was created to point to a section, e.g. ELF's
-     STT_SECTION symbols.  */
-#define BSF_SECTION_SYM         (1 << 8)
-
-  /* The symbol used to be a common symbol, but now it is
-     allocated.  */
-#define BSF_OLD_COMMON          (1 << 9)
-
-  /* In some files the type of a symbol sometimes alters its
-     location in an output file - ie in coff a <<ISFCN>> symbol
-     which is also <<C_EXT>> symbol appears where it was
-     declared and not at the end of a section.  This bit is set
-     by the target BFD part to convey this information.  */
-#define BSF_NOT_AT_END          (1 << 10)
-
-  /* Signal that the symbol is the label of constructor section.  */
-#define BSF_CONSTRUCTOR         (1 << 11)
-
-  /* Signal that the symbol is a warning symbol.  The name is a
-     warning.  The name of the next symbol is the one to warn about;
-     if a reference is made to a symbol with the same name as the next
-     symbol, a warning is issued by the linker.  */
-#define BSF_WARNING             (1 << 12)
-
-  /* Signal that the symbol is indirect.  This symbol is an indirect
-     pointer to the symbol with the same name as the next symbol.  */
-#define BSF_INDIRECT            (1 << 13)
-
-  /* BSF_FILE marks symbols that contain a file name.  This is used
-     for ELF STT_FILE symbols.  */
-#define BSF_FILE                (1 << 14)
-
-  /* Symbol is from dynamic linking information.  */
-#define BSF_DYNAMIC             (1 << 15)
-
-  /* The symbol denotes a data object.  Used in ELF, and perhaps
-     others someday.  */
-#define BSF_OBJECT              (1 << 16)
-
-  /* This symbol is a debugging symbol.  The value is the offset
-     into the section of the data.  BSF_DEBUGGING should be set
-     as well.  */
-#define BSF_DEBUGGING_RELOC     (1 << 17)
-
-  /* This symbol is thread local.  Used in ELF.  */
-#define BSF_THREAD_LOCAL        (1 << 18)
-
-  /* This symbol represents a complex relocation expression,
-     with the expression tree serialized in the symbol name.  */
-#define BSF_RELC                (1 << 19)
-
-  /* This symbol represents a signed complex relocation expression,
-     with the expression tree serialized in the symbol name.  */
-#define BSF_SRELC               (1 << 20)
-
-  /* This symbol was created by bfd_get_synthetic_symtab.  */
-#define BSF_SYNTHETIC           (1 << 21)
-
-  /* This symbol is an indirect code object.  Unrelated to BSF_INDIRECT.
-     The dynamic linker will compute the value of this symbol by
-     calling the function that it points to.  BSF_FUNCTION must
-     also be also set.  */
-#define BSF_GNU_INDIRECT_FUNCTION (1 << 22)
-  /* This symbol is a globally unique data object.  The dynamic linker
-     will make sure that in the entire process there is just one symbol
-     with this name and type in use.  BSF_OBJECT must also be set.  */
-#define BSF_GNU_UNIQUE          (1 << 23)
-
-  /* This section symbol should be included in the symbol table.  */
-#define BSF_SECTION_SYM_USED    (1 << 24)
-
-  flagword flags;
-
-  /* A pointer to the section to which this symbol is
-     relative.  This will always be non NULL, there are special
-     sections for undefined and absolute symbols.  */
-  struct bfd_section *section;
-
-  /* Back end special data.  */
-  union
-    {
-      void *p;
-      bfd_vma i;
-    }
-  udata;
-}
-asymbol;
-
-#define bfd_get_symtab_upper_bound(abfd) \
-       BFD_SEND (abfd, _bfd_get_symtab_upper_bound, (abfd))
-
-bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym);
-
-bfd_boolean bfd_is_local_label_name (bfd *abfd, const char *name);
-
-#define bfd_is_local_label_name(abfd, name) \
-       BFD_SEND (abfd, _bfd_is_local_label_name, (abfd, name))
-
-bfd_boolean bfd_is_target_special_symbol (bfd *abfd, asymbol *sym);
-
-#define bfd_is_target_special_symbol(abfd, sym) \
-       BFD_SEND (abfd, _bfd_is_target_special_symbol, (abfd, sym))
-
-#define bfd_canonicalize_symtab(abfd, location) \
-       BFD_SEND (abfd, _bfd_canonicalize_symtab, (abfd, location))
-
-bfd_boolean bfd_set_symtab
-   (bfd *abfd, asymbol **location, unsigned int count);
-
-void bfd_print_symbol_vandf (bfd *abfd, void *file, asymbol *symbol);
-
-#define bfd_make_empty_symbol(abfd) \
-       BFD_SEND (abfd, _bfd_make_empty_symbol, (abfd))
-
-asymbol *_bfd_generic_make_empty_symbol (bfd *);
-
-#define bfd_make_debug_symbol(abfd,ptr,size) \
-       BFD_SEND (abfd, _bfd_make_debug_symbol, (abfd, ptr, size))
-
-int bfd_decode_symclass (asymbol *symbol);
-
-bfd_boolean bfd_is_undefined_symclass (int symclass);
-
-void bfd_symbol_info (asymbol *symbol, symbol_info *ret);
-
-bfd_boolean bfd_copy_private_symbol_data
-   (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
-
-#define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \
-       BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
-                 (ibfd, isymbol, obfd, osymbol))
-
-/* Extracted from bfd.c.  */
-
-enum bfd_direction
-  {
-    no_direction = 0,
-    read_direction = 1,
-    write_direction = 2,
-    both_direction = 3
-  };
-
-enum bfd_plugin_format
-  {
-    bfd_plugin_unknown = 0,
-    bfd_plugin_yes = 1,
-    bfd_plugin_no = 2
-  };
-
-struct bfd_build_id
-  {
-    bfd_size_type size;
-    bfd_byte data[1];
-  };
-
-struct bfd
-{
-  /* The filename the application opened the BFD with.  */
-  const char *filename;
-
-  /* A pointer to the target jump table.  */
-  const struct bfd_target *xvec;
-
-  /* The IOSTREAM, and corresponding IO vector that provide access
-     to the file backing the BFD.  */
-  void *iostream;
-  const struct bfd_iovec *iovec;
-
-  /* The caching routines use these to maintain a
-     least-recently-used list of BFDs.  */
-  struct bfd *lru_prev, *lru_next;
-
-  /* Track current file position (or current buffer offset for
-     in-memory BFDs).  When a file is closed by the caching routines,
-     BFD retains state information on the file here.  */
-  ufile_ptr where;
-
-  /* File modified time, if mtime_set is TRUE.  */
-  long mtime;
-
-  /* A unique identifier of the BFD  */
-  unsigned int id;
-
-  /* Format_specific flags.  */
-  flagword flags;
-
-  /* Values that may appear in the flags field of a BFD.  These also
-     appear in the object_flags field of the bfd_target structure, where
-     they indicate the set of flags used by that backend (not all flags
-     are meaningful for all object file formats) (FIXME: at the moment,
-     the object_flags values have mostly just been copied from backend
-     to another, and are not necessarily correct).  */
-
-#define BFD_NO_FLAGS                0x0
-
-  /* BFD contains relocation entries.  */
-#define HAS_RELOC                   0x1
-
-  /* BFD is directly executable.  */
-#define EXEC_P                      0x2
-
-  /* BFD has line number information (basically used for F_LNNO in a
-     COFF header).  */
-#define HAS_LINENO                  0x4
-
-  /* BFD has debugging information.  */
-#define HAS_DEBUG                  0x08
-
-  /* BFD has symbols.  */
-#define HAS_SYMS                   0x10
-
-  /* BFD has local symbols (basically used for F_LSYMS in a COFF
-     header).  */
-#define HAS_LOCALS                 0x20
-
-  /* BFD is a dynamic object.  */
-#define DYNAMIC                    0x40
-
-  /* Text section is write protected (if D_PAGED is not set, this is
-     like an a.out NMAGIC file) (the linker sets this by default, but
-     clears it for -r or -N).  */
-#define WP_TEXT                    0x80
-
-  /* BFD is dynamically paged (this is like an a.out ZMAGIC file) (the
-     linker sets this by default, but clears it for -r or -n or -N).  */
-#define D_PAGED                   0x100
-
-  /* BFD is relaxable (this means that bfd_relax_section may be able to
-     do something) (sometimes bfd_relax_section can do something even if
-     this is not set).  */
-#define BFD_IS_RELAXABLE          0x200
-
-  /* This may be set before writing out a BFD to request using a
-     traditional format.  For example, this is used to request that when
-     writing out an a.out object the symbols not be hashed to eliminate
-     duplicates.  */
-#define BFD_TRADITIONAL_FORMAT    0x400
-
-  /* This flag indicates that the BFD contents are actually cached
-     in memory.  If this is set, iostream points to a bfd_in_memory
-     struct.  */
-#define BFD_IN_MEMORY             0x800
-
-  /* This BFD has been created by the linker and doesn't correspond
-     to any input file.  */
-#define BFD_LINKER_CREATED       0x1000
-
-  /* This may be set before writing out a BFD to request that it
-     be written using values for UIDs, GIDs, timestamps, etc. that
-     will be consistent from run to run.  */
-#define BFD_DETERMINISTIC_OUTPUT 0x2000
-
-  /* Compress sections in this BFD.  */
-#define BFD_COMPRESS             0x4000
-
-  /* Decompress sections in this BFD.  */
-#define BFD_DECOMPRESS           0x8000
-
-  /* BFD is a dummy, for plugins.  */
-#define BFD_PLUGIN              0x10000
-
-  /* Compress sections in this BFD with SHF_COMPRESSED from gABI.  */
-#define BFD_COMPRESS_GABI       0x20000
-
-  /* Convert ELF common symbol type to STT_COMMON or STT_OBJECT in this
-     BFD.  */
-#define BFD_CONVERT_ELF_COMMON  0x40000
-
-  /* Use the ELF STT_COMMON type in this BFD.  */
-#define BFD_USE_ELF_STT_COMMON  0x80000
-
-  /* Put pathnames into archives (non-POSIX).  */
-#define BFD_ARCHIVE_FULL_PATH  0x100000
-
-  /* Flags bits to be saved in bfd_preserve_save.  */
-#define BFD_FLAGS_SAVED \
-  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
-   | BFD_PLUGIN | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON \
-   | BFD_USE_ELF_STT_COMMON)
-
-  /* Flags bits which are for BFD use only.  */
-#define BFD_FLAGS_FOR_BFD_USE_MASK \
-  (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \
-   | BFD_PLUGIN | BFD_TRADITIONAL_FORMAT | BFD_DETERMINISTIC_OUTPUT \
-   | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON)
-
-  /* The format which belongs to the BFD. (object, core, etc.)  */
-  ENUM_BITFIELD (bfd_format) format : 3;
-
-  /* The direction with which the BFD was opened.  */
-  ENUM_BITFIELD (bfd_direction) direction : 2;
-
-  /* Is the file descriptor being cached?  That is, can it be closed as
-     needed, and re-opened when accessed later?  */
-  unsigned int cacheable : 1;
-
-  /* Marks whether there was a default target specified when the
-     BFD was opened. This is used to select which matching algorithm
-     to use to choose the back end.  */
-  unsigned int target_defaulted : 1;
-
-  /* ... and here: (``once'' means at least once).  */
-  unsigned int opened_once : 1;
-
-  /* Set if we have a locally maintained mtime value, rather than
-     getting it from the file each time.  */
-  unsigned int mtime_set : 1;
-
-  /* Flag set if symbols from this BFD should not be exported.  */
-  unsigned int no_export : 1;
-
-  /* Remember when output has begun, to stop strange things
-     from happening.  */
-  unsigned int output_has_begun : 1;
-
-  /* Have archive map.  */
-  unsigned int has_armap : 1;
-
-  /* Set if this is a thin archive.  */
-  unsigned int is_thin_archive : 1;
-
-  /* Set if this archive should not cache element positions.  */
-  unsigned int no_element_cache : 1;
-
-  /* Set if only required symbols should be added in the link hash table for
-     this object.  Used by VMS linkers.  */
-  unsigned int selective_search : 1;
-
-  /* Set if this is the linker output BFD.  */
-  unsigned int is_linker_output : 1;
-
-  /* Set if this is the linker input BFD.  */
-  unsigned int is_linker_input : 1;
-
-  /* If this is an input for a compiler plug-in library.  */
-  ENUM_BITFIELD (bfd_plugin_format) plugin_format : 2;
-
-  /* Set if this is a plugin output file.  */
-  unsigned int lto_output : 1;
-
-  /* Set if this is a slim LTO object not loaded with a compiler plugin.  */
-  unsigned int lto_slim_object : 1;
-
-  /* Do not attempt to modify this file.  Set when detecting errors
-     that BFD is not prepared to handle for objcopy/strip.  */
-  unsigned int read_only : 1;
-
-  /* Set to dummy BFD created when claimed by a compiler plug-in
-     library.  */
-  bfd *plugin_dummy_bfd;
-
-  /* The offset of this bfd in the file, typically 0 if it is not
-     contained in an archive.  */
-  ufile_ptr origin;
-
-  /* The origin in the archive of the proxy entry.  This will
-     normally be the same as origin, except for thin archives,
-     when it will contain the current offset of the proxy in the
-     thin archive rather than the offset of the bfd in its actual
-     container.  */
-  ufile_ptr proxy_origin;
-
-  /* A hash table for section names.  */
-  struct bfd_hash_table section_htab;
-
-  /* Pointer to linked list of sections.  */
-  struct bfd_section *sections;
-
-  /* The last section on the section list.  */
-  struct bfd_section *section_last;
-
-  /* The number of sections.  */
-  unsigned int section_count;
-
-  /* A field used by _bfd_generic_link_add_archive_symbols.  This will
-     be used only for archive elements.  */
-  int archive_pass;
-
-  /* Stuff only useful for object files:
-     The start address.  */
-  bfd_vma start_address;
-
-  /* Symbol table for output BFD (with symcount entries).
-     Also used by the linker to cache input BFD symbols.  */
-  struct bfd_symbol **outsymbols;
-
-  /* Used for input and output.  */
-  unsigned int symcount;
-
-  /* Used for slurped dynamic symbol tables.  */
-  unsigned int dynsymcount;
-
-  /* Pointer to structure which contains architecture information.  */
-  const struct bfd_arch_info *arch_info;
-
-  /* Cached length of file for bfd_get_size.  0 until bfd_get_size is
-     called, 1 if stat returns an error or the file size is too large to
-     return in ufile_ptr.  Both 0 and 1 should be treated as "unknown".  */
-  ufile_ptr size;
-
-  /* Stuff only useful for archives.  */
-  void *arelt_data;
-  struct bfd *my_archive;      /* The containing archive BFD.  */
-  struct bfd *archive_next;    /* The next BFD in the archive.  */
-  struct bfd *archive_head;    /* The first BFD in the archive.  */
-  struct bfd *nested_archives; /* List of nested archive in a flattened
-                                  thin archive.  */
-
-  union {
-    /* For input BFDs, a chain of BFDs involved in a link.  */
-    struct bfd *next;
-    /* For output BFD, the linker hash table.  */
-    struct bfd_link_hash_table *hash;
-  } link;
-
-  /* Used by the back end to hold private data.  */
-  union
-    {
-      struct aout_data_struct *aout_data;
-      struct artdata *aout_ar_data;
-      struct coff_tdata *coff_obj_data;
-      struct pe_tdata *pe_obj_data;
-      struct xcoff_tdata *xcoff_obj_data;
-      struct ecoff_tdata *ecoff_obj_data;
-      struct srec_data_struct *srec_data;
-      struct verilog_data_struct *verilog_data;
-      struct ihex_data_struct *ihex_data;
-      struct tekhex_data_struct *tekhex_data;
-      struct elf_obj_tdata *elf_obj_data;
-      struct mmo_data_struct *mmo_data;
-      struct sun_core_struct *sun_core_data;
-      struct sco5_core_struct *sco5_core_data;
-      struct trad_core_struct *trad_core_data;
-      struct som_data_struct *som_data;
-      struct hpux_core_struct *hpux_core_data;
-      struct hppabsd_core_struct *hppabsd_core_data;
-      struct sgi_core_struct *sgi_core_data;
-      struct lynx_core_struct *lynx_core_data;
-      struct osf_core_struct *osf_core_data;
-      struct cisco_core_struct *cisco_core_data;
-      struct versados_data_struct *versados_data;
-      struct netbsd_core_struct *netbsd_core_data;
-      struct mach_o_data_struct *mach_o_data;
-      struct mach_o_fat_data_struct *mach_o_fat_data;
-      struct plugin_data_struct *plugin_data;
-      struct bfd_pef_data_struct *pef_data;
-      struct bfd_pef_xlib_data_struct *pef_xlib_data;
-      struct bfd_sym_data_struct *sym_data;
-      void *any;
-    }
-  tdata;
-
-  /* Used by the application to hold private data.  */
-  void *usrdata;
-
-  /* Where all the allocated stuff under this BFD goes.  This is a
-     struct objalloc *, but we use void * to avoid requiring the inclusion
-     of objalloc.h.  */
-  void *memory;
-
-  /* For input BFDs, the build ID, if the object has one. */
-  const struct bfd_build_id *build_id;
-};
-
-static inline const char *
-bfd_get_filename (const bfd *abfd)
-{
-  return abfd->filename;
-}
-
-static inline bfd_boolean
-bfd_get_cacheable (const bfd *abfd)
-{
-  return abfd->cacheable;
-}
-
-static inline enum bfd_format
-bfd_get_format (const bfd *abfd)
-{
-  return abfd->format;
-}
-
-static inline flagword
-bfd_get_file_flags (const bfd *abfd)
-{
-  return abfd->flags;
-}
-
-static inline bfd_vma
-bfd_get_start_address (const bfd *abfd)
-{
-  return abfd->start_address;
-}
-
-static inline unsigned int
-bfd_get_symcount (const bfd *abfd)
-{
-  return abfd->symcount;
-}
-
-static inline unsigned int
-bfd_get_dynamic_symcount (const bfd *abfd)
-{
-  return abfd->dynsymcount;
-}
-
-static inline struct bfd_symbol **
-bfd_get_outsymbols (const bfd *abfd)
-{
-  return abfd->outsymbols;
-}
-
-static inline unsigned int
-bfd_count_sections (const bfd *abfd)
-{
-  return abfd->section_count;
-}
-
-static inline bfd_boolean
-bfd_has_map (const bfd *abfd)
-{
-  return abfd->has_armap;
-}
-
-static inline bfd_boolean
-bfd_is_thin_archive (const bfd *abfd)
-{
-  return abfd->is_thin_archive;
-}
-
-static inline void *
-bfd_usrdata (const bfd *abfd)
-{
-  return abfd->usrdata;
-}
-
-/* See note beside bfd_set_section_userdata.  */
-static inline bfd_boolean
-bfd_set_cacheable (bfd * abfd, bfd_boolean val)
-{
-  abfd->cacheable = val;
-  return TRUE;
-}
-
-static inline void
-bfd_set_thin_archive (bfd *abfd, bfd_boolean val)
-{
-  abfd->is_thin_archive = val;
-}
-
-static inline void
-bfd_set_usrdata (bfd *abfd, void *val)
-{
-  abfd->usrdata = val;
-}
-
-static inline asection *
-bfd_asymbol_section (const asymbol *sy)
-{
-  return sy->section;
-}
-
-static inline bfd_vma
-bfd_asymbol_value (const asymbol *sy)
-{
-  return sy->section->vma + sy->value;
-}
-
-static inline const char *
-bfd_asymbol_name (const asymbol *sy)
-{
-  return sy->name;
-}
-
-static inline struct bfd *
-bfd_asymbol_bfd (const asymbol *sy)
-{
-  return sy->the_bfd;
-}
-
-static inline void
-bfd_set_asymbol_name (asymbol *sy, const char *name)
-{
-  sy->name = name;
-}
-
-static inline bfd_size_type
-bfd_get_section_limit_octets (const bfd *abfd, const asection *sec)
-{
-  if (abfd->direction != write_direction && sec->rawsize != 0)
-    return sec->rawsize;
-  return sec->size;
-}
-
-/* Find the address one past the end of SEC.  */
-static inline bfd_size_type
-bfd_get_section_limit (const bfd *abfd, const asection *sec)
-{
-  return (bfd_get_section_limit_octets (abfd, sec)
-          / bfd_octets_per_byte (abfd, sec));
-}
-
-/* Functions to handle insertion and deletion of a bfd's sections.  These
-   only handle the list pointers, ie. do not adjust section_count,
-   target_index etc.  */
-static inline void
-bfd_section_list_remove (bfd *abfd, asection *s)
-{
-  asection *next = s->next;
-  asection *prev = s->prev;
-  if (prev)
-    prev->next = next;
-  else
-    abfd->sections = next;
-  if (next)
-    next->prev = prev;
-  else
-    abfd->section_last = prev;
-}
-
-static inline void
-bfd_section_list_append (bfd *abfd, asection *s)
-{
-  s->next = 0;
-  if (abfd->section_last)
-    {
-      s->prev = abfd->section_last;
-      abfd->section_last->next = s;
-    }
-  else
-    {
-      s->prev = 0;
-      abfd->sections = s;
-    }
-  abfd->section_last = s;
-}
-
-static inline void
-bfd_section_list_prepend (bfd *abfd, asection *s)
-{
-  s->prev = 0;
-  if (abfd->sections)
-    {
-      s->next = abfd->sections;
-      abfd->sections->prev = s;
-    }
-  else
-    {
-      s->next = 0;
-      abfd->section_last = s;
-    }
-  abfd->sections = s;
-}
-
-static inline void
-bfd_section_list_insert_after (bfd *abfd, asection *a, asection *s)
-{
-  asection *next = a->next;
-  s->next = next;
-  s->prev = a;
-  a->next = s;
-  if (next)
-    next->prev = s;
-  else
-    abfd->section_last = s;
-}
-
-static inline void
-bfd_section_list_insert_before (bfd *abfd, asection *b, asection *s)
-{
-  asection *prev = b->prev;
-  s->prev = prev;
-  s->next = b;
-  b->prev = s;
-  if (prev)
-    prev->next = s;
-  else
-    abfd->sections = s;
-}
-
-static inline bfd_boolean
-bfd_section_removed_from_list (const bfd *abfd, const asection *s)
-{
-  return s->next ? s->next->prev != s : abfd->section_last != s;
-}
-
-
-typedef enum bfd_error
-{
-  bfd_error_no_error = 0,
-  bfd_error_system_call,
-  bfd_error_invalid_target,
-  bfd_error_wrong_format,
-  bfd_error_wrong_object_format,
-  bfd_error_invalid_operation,
-  bfd_error_no_memory,
-  bfd_error_no_symbols,
-  bfd_error_no_armap,
-  bfd_error_no_more_archived_files,
-  bfd_error_malformed_archive,
-  bfd_error_missing_dso,
-  bfd_error_file_not_recognized,
-  bfd_error_file_ambiguously_recognized,
-  bfd_error_no_contents,
-  bfd_error_nonrepresentable_section,
-  bfd_error_no_debug_section,
-  bfd_error_bad_value,
-  bfd_error_file_truncated,
-  bfd_error_file_too_big,
-  bfd_error_sorry,
-  bfd_error_on_input,
-  bfd_error_invalid_error_code
-}
-bfd_error_type;
-
-bfd_error_type bfd_get_error (void);
-
-void bfd_set_error (bfd_error_type error_tag);
-
-void bfd_set_input_error (bfd *input, bfd_error_type error_tag);
-
-const char *bfd_errmsg (bfd_error_type error_tag);
-
-void bfd_perror (const char *message);
-
-
-typedef void (*bfd_error_handler_type) (const char *, va_list);
-
-void _bfd_error_handler (const char *fmt, ...) ATTRIBUTE_PRINTF_1;
-
-bfd_error_handler_type bfd_set_error_handler (bfd_error_handler_type);
-
-void bfd_set_error_program_name (const char *);
-
-
-typedef void (*bfd_assert_handler_type) (const char *bfd_formatmsg,
-                                         const char *bfd_version,
-                                         const char *bfd_file,
-                                         int bfd_line);
-
-bfd_assert_handler_type bfd_set_assert_handler (bfd_assert_handler_type);
-
-long bfd_get_reloc_upper_bound (bfd *abfd, asection *sect);
-
-long bfd_canonicalize_reloc
-   (bfd *abfd, asection *sec, arelent **loc, asymbol **syms);
-
-void bfd_set_reloc
-   (bfd *abfd, asection *sec, arelent **rel, unsigned int count);
-
-#define bfd_set_reloc(abfd, asect, location, count) \
-       BFD_SEND (abfd, _bfd_set_reloc, (abfd, asect, location, count))
-bfd_boolean bfd_set_file_flags (bfd *abfd, flagword flags);
-
-int bfd_get_arch_size (bfd *abfd);
-
-int bfd_get_sign_extend_vma (bfd *abfd);
-
-bfd_boolean bfd_set_start_address (bfd *abfd, bfd_vma vma);
-
-unsigned int bfd_get_gp_size (bfd *abfd);
-
-void bfd_set_gp_size (bfd *abfd, unsigned int i);
-
-bfd_vma bfd_scan_vma (const char *string, const char **end, int base);
-
-bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
-
-#define bfd_copy_private_header_data(ibfd, obfd) \
-       BFD_SEND (obfd, _bfd_copy_private_header_data, \
-                 (ibfd, obfd))
-bfd_boolean bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd);
-
-#define bfd_copy_private_bfd_data(ibfd, obfd) \
-       BFD_SEND (obfd, _bfd_copy_private_bfd_data, \
-                 (ibfd, obfd))
-bfd_boolean bfd_set_private_flags (bfd *abfd, flagword flags);
-
-#define bfd_set_private_flags(abfd, flags) \
-       BFD_SEND (abfd, _bfd_set_private_flags, (abfd, flags))
-#define bfd_sizeof_headers(abfd, info) \
-       BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, info))
-
-#define bfd_find_nearest_line(abfd, sec, syms, off, file, func, line) \
-       BFD_SEND (abfd, _bfd_find_nearest_line, \
-                 (abfd, syms, sec, off, file, func, line, NULL))
-
-#define bfd_find_nearest_line_discriminator(abfd, sec, syms, off, file, func, \
-                                           line, disc) \
-       BFD_SEND (abfd, _bfd_find_nearest_line, \
-                 (abfd, syms, sec, off, file, func, line, disc))
-
-#define bfd_find_line(abfd, syms, sym, file, line) \
-       BFD_SEND (abfd, _bfd_find_line, \
-                 (abfd, syms, sym, file, line))
-
-#define bfd_find_inliner_info(abfd, file, func, line) \
-       BFD_SEND (abfd, _bfd_find_inliner_info, \
-                 (abfd, file, func, line))
-
-#define bfd_debug_info_start(abfd) \
-       BFD_SEND (abfd, _bfd_debug_info_start, (abfd))
-
-#define bfd_debug_info_end(abfd) \
-       BFD_SEND (abfd, _bfd_debug_info_end, (abfd))
-
-#define bfd_debug_info_accumulate(abfd, section) \
-       BFD_SEND (abfd, _bfd_debug_info_accumulate, (abfd, section))
-
-#define bfd_stat_arch_elt(abfd, stat) \
-       BFD_SEND (abfd->my_archive ? abfd->my_archive : abfd, \
-                 _bfd_stat_arch_elt, (abfd, stat))
-
-#define bfd_update_armap_timestamp(abfd) \
-       BFD_SEND (abfd, _bfd_update_armap_timestamp, (abfd))
-
-#define bfd_set_arch_mach(abfd, arch, mach)\
-       BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
-
-#define bfd_relax_section(abfd, section, link_info, again) \
-       BFD_SEND (abfd, _bfd_relax_section, (abfd, section, link_info, again))
-
-#define bfd_gc_sections(abfd, link_info) \
-       BFD_SEND (abfd, _bfd_gc_sections, (abfd, link_info))
-
-#define bfd_lookup_section_flags(link_info, flag_info, section) \
-       BFD_SEND (abfd, _bfd_lookup_section_flags, (link_info, flag_info, section))
-
-#define bfd_merge_sections(abfd, link_info) \
-       BFD_SEND (abfd, _bfd_merge_sections, (abfd, link_info))
-
-#define bfd_is_group_section(abfd, sec) \
-       BFD_SEND (abfd, _bfd_is_group_section, (abfd, sec))
-
-#define bfd_group_name(abfd, sec) \
-       BFD_SEND (abfd, _bfd_group_name, (abfd, sec))
-
-#define bfd_discard_group(abfd, sec) \
-       BFD_SEND (abfd, _bfd_discard_group, (abfd, sec))
-
-#define bfd_link_hash_table_create(abfd) \
-       BFD_SEND (abfd, _bfd_link_hash_table_create, (abfd))
-
-#define bfd_link_add_symbols(abfd, info) \
-       BFD_SEND (abfd, _bfd_link_add_symbols, (abfd, info))
-
-#define bfd_link_just_syms(abfd, sec, info) \
-       BFD_SEND (abfd, _bfd_link_just_syms, (sec, info))
-
-#define bfd_final_link(abfd, info) \
-       BFD_SEND (abfd, _bfd_final_link, (abfd, info))
-
-#define bfd_free_cached_info(abfd) \
-       BFD_SEND (abfd, _bfd_free_cached_info, (abfd))
-
-#define bfd_get_dynamic_symtab_upper_bound(abfd) \
-       BFD_SEND (abfd, _bfd_get_dynamic_symtab_upper_bound, (abfd))
-
-#define bfd_print_private_bfd_data(abfd, file)\
-       BFD_SEND (abfd, _bfd_print_private_bfd_data, (abfd, file))
-
-#define bfd_canonicalize_dynamic_symtab(abfd, asymbols) \
-       BFD_SEND (abfd, _bfd_canonicalize_dynamic_symtab, (abfd, asymbols))
-
-#define bfd_get_synthetic_symtab(abfd, count, syms, dyncount, dynsyms, ret) \
-       BFD_SEND (abfd, _bfd_get_synthetic_symtab, (abfd, count, syms, \
-                                                   dyncount, dynsyms, ret))
-
-#define bfd_get_dynamic_reloc_upper_bound(abfd) \
-       BFD_SEND (abfd, _bfd_get_dynamic_reloc_upper_bound, (abfd))
-
-#define bfd_canonicalize_dynamic_reloc(abfd, arels, asyms) \
-       BFD_SEND (abfd, _bfd_canonicalize_dynamic_reloc, (abfd, arels, asyms))
-
-extern bfd_byte *bfd_get_relocated_section_contents
-  (bfd *, struct bfd_link_info *, struct bfd_link_order *, bfd_byte *,
-   bfd_boolean, asymbol **);
-
-bfd_boolean bfd_alt_mach_code (bfd *abfd, int alternative);
-
-bfd_vma bfd_emul_get_maxpagesize (const char *);
-
-bfd_vma bfd_emul_get_commonpagesize (const char *, bfd_boolean);
-
-char *bfd_demangle (bfd *, const char *, int);
-
-void bfd_update_compression_header
-   (bfd *abfd, bfd_byte *contents, asection *sec);
-
-bfd_boolean bfd_check_compression_header
-   (bfd *abfd, bfd_byte *contents, asection *sec,
-    bfd_size_type *uncompressed_size,
-    unsigned int *uncompressed_alignment_power);
-
-int bfd_get_compression_header_size (bfd *abfd, asection *sec);
-
-bfd_size_type bfd_convert_section_size
-   (bfd *ibfd, asection *isec, bfd *obfd, bfd_size_type size);
-
-bfd_boolean bfd_convert_section_contents
-   (bfd *ibfd, asection *isec, bfd *obfd,
-    bfd_byte **ptr, bfd_size_type *ptr_size);
-
-/* Extracted from archive.c.  */
-symindex bfd_get_next_mapent
-   (bfd *abfd, symindex previous, carsym **sym);
-
-bfd_boolean bfd_set_archive_head (bfd *output, bfd *new_head);
-
-bfd *bfd_openr_next_archived_file (bfd *archive, bfd *previous);
-
-/* Extracted from corefile.c.  */
-const char *bfd_core_file_failing_command (bfd *abfd);
-
-int bfd_core_file_failing_signal (bfd *abfd);
-
-int bfd_core_file_pid (bfd *abfd);
-
-bfd_boolean core_file_matches_executable_p
-   (bfd *core_bfd, bfd *exec_bfd);
-
-bfd_boolean generic_core_file_matches_executable_p
-   (bfd *core_bfd, bfd *exec_bfd);
-
-/* Extracted from targets.c.  */
-#define BFD_SEND(bfd, message, arglist) \
-  ((*((bfd)->xvec->message)) arglist)
-
-#ifdef DEBUG_BFD_SEND
-#undef BFD_SEND
-#define BFD_SEND(bfd, message, arglist) \
-  (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
-    ((*((bfd)->xvec->message)) arglist) : \
-    (bfd_assert (__FILE__,__LINE__), NULL))
-#endif
-#define BFD_SEND_FMT(bfd, message, arglist) \
-  (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist)
-
-#ifdef DEBUG_BFD_SEND
-#undef BFD_SEND_FMT
-#define BFD_SEND_FMT(bfd, message, arglist) \
-  (((bfd) && (bfd)->xvec && (bfd)->xvec->message) ? \
-   (((bfd)->xvec->message[(int) ((bfd)->format)]) arglist) : \
-   (bfd_assert (__FILE__,__LINE__), NULL))
-#endif
-
-/* Defined to TRUE if unused section symbol should be kept.  */
-#ifndef TARGET_KEEP_UNUSED_SECTION_SYMBOLS
-#define TARGET_KEEP_UNUSED_SECTION_SYMBOLS TRUE
-#endif
-
-enum bfd_flavour
-{
-  /* N.B. Update bfd_flavour_name if you change this.  */
-  bfd_target_unknown_flavour,
-  bfd_target_aout_flavour,
-  bfd_target_coff_flavour,
-  bfd_target_ecoff_flavour,
-  bfd_target_xcoff_flavour,
-  bfd_target_elf_flavour,
-  bfd_target_tekhex_flavour,
-  bfd_target_srec_flavour,
-  bfd_target_verilog_flavour,
-  bfd_target_ihex_flavour,
-  bfd_target_som_flavour,
-  bfd_target_os9k_flavour,
-  bfd_target_versados_flavour,
-  bfd_target_msdos_flavour,
-  bfd_target_ovax_flavour,
-  bfd_target_evax_flavour,
-  bfd_target_mmo_flavour,
-  bfd_target_mach_o_flavour,
-  bfd_target_pef_flavour,
-  bfd_target_pef_xlib_flavour,
-  bfd_target_sym_flavour
-};
-
-enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
-
-/* Forward declaration.  */
-typedef struct bfd_link_info _bfd_link_info;
-
-/* Forward declaration.  */
-typedef struct flag_info flag_info;
-
-typedef void (*bfd_cleanup) (bfd *);
-
-typedef struct bfd_target
-{
-  /* Identifies the kind of target, e.g., SunOS4, Ultrix, etc.  */
-  const char *name;
-
- /* The "flavour" of a back end is a general indication about
-    the contents of a file.  */
-  enum bfd_flavour flavour;
-
-  /* The order of bytes within the data area of a file.  */
-  enum bfd_endian byteorder;
-
- /* The order of bytes within the header parts of a file.  */
-  enum bfd_endian header_byteorder;
-
-  /* A mask of all the flags which an executable may have set -
-     from the set <<BFD_NO_FLAGS>>, <<HAS_RELOC>>, ...<<D_PAGED>>.  */
-  flagword object_flags;
-
- /* A mask of all the flags which a section may have set - from
-    the set <<SEC_NO_FLAGS>>, <<SEC_ALLOC>>, ...<<SET_NEVER_LOAD>>.  */
-  flagword section_flags;
-
- /* The character normally found at the front of a symbol.
-    (if any), perhaps `_'.  */
-  char symbol_leading_char;
-
- /* The pad character for file names within an archive header.  */
-  char ar_pad_char;
-
-  /* The maximum number of characters in an archive header.  */
-  unsigned char ar_max_namelen;
-
-  /* How well this target matches, used to select between various
-     possible targets when more than one target matches.  */
-  unsigned char match_priority;
-
- /* TRUE if unused section symbols should be kept.  */
-  bfd_boolean keep_unused_section_symbols;
-
-  /* Entries for byte swapping for data. These are different from the
-     other entry points, since they don't take a BFD as the first argument.
-     Certain other handlers could do the same.  */
-  bfd_uint64_t   (*bfd_getx64) (const void *);
-  bfd_int64_t    (*bfd_getx_signed_64) (const void *);
-  void           (*bfd_putx64) (bfd_uint64_t, void *);
-  bfd_vma        (*bfd_getx32) (const void *);
-  bfd_signed_vma (*bfd_getx_signed_32) (const void *);
-  void           (*bfd_putx32) (bfd_vma, void *);
-  bfd_vma        (*bfd_getx16) (const void *);
-  bfd_signed_vma (*bfd_getx_signed_16) (const void *);
-  void           (*bfd_putx16) (bfd_vma, void *);
-
-  /* Byte swapping for the headers.  */
-  bfd_uint64_t   (*bfd_h_getx64) (const void *);
-  bfd_int64_t    (*bfd_h_getx_signed_64) (const void *);
-  void           (*bfd_h_putx64) (bfd_uint64_t, void *);
-  bfd_vma        (*bfd_h_getx32) (const void *);
-  bfd_signed_vma (*bfd_h_getx_signed_32) (const void *);
-  void           (*bfd_h_putx32) (bfd_vma, void *);
-  bfd_vma        (*bfd_h_getx16) (const void *);
-  bfd_signed_vma (*bfd_h_getx_signed_16) (const void *);
-  void           (*bfd_h_putx16) (bfd_vma, void *);
-
-  /* Format dependent routines: these are vectors of entry points
-     within the target vector structure, one for each format to check.  */
-
-  /* Check the format of a file being read.  Return a <<bfd_cleanup>> on
-     success or zero on failure.  */
-  bfd_cleanup (*_bfd_check_format[bfd_type_end]) (bfd *);
-
-  /* Set the format of a file being written.  */
-  bfd_boolean (*_bfd_set_format[bfd_type_end]) (bfd *);
-
-  /* Write cached information into a file being written, at <<bfd_close>>.  */
-  bfd_boolean (*_bfd_write_contents[bfd_type_end]) (bfd *);
-
-
-  /* Generic entry points.  */
-#define BFD_JUMP_TABLE_GENERIC(NAME) \
-  NAME##_close_and_cleanup, \
-  NAME##_bfd_free_cached_info, \
-  NAME##_new_section_hook, \
-  NAME##_get_section_contents, \
-  NAME##_get_section_contents_in_window
-
-  /* Called when the BFD is being closed to do any necessary cleanup.  */
-  bfd_boolean (*_close_and_cleanup) (bfd *);
-  /* Ask the BFD to free all cached information.  */
-  bfd_boolean (*_bfd_free_cached_info) (bfd *);
-  /* Called when a new section is created.  */
-  bfd_boolean (*_new_section_hook) (bfd *, sec_ptr);
-  /* Read the contents of a section.  */
-  bfd_boolean (*_bfd_get_section_contents) (bfd *, sec_ptr, void *, file_ptr,
-                                            bfd_size_type);
-  bfd_boolean (*_bfd_get_section_contents_in_window) (bfd *, sec_ptr,
-                                                      bfd_window *, file_ptr,
-                                                      bfd_size_type);
-
-  /* Entry points to copy private data.  */
-#define BFD_JUMP_TABLE_COPY(NAME) \
-  NAME##_bfd_copy_private_bfd_data, \
-  NAME##_bfd_merge_private_bfd_data, \
-  _bfd_generic_init_private_section_data, \
-  NAME##_bfd_copy_private_section_data, \
-  NAME##_bfd_copy_private_symbol_data, \
-  NAME##_bfd_copy_private_header_data, \
-  NAME##_bfd_set_private_flags, \
-  NAME##_bfd_print_private_bfd_data
-
-  /* Called to copy BFD general private data from one object file
-     to another.  */
-  bfd_boolean (*_bfd_copy_private_bfd_data) (bfd *, bfd *);
-  /* Called to merge BFD general private data from one object file
-     to a common output file when linking.  */
-  bfd_boolean (*_bfd_merge_private_bfd_data) (bfd *, struct bfd_link_info *);
-  /* Called to initialize BFD private section data from one object file
-     to another.  */
-#define bfd_init_private_section_data(ibfd, isec, obfd, osec, link_info) \
-       BFD_SEND (obfd, _bfd_init_private_section_data, \
-                 (ibfd, isec, obfd, osec, link_info))
-  bfd_boolean (*_bfd_init_private_section_data) (bfd *, sec_ptr, bfd *,
-                                                 sec_ptr,
-                                                 struct bfd_link_info *);
-  /* Called to copy BFD private section data from one object file
-     to another.  */
-  bfd_boolean (*_bfd_copy_private_section_data) (bfd *, sec_ptr, bfd *,
-                                                 sec_ptr);
-  /* Called to copy BFD private symbol data from one symbol
-     to another.  */
-  bfd_boolean (*_bfd_copy_private_symbol_data) (bfd *, asymbol *, bfd *,
-                                                asymbol *);
-  /* Called to copy BFD private header data from one object file
-     to another.  */
-  bfd_boolean (*_bfd_copy_private_header_data) (bfd *, bfd *);
-  /* Called to set private backend flags.  */
-  bfd_boolean (*_bfd_set_private_flags) (bfd *, flagword);
-
-  /* Called to print private BFD data.  */
-  bfd_boolean (*_bfd_print_private_bfd_data) (bfd *, void *);
-
-  /* Core file entry points.  */
-#define BFD_JUMP_TABLE_CORE(NAME) \
-  NAME##_core_file_failing_command, \
-  NAME##_core_file_failing_signal, \
-  NAME##_core_file_matches_executable_p, \
-  NAME##_core_file_pid
-
-  char *      (*_core_file_failing_command) (bfd *);
-  int         (*_core_file_failing_signal) (bfd *);
-  bfd_boolean (*_core_file_matches_executable_p) (bfd *, bfd *);
-  int         (*_core_file_pid) (bfd *);
-
-  /* Archive entry points.  */
-#define BFD_JUMP_TABLE_ARCHIVE(NAME) \
-  NAME##_slurp_armap, \
-  NAME##_slurp_extended_name_table, \
-  NAME##_construct_extended_name_table, \
-  NAME##_truncate_arname, \
-  NAME##_write_armap, \
-  NAME##_read_ar_hdr, \
-  NAME##_write_ar_hdr, \
-  NAME##_openr_next_archived_file, \
-  NAME##_get_elt_at_index, \
-  NAME##_generic_stat_arch_elt, \
-  NAME##_update_armap_timestamp
-
-  bfd_boolean (*_bfd_slurp_armap) (bfd *);
-  bfd_boolean (*_bfd_slurp_extended_name_table) (bfd *);
-  bfd_boolean (*_bfd_construct_extended_name_table) (bfd *, char **,
-                                                     bfd_size_type *,
-                                                     const char **);
-  void        (*_bfd_truncate_arname) (bfd *, const char *, char *);
-  bfd_boolean (*write_armap) (bfd *, unsigned int, struct orl *,
-                              unsigned int, int);
-  void *      (*_bfd_read_ar_hdr_fn) (bfd *);
-  bfd_boolean (*_bfd_write_ar_hdr_fn) (bfd *, bfd *);
-  bfd *       (*openr_next_archived_file) (bfd *, bfd *);
-#define bfd_get_elt_at_index(b,i) \
-       BFD_SEND (b, _bfd_get_elt_at_index, (b,i))
-  bfd *       (*_bfd_get_elt_at_index) (bfd *, symindex);
-  int         (*_bfd_stat_arch_elt) (bfd *, struct stat *);
-  bfd_boolean (*_bfd_update_armap_timestamp) (bfd *);
-
-  /* Entry points used for symbols.  */
-#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
-  NAME##_get_symtab_upper_bound, \
-  NAME##_canonicalize_symtab, \
-  NAME##_make_empty_symbol, \
-  NAME##_print_symbol, \
-  NAME##_get_symbol_info, \
-  NAME##_get_symbol_version_string, \
-  NAME##_bfd_is_local_label_name, \
-  NAME##_bfd_is_target_special_symbol, \
-  NAME##_get_lineno, \
-  NAME##_find_nearest_line, \
-  NAME##_find_line, \
-  NAME##_find_inliner_info, \
-  NAME##_bfd_make_debug_symbol, \
-  NAME##_read_minisymbols, \
-  NAME##_minisymbol_to_symbol
-
-  long        (*_bfd_get_symtab_upper_bound) (bfd *);
-  long        (*_bfd_canonicalize_symtab) (bfd *, struct bfd_symbol **);
-  struct bfd_symbol *
-              (*_bfd_make_empty_symbol) (bfd *);
-  void        (*_bfd_print_symbol) (bfd *, void *, struct bfd_symbol *,
-                                    bfd_print_symbol_type);
-#define bfd_print_symbol(b,p,s,e) \
-       BFD_SEND (b, _bfd_print_symbol, (b,p,s,e))
-  void        (*_bfd_get_symbol_info) (bfd *, struct bfd_symbol *,
-                                       symbol_info *);
-#define bfd_get_symbol_info(b,p,e) \
-       BFD_SEND (b, _bfd_get_symbol_info, (b,p,e))
-  const char *(*_bfd_get_symbol_version_string) (bfd *, struct bfd_symbol *,
-                                                 bfd_boolean,
-                                                 bfd_boolean *);
-#define bfd_get_symbol_version_string(b,s,p,h) \
-       BFD_SEND (b, _bfd_get_symbol_version_string, (b,s,p,h))
-  bfd_boolean (*_bfd_is_local_label_name) (bfd *, const char *);
-  bfd_boolean (*_bfd_is_target_special_symbol) (bfd *, asymbol *);
-  alent *     (*_get_lineno) (bfd *, struct bfd_symbol *);
-  bfd_boolean (*_bfd_find_nearest_line) (bfd *, struct bfd_symbol **,
-                                         struct bfd_section *, bfd_vma,
-                                         const char **, const char **,
-                                         unsigned int *, unsigned int *);
-  bfd_boolean (*_bfd_find_line) (bfd *, struct bfd_symbol **,
-                                 struct bfd_symbol *, const char **,
-                                 unsigned int *);
-  bfd_boolean (*_bfd_find_inliner_info)
-    (bfd *, const char **, const char **, unsigned int *);
- /* Back-door to allow format-aware applications to create debug symbols
-    while using BFD for everything else.  Currently used by the assembler
-    when creating COFF files.  */
-  asymbol *   (*_bfd_make_debug_symbol) (bfd *, void *, unsigned long size);
-#define bfd_read_minisymbols(b, d, m, s) \
-       BFD_SEND (b, _read_minisymbols, (b, d, m, s))
-  long        (*_read_minisymbols) (bfd *, bfd_boolean, void **,
-                                    unsigned int *);
-#define bfd_minisymbol_to_symbol(b, d, m, f) \
-       BFD_SEND (b, _minisymbol_to_symbol, (b, d, m, f))
-  asymbol *   (*_minisymbol_to_symbol) (bfd *, bfd_boolean, const void *,
-                                        asymbol *);
-
-  /* Routines for relocs.  */
-#define BFD_JUMP_TABLE_RELOCS(NAME) \
-  NAME##_get_reloc_upper_bound, \
-  NAME##_canonicalize_reloc, \
-  NAME##_set_reloc, \
-  NAME##_bfd_reloc_type_lookup, \
-  NAME##_bfd_reloc_name_lookup
-
-  long        (*_get_reloc_upper_bound) (bfd *, sec_ptr);
-  long        (*_bfd_canonicalize_reloc) (bfd *, sec_ptr, arelent **,
-                                          struct bfd_symbol **);
-  void        (*_bfd_set_reloc) (bfd *, sec_ptr, arelent **, unsigned int);
-  /* See documentation on reloc types.  */
-  reloc_howto_type *
-              (*reloc_type_lookup) (bfd *, bfd_reloc_code_real_type);
-  reloc_howto_type *
-              (*reloc_name_lookup) (bfd *, const char *);
-
-  /* Routines used when writing an object file.  */
-#define BFD_JUMP_TABLE_WRITE(NAME) \
-  NAME##_set_arch_mach, \
-  NAME##_set_section_contents
-
-  bfd_boolean (*_bfd_set_arch_mach) (bfd *, enum bfd_architecture,
-                                     unsigned long);
-  bfd_boolean (*_bfd_set_section_contents) (bfd *, sec_ptr, const void *,
-                                            file_ptr, bfd_size_type);
-
-  /* Routines used by the linker.  */
-#define BFD_JUMP_TABLE_LINK(NAME) \
-  NAME##_sizeof_headers, \
-  NAME##_bfd_get_relocated_section_contents, \
-  NAME##_bfd_relax_section, \
-  NAME##_bfd_link_hash_table_create, \
-  NAME##_bfd_link_add_symbols, \
-  NAME##_bfd_link_just_syms, \
-  NAME##_bfd_copy_link_hash_symbol_type, \
-  NAME##_bfd_final_link, \
-  NAME##_bfd_link_split_section, \
-  NAME##_bfd_link_check_relocs, \
-  NAME##_bfd_gc_sections, \
-  NAME##_bfd_lookup_section_flags, \
-  NAME##_bfd_merge_sections, \
-  NAME##_bfd_is_group_section, \
-  NAME##_bfd_group_name, \
-  NAME##_bfd_discard_group, \
-  NAME##_section_already_linked, \
-  NAME##_bfd_define_common_symbol, \
-  NAME##_bfd_link_hide_symbol, \
-  NAME##_bfd_define_start_stop
-
-  int         (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
-  bfd_byte *  (*_bfd_get_relocated_section_contents) (bfd *,
-                                                      struct bfd_link_info *,
-                                                      struct bfd_link_order *,
-                                                      bfd_byte *, bfd_boolean,
-                                                      struct bfd_symbol **);
-
-  bfd_boolean (*_bfd_relax_section) (bfd *, struct bfd_section *,
-                                     struct bfd_link_info *, bfd_boolean *);
-
-  /* Create a hash table for the linker.  Different backends store
-     different information in this table.  */
-  struct bfd_link_hash_table *
-              (*_bfd_link_hash_table_create) (bfd *);
-
-  /* Add symbols from this object file into the hash table.  */
-  bfd_boolean (*_bfd_link_add_symbols) (bfd *, struct bfd_link_info *);
-
-  /* Indicate that we are only retrieving symbol values from this section.  */
-  void        (*_bfd_link_just_syms) (asection *, struct bfd_link_info *);
-
-  /* Copy the symbol type and other attributes for a linker script
-     assignment of one symbol to another.  */
-#define bfd_copy_link_hash_symbol_type(b, t, f) \
-       BFD_SEND (b, _bfd_copy_link_hash_symbol_type, (b, t, f))
-  void        (*_bfd_copy_link_hash_symbol_type) (bfd *,
-                                                  struct bfd_link_hash_entry *,
-                                                  struct bfd_link_hash_entry *);
-
-  /* Do a link based on the link_order structures attached to each
-     section of the BFD.  */
-  bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
-
-  /* Should this section be split up into smaller pieces during linking.  */
-  bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
-
-  /* Check the relocations in the bfd for validity.  */
-  bfd_boolean (* _bfd_link_check_relocs)(bfd *, struct bfd_link_info *);
-
-  /* Remove sections that are not referenced from the output.  */
-  bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
-
-  /* Sets the bitmask of allowed and disallowed section flags.  */
-  bfd_boolean (*_bfd_lookup_section_flags) (struct bfd_link_info *,
-                                            struct flag_info *, asection *);
-
-  /* Attempt to merge SEC_MERGE sections.  */
-  bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
-
-  /* Is this section a member of a group?  */
-  bfd_boolean (*_bfd_is_group_section) (bfd *, const struct bfd_section *);
-
-  /* The group name, if section is a member of a group.  */
-  const char *(*_bfd_group_name) (bfd *, const struct bfd_section *);
-
-  /* Discard members of a group.  */
-  bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
-
-  /* Check if SEC has been already linked during a reloceatable or
-     final link.  */
-  bfd_boolean (*_section_already_linked) (bfd *, asection *,
-                                          struct bfd_link_info *);
-
-  /* Define a common symbol.  */
-  bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
-                                            struct bfd_link_hash_entry *);
-
-  /* Hide a symbol.  */
-  void (*_bfd_link_hide_symbol) (bfd *, struct bfd_link_info *,
-                                 struct bfd_link_hash_entry *);
-
-  /* Define a __start, __stop, .startof. or .sizeof. symbol.  */
-  struct bfd_link_hash_entry *
-              (*_bfd_define_start_stop) (struct bfd_link_info *, const char *,
-                                         asection *);
-
-  /* Routines to handle dynamic symbols and relocs.  */
-#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
-  NAME##_get_dynamic_symtab_upper_bound, \
-  NAME##_canonicalize_dynamic_symtab, \
-  NAME##_get_synthetic_symtab, \
-  NAME##_get_dynamic_reloc_upper_bound, \
-  NAME##_canonicalize_dynamic_reloc
-
-  /* Get the amount of memory required to hold the dynamic symbols.  */
-  long        (*_bfd_get_dynamic_symtab_upper_bound) (bfd *);
-  /* Read in the dynamic symbols.  */
-  long        (*_bfd_canonicalize_dynamic_symtab) (bfd *, struct bfd_symbol **);
-  /* Create synthetized symbols.  */
-  long        (*_bfd_get_synthetic_symtab) (bfd *, long, struct bfd_symbol **,
-                                            long, struct bfd_symbol **,
-                                            struct bfd_symbol **);
-  /* Get the amount of memory required to hold the dynamic relocs.  */
-  long        (*_bfd_get_dynamic_reloc_upper_bound) (bfd *);
-  /* Read in the dynamic relocs.  */
-  long        (*_bfd_canonicalize_dynamic_reloc) (bfd *, arelent **,
-                                                  struct bfd_symbol **);
-
-  /* Opposite endian version of this target.  */
-  const struct bfd_target *alternative_target;
-
-  /* Data for use by back-end routines, which isn't
-     generic enough to belong in this structure.  */
-  const void *backend_data;
-
-} bfd_target;
-
-static inline const char *
-bfd_get_target (const bfd *abfd)
-{
-  return abfd->xvec->name;
-}
-
-static inline enum bfd_flavour
-bfd_get_flavour (const bfd *abfd)
-{
-  return abfd->xvec->flavour;
-}
-
-static inline flagword
-bfd_applicable_file_flags (const bfd *abfd)
-{
-  return abfd->xvec->object_flags;
-}
-
-static inline bfd_boolean
-bfd_family_coff (const bfd *abfd)
-{
-  return (bfd_get_flavour (abfd) == bfd_target_coff_flavour
-          || bfd_get_flavour (abfd) == bfd_target_xcoff_flavour);
-}
-
-static inline bfd_boolean
-bfd_big_endian (const bfd *abfd)
-{
-  return abfd->xvec->byteorder == BFD_ENDIAN_BIG;
-}
-static inline bfd_boolean
-bfd_little_endian (const bfd *abfd)
-{
-  return abfd->xvec->byteorder == BFD_ENDIAN_LITTLE;
-}
-
-static inline bfd_boolean
-bfd_header_big_endian (const bfd *abfd)
-{
-  return abfd->xvec->header_byteorder == BFD_ENDIAN_BIG;
-}
-
-static inline bfd_boolean
-bfd_header_little_endian (const bfd *abfd)
-{
-  return abfd->xvec->header_byteorder == BFD_ENDIAN_LITTLE;
-}
-
-static inline flagword
-bfd_applicable_section_flags (const bfd *abfd)
-{
-  return abfd->xvec->section_flags;
-}
-
-static inline char
-bfd_get_symbol_leading_char (const bfd *abfd)
-{
-  return abfd->xvec->symbol_leading_char;
-}
-
-static inline enum bfd_flavour
-bfd_asymbol_flavour (const asymbol *sy)
-{
-  if ((sy->flags & BSF_SYNTHETIC) != 0)
-    return bfd_target_unknown_flavour;
-  return sy->the_bfd->xvec->flavour;
-}
-
-static inline bfd_boolean
-bfd_keep_unused_section_symbols (const bfd *abfd)
-{
-  return abfd->xvec->keep_unused_section_symbols;
-}
-
-bfd_boolean bfd_set_default_target (const char *name);
-
-const bfd_target *bfd_find_target (const char *target_name, bfd *abfd);
-
-const bfd_target *bfd_get_target_info (const char *target_name,
-    bfd *abfd,
-    bfd_boolean *is_bigendian,
-    int *underscoring,
-    const char **def_target_arch);
-const char ** bfd_target_list (void);
-
-const bfd_target *bfd_iterate_over_targets
-   (int (*func) (const bfd_target *, void *),
-    void *data);
-
-const char *bfd_flavour_name (enum bfd_flavour flavour);
-
-/* Extracted from format.c.  */
-bfd_boolean bfd_check_format (bfd *abfd, bfd_format format);
-
-bfd_boolean bfd_check_format_matches
-   (bfd *abfd, bfd_format format, char ***matching);
-
-bfd_boolean bfd_set_format (bfd *abfd, bfd_format format);
-
-const char *bfd_format_string (bfd_format format);
-
-/* Extracted from linker.c.  */
-/* Return TRUE if the symbol described by a linker hash entry H
-   is going to be absolute.  Linker-script defined symbols can be
-   converted from absolute to section-relative ones late in the
-   link.  Use this macro to correctly determine whether the symbol
-   will actually end up absolute in output.  */
-#define bfd_is_abs_symbol(H) \
-  (((H)->type == bfd_link_hash_defined \
-    || (H)->type == bfd_link_hash_defweak) \
-   && bfd_is_abs_section ((H)->u.def.section) \
-   && !(H)->rel_from_abs)
-
-bfd_boolean bfd_link_split_section (bfd *abfd, asection *sec);
-
-#define bfd_link_split_section(abfd, sec) \
-       BFD_SEND (abfd, _bfd_link_split_section, (abfd, sec))
-
-bfd_boolean bfd_section_already_linked (bfd *abfd,
-    asection *sec,
-    struct bfd_link_info *info);
-
-#define bfd_section_already_linked(abfd, sec, info) \
-       BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
-
-bfd_boolean bfd_generic_define_common_symbol
-   (bfd *output_bfd, struct bfd_link_info *info,
-    struct bfd_link_hash_entry *h);
-
-#define bfd_define_common_symbol(output_bfd, info, h) \
-       BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
-
-void _bfd_generic_link_hide_symbol
-   (bfd *output_bfd, struct bfd_link_info *info,
-    struct bfd_link_hash_entry *h);
-
-#define bfd_link_hide_symbol(output_bfd, info, h) \
-       BFD_SEND (output_bfd, _bfd_link_hide_symbol, (output_bfd, info, h))
-
-struct bfd_link_hash_entry *bfd_generic_define_start_stop
-   (struct bfd_link_info *info,
-    const char *symbol, asection *sec);
-
-#define bfd_define_start_stop(output_bfd, info, symbol, sec) \
-       BFD_SEND (output_bfd, _bfd_define_start_stop, (info, symbol, sec))
-
-struct bfd_elf_version_tree * bfd_find_version_for_sym
-   (struct bfd_elf_version_tree *verdefs,
-    const char *sym_name, bfd_boolean *hide);
-
-bfd_boolean bfd_hide_sym_by_version
-   (struct bfd_elf_version_tree *verdefs, const char *sym_name);
-
-bfd_boolean bfd_link_check_relocs
-   (bfd *abfd, struct bfd_link_info *info);
-
-bfd_boolean _bfd_generic_link_check_relocs
-   (bfd *abfd, struct bfd_link_info *info);
-
-bfd_boolean bfd_merge_private_bfd_data
-   (bfd *ibfd, struct bfd_link_info *info);
-
-#define bfd_merge_private_bfd_data(ibfd, info) \
-       BFD_SEND ((info)->output_bfd, _bfd_merge_private_bfd_data, \
-                 (ibfd, info))
-/* Extracted from simple.c.  */
-bfd_byte *bfd_simple_get_relocated_section_contents
-   (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
-
-/* Extracted from compress.c.  */
-bfd_boolean bfd_get_full_section_contents
-   (bfd *abfd, asection *section, bfd_byte **ptr);
-
-void bfd_cache_section_contents
-   (asection *sec, void *contents);
-
-bfd_boolean bfd_is_section_compressed_with_header
-   (bfd *abfd, asection *section,
-    int *compression_header_size_p,
-    bfd_size_type *uncompressed_size_p,
-    unsigned int *uncompressed_alignment_power_p);
-
-bfd_boolean bfd_is_section_compressed
-   (bfd *abfd, asection *section);
-
-bfd_boolean bfd_init_section_decompress_status
-   (bfd *abfd, asection *section);
-
-bfd_boolean bfd_init_section_compress_status
-   (bfd *abfd, asection *section);
-
-bfd_boolean bfd_compress_section
-   (bfd *abfd, asection *section, bfd_byte *uncompressed_buffer);
-
-#ifdef __cplusplus
-}
-#endif
-#endif
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/create.patch.sh
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/create.patch.sh	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/create.patch.sh	(nonexistent)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-VERSION=2.36
-
-tar --files-from=file.list -xJvf ../binutils-$VERSION.tar.xz
-mv binutils-$VERSION binutils-$VERSION-orig
-
-cp -rf ./binutils-$VERSION-new ./binutils-$VERSION
-
-diff -b --unified -Nr  binutils-$VERSION-orig  binutils-$VERSION > binutils-$VERSION-no-config-check.patch
-
-mv binutils-$VERSION-no-config-check.patch ../patches
-
-rm -rf ./binutils-$VERSION
-rm -rf ./binutils-$VERSION-orig

Property changes on: toolshains-1.6.4/sources/GNU/binutils/create-2.36-no-config-check-patch/create.patch.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/file.list
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/file.list	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/file.list	(nonexistent)
@@ -1,2 +0,0 @@
-binutils-2.36/ld/testsuite/ld-plugin/lto.exp
-binutils-2.36/ld/testsuite/ld-size/size.exp
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-size/size.exp
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-size/size.exp	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-size/size.exp	(nonexistent)
@@ -1,273 +0,0 @@
-# Expect script for linker support of size relocations.
-#
-#   Copyright (C) 2013-2021 Free Software Foundation, Inc.
-#
-# This file is part of the GNU Binutils.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
-# MA 02110-1301, USA.
-#
-
-
-# Size relocations have only been implemented for the ix86 and x86_64,
-# so far.
-if {!(([istarget "i?86-*-*"]
-       || [istarget "x86_64-*-*"])
-      && ([istarget "*-*-elf*"]
-	  || [istarget "*-*-nacl*"]
-	  || [istarget "*-*-linux*"]
-	  || [istarget "*-*-gnu*"])) } {
-    verbose "Size relocations tests not run - no target support"
-    return
-}
-
-# So as to avoid rewriting every last test case here in a nacl variant,
-# we use black magic to massage the generic cases into nacl-variant cases.
-if [istarget "*-*-nacl*"] {
-    # Change all the -melf_i386 to -melf_i386_nacl so linking can succeed.
-    set options_regsub(ld) {-m(\\S+) -m\\1_nacl}
-}
-
-set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
-foreach t $test_list {
-    # We need to strip the ".d", but can leave the dirname.
-    verbose [file rootname $t]
-    run_dump_test [file rootname $t]
-}
-
-# We need a working compiler.
-if { ![check_compiler_available] } {
-    verbose "Native size relocation tests not run - no compiler available"
-    return
-}
-
-run_cc_link_tests [list \
-    [list \
-	"Build libsize-1.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-1a.c size-1b.c} \
-	{} \
-	"libsize-1.so" \
-    ] \
-    [list \
-	"Build libsize-2.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-2a.c size-2b.c} \
-	{} \
-	"libsize-2.so" \
-    ] \
-    [list \
-	"Build libsize-3a.so" \
-	"-shared" "-fPIC" \
-	{size-3a.c} \
-	{} \
-	"libsize-3a.so" \
-    ] \
-    [list \
-	"Build libsize-3b.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-3b.c} \
-	{} \
-	"libsize-3b.so" \
-    ] \
-    [list \
-	"Build libsize-3c.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-3c.c} \
-	{} \
-	"libsize-3c.so" \
-    ] \
-    [list \
-	"Build libsize-6b.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-6b.c} \
-	{} \
-	"libsize-6b.so" \
-    ] \
-    [list \
-	"Build libsize-9.so" \
-	"-shared $NOSANITIZE_CFLAGS" \
-	"-fPIC $NOSANITIZE_CFLAGS" \
-	{size-9b.c} \
-	{{readelf -rW size-9.rd}} \
-	"libsize-9.so" \
-    ] \
-    [list \
-	"Build libsize-10.so" \
-	"-shared" \
-	"-fPIC" \
-	{size-10b.c} \
-	{{readelf -rW size-10.rd}} \
-	"libsize-10.so" \
-    ] \
-]
-
-return
-
-# Check if size relocation works at run-time.
-catch "exec tmpdir/size-7.exe > tmpdir/dump.out" exec_output
-if ![string match "" $exec_output] then {
-    send_log "No run-time size relocation support: $exec_output\n"
-    verbose "No run-time size relocation support: $exec_output" 1
-    return
-}
-
-if { [regexp_diff "tmpdir/dump.out" "$srcdir/$subdir/size-7.out" ] } then {
-    verbose "output is [file_contents "tmpdir/dump.out"]" 2
-    fail "Run-time size relocation"
-    return
-}
-
-# Run-time size relocation tests.
-run_ld_link_exec_tests [list \
-    [list \
-	"Run size-1" \
-	"-Wl,--no-as-needed tmpdir/libsize-1.so" \
-	"" \
-	{size-1.c} \
-	"size-1" \
-	"size-1.out" \
-    ] \
-    [list \
-	"Run size-2" \
-	"-Wl,--no-as-needed tmpdir/libsize-2.so" \
-	"" \
-	{size-2.c} \
-	"size-2" \
-	"size-2.out" \
-    ] \
-    [list \
-	"Run size-3a" \
-	"" \
-	"" \
-	{size-3.c size-3a.c} \
-	"size-3a" \
-	"size-3.out" \
-    ] \
-    [list \
-	"Run size-3b" \
-	"-Wl,--no-as-needed tmpdir/libsize-3a.so" \
-	"" \
-	{size-3.c} \
-	"size-3b" \
-	"size-3.out" \
-    ] \
-    [list \
-	"Run size-3c" \
-	"" \
-	"" \
-	{size-3.c size-3b.c} \
-	"size-3c" \
-	"size-3.out" \
-    ] \
-    [list \
-	"Run size-3d (1)" \
-	"-Wl,--no-as-needed tmpdir/libsize-3b.so" \
-	"" \
-	{size-3.c} \
-	"size-3d1" \
-	"size-3.out" \
-    ] \
-    [list \
-	"Run size-3d (2)" \
-	"" \
-	"" \
-	{size-3.c size-3c.c} \
-	"size-3d2" \
-	"size-3.out" \
-    ] \
-    [list \
-    {"Run size-3e" \
-     "-Wl,--no-as-needed tmpdir/libsize-3c.so" "" \
-     {size-3.c} "size-3e" "size-3.out"} \
-    ] \
-    [list \
-	"Run size-4a" \
-	"$NOPIE_LDFLAGS" \
-	"" \
-	{size-4a.c size-4b.c} \
-	"size-4a" \
-	"size-4.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-4b" \
-	"$NOPIE_LDFLAGS" \
-	"" \
-	{size-4b.c size-4a.c} \
-	"size-4b" \
-	"size-4.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-5a" \
-	"$NOPIE_LDFLAGS" \
-	"" \
-	{size-5a.c size-5b.c} \
-	"size-5a" \
-	"size-5.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-5b" \
-	"$NOPIE_LDFLAGS" \
-	"" \
-	{size-5b.c size-5a.c} \
-	"size-5b" \
-	"size-5.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-6" \
-	"$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libsize-6b.so" \
-	"" \
-	{size-6a.c} \
-	"size-6" \
-	"size-6.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-8" \
-	"$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu,-z,notext \
-	 tmpdir/libsize-8.so" \
-	"" \
-	{size-8a.c} \
-	"size-8" \
-	"size-8.out" \
-	"$NOPIE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-9" \
-	"-Wl,--no-as-needed tmpdir/libsize-9.so $NOSANITIZE_CFLAGS" \
-	"" \
-	{size-9a.c} \
-	"size-9" \
-	"size-9.out" \
-	"$NOSANITIZE_CFLAGS" \
-    ] \
-    [list \
-	"Run size-10" \
-	"-Wl,--no-as-needed tmpdir/libsize-10.so" \
-	"" \
-	{size-10a.c} \
-	"size-10" \
-	"size-10.out" \
-    ] \
-]
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-plugin/lto.exp
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-plugin/lto.exp	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/binutils-2.36-new/ld/testsuite/ld-plugin/lto.exp	(nonexistent)
@@ -1,880 +0,0 @@
-# Expect script for ld-plugin LTO tests
-#   Copyright (C) 2011-2021 Free Software Foundation, Inc.
-#
-# This file is part of the GNU Binutils.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-# Check to see if the C and C++ compilers work
-if { ![check_compiler_available] || [which $CXX] == 0 } {
-    return
-}
-
-# These tests require plugin and LTO.
-if { ![check_plugin_api_available]
-     || ![check_lto_available] } {
-    return
-}
-
-set saved_CFLAGS "$CFLAGS"
-set saved_CXXFLAGS "$CXXFLAGS"
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
-
-proc restore_notify { } {
-  global saved_CFLAGS
-  global saved_CXXFLAGS
-  set CFLAGS "$saved_CFLAGS"
-  set CXXFLAGS "$saved_CXXFLAGS"
-}
-
-set lto_fat ""
-set lto_no_fat ""
-if { [check_lto_fat_available] } {
-  set lto_fat "-ffat-lto-objects"
-  set lto_no_fat "-fno-fat-lto-objects"
-  set no_lto "-fno-lto"
-}
-
-# Simple LTO tests and generate input files for complex LTO tests.
-set lto_link_tests [list \
-  [list "LTO 1" \
-   "-O2 -flto -fuse-linker-plugin" "-flto -fuse-linker-plugin" \
-   {lto-1a.c lto-1b.c} {} "lto-1.exe"] \
-  [list "Compile 2" \
-   "" "-O2 -flto -fuse-linker-plugin $NOSANITIZE_CFLAGS" \
-   {lto-2.c} {} ""] \
-  [list "LTO 2" \
-   "-static -O2 -flto -fuse-linker-plugin tmpdir/lto-2.o -lm" \
-   "$NOSANITIZE_CFLAGS" \
-   {dummy.c} {} "lto-2.exe"] \
-  [list "Compile 3a" \
-   "" "-flto" \
-   {lto-3a.c} {} ""] \
-  [list "Compile 3c" \
-   "" "-O2" \
-   {lto-3c.c} {} ""] \
-  [list "Build liblto-3.a" \
-   "" "-flto $lto_fat" \
-   {lto-3b.c} {} "liblto-3.a"] \
-  [list "Compile 5a" \
-   "" "-flto $lto_fat" \
-   {lto-5a.c} {} ""] \
-  [list "Compile 5b" \
-   "" "-flto $lto_fat" \
-   {lto-5b.c} {} ""] \
-  [list "Compile PR ld/12365" \
-   "" "-flto -O2 $lto_fat" \
-   {pr12365a.c pr12365b.c pr12365c.c} {} ""] \
-  [list "Compile 9" \
-   "" "-O2 -finline -flto" \
-   {lto-9.cc} {} "" "c++"] \
-  [list "Compile 11a" \
-   "" "-O -flto" \
-   {lto-11a.c} {} ""] \
-  [list "Compile 11b" \
-   "" "-O -flto" \
-   {lto-11b.c} {} ""] \
-  [list "Compile 11c" \
-   "" "-O" \
-   {lto-11c.c} {} ""] \
-  [list "Build liblto-12.a" \
-   "$plug_opt" "-O2 -flto" \
-   {lto-12c.c} {} "liblto-12.a"] \
-  [list "Compile 12" \
-   "" "-O2 -flto" \
-   {lto-12a.c lto-12b.c} {} ""] \
-  [list "Compile 13" \
-   "" "-O2 -flto" \
-   {lto-13a.c lto-13b.c} {} ""] \
-  [list "Build liblto-13.a" \
-   "" "-O2" \
-   {lto-13c.c} {} "liblto-13.a"] \
-  [list "Compile 14a" \
-   "" "-flto" \
-   {lto-14a.c lto-14b.c} {} ""] \
-  [list "Build liblto-14.a" \
-   "$plug_opt" "-flto" \
-   {lto-14c.c} {} "liblto-14.a"] \
-  [list "Compile 15a" \
-   "" "-flto" \
-   {lto-15a.c} {} ""] \
-  [list "Build liblto-15.a" \
-   "$plug_opt" "-flto" \
-   {lto-15b.c} {} "liblto-15.a"] \
-  [list "PR ld/12696" \
-   "-O2 -flto -fuse-linker-plugin -r -nostdlib" "-O2 -flto" \
-   {pr12696-1.cc} {} "pr12696-1r.o" "c++"] \
-  [list "Compile PR ld/12758" \
-   "" "" \
-   {pr12758a.s} {} ""] \
-  [list "Build libpr12758.a" \
-   "" "-flto -O2 $lto_fat $NOSANITIZE_CFLAGS" \
-   {pr12758b.c} {} "libpr12758.a"] \
-  [list "PR ld/12758" \
-   "$NOPIE_LDFLAGS $NOSANITIZE_CFLAGS -O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group" \
-   "$NOSANITIZE_CFLAGS" \
-   {dummy.c} {} "pr12758.exe"] \
-  [list "Build libpr13183.a" \
-   "-T" "-flto -O2 $lto_fat" \
-   {pr13183a.c} {} "libpr13183.a"] \
-  [list "Compile PR ld/13183" \
-   "" "-flto -O2" \
-   {pr13183b.c} {} ""] \
-  [list "Compile PR ld/13201" \
-   "" "-flto -O2" \
-   {pr13201.c} {} ""] \
-  [list "PR ld/13287" \
-   "-flto -fuse-linker-plugin -Wl,--as-needed" "-flto" \
-   {pr13287.cc} {} "pr13287.exe" "c++"] \
-  [list "PR ld/15323 (1)" \
-   "" "-O2" \
-   {pr15323a.c} {} "" "c"] \
-  [list "PR ld/15323 (2)" \
-   "-O2 -flto -r -nostdlib" "-O2 -flto" \
-   {pr15323a.c} {} "pr15323a-r.o" "c"] \
-  [list "Compile(1) PR ld/pr16846" \
-   "" "-flto" \
-   {pr16846a.c pr16846b.c} {} ""] \
-  [list "Compile(2) PR ld/pr16846" \
-   "" "" \
-   {pr16846c.c} {} ""] \
-  [list "PR ld/pr16846(1)" \
-   "-flto -fuse-linker-plugin tmpdir/pr16846a.o tmpdir/pr16846b.o tmpdir/pr16846c.o" "" \
-   {dummy.c} {} "pr16846a.exe"] \
-  [list "PR ld/pr16846(2)" \
-   "-flto -fuse-linker-plugin tmpdir/pr16846a.o tmpdir/pr16846c.o tmpdir/pr16846b.o" "" \
-   {dummy.c} {} "pr16846b.exe"] \
-  [list "PR ld/19317 (1)" \
-   "$plug_opt" "-flto $lto_no_fat" \
-   {pr19317.c} {} "libpr19317.a"] \
-  [list "Build pr20276a.o" \
-   "" "-fno-lto -fcommon" \
-   {pr20276a.c}] \
-  [list "Build pr20276b.o" \
-   "$plug_opt" "-flto $lto_no_fat -fcommon" \
-   {pr20276b.c}] \
-  [list "Build pr20267a.o" \
-   "" "-fcommon" \
-   {pr20267a.c}] \
-  [list "Build libpr20267a.a" \
-   "$plug_opt" "-flto $lto_fat -fcommon" \
-   {pr20267b.c} {} "libpr20267a.a"] \
-  [list "Build libpr20267b.a" \
-   "$plug_opt" "-flto $lto_no_fat -fcommon" \
-   {pr20267b.c} {} "libpr20267b.a"] \
-  [list "Build pr20321" \
-   "-flto -Wl,-plugin,$plug_so" "-flto" \
-   {pr20321.c} {{warning ".*: duplicated plugin"}} \
-   "pr20321" "c"] \
-  [list "Build pr22502a.o" \
-   "" "" \
-   {pr22502a.c}] \
-  [list "Build pr22502b.o" \
-   "$plug_opt" "-flto $lto_no_fat" \
-   {pr22502b.c}] \
-  [list "Build pr22751.a" \
-   "$plug_opt" "-flto $lto_no_fat $INT128_CFLAGS" \
-   {pr22751.c} {} "pr22751.a"] \
-  [list "Build pr24406-2b.o" \
-   "" "-O2 -fno-lto" \
-   {pr24406-2b.c}] \
-  [list "Build pr26163a.o" \
-   "" "-O2 -fno-lto" \
-   {pr26163a.c}] \
-  [list "Build pr26262b.o" \
-   "" "-O2" \
-   {pr26262b.c} {} "" "c"] \
-  [list "Build pr26262c.o" \
-   "" "-O2" \
-   {pr26262c.c} {} "" "c"] \
-  [list "Build pr26267a.o" \
-   "" "-O2 -flto $lto_no_fat" \
-   {pr26267a.c} {} "" "c"] \
-  [list "Build pr26267b.o" \
-   "" "-O2" \
-   {pr26267b.c} {} "" "c"] \
-  [list "Build pr26267c.o" \
-   "" "-O2" \
-   {pr26267c.c} {} "" "c"] \
-  [list "Build pr26267a" \
-   "" "-O2" \
-   {pr26267a.c} {} "" "c"] \
-  [list "Build pr26267a" \
-   "-flto tmpdir/pr26267a.o tmpdir/pr26267b.o tmpdir/pr26267c.o" \
-   "-flto $lto_no_fat" \
-   {dummy.c} \
-   {{error_output "pr26267.err"}} \
-   "pr26267a"] \
-  [list "Build pr26267b" \
-   "-flto tmpdir/pr26267b.o tmpdir/pr26267c.o tmpdir/pr26267a.o" \
-   "-flto $lto_no_fat" \
-   {dummy.c} \
-   {{error_output "pr26267.err"}} \
-   "pr26267b"] \
-  [list "Build pr26389.o" \
-   "$plug_opt" "-flto $lto_no_fat -fcommon" \
-   {pr26389.c} \
-   [list [list "nm" "$plug_opt" "pr26389.d"]]] \
-]
-
-if { [at_least_gcc_version 10 0] } {
-    set lto_link_tests [concat $lto_link_tests [list \
-	[list "pr25355.o" \
-	 "" \
-	 "-flto -fno-common $lto_no_fat" \
-	 {pr25355.c} \
-	 [list [list "nm" "$plug_opt" "pr25355.d"]]] \
-    ]]
-}
-
-if { [at_least_gcc_version 4 7] } {
-    set lto_link_tests [concat $lto_link_tests [list \
-      [list "Compile PR ld/12942 (1)" \
-       "" "-flto -O2" \
-       {pr12942a.cc pr12942c.cc} {} "" "c++"] \
-      [list "Compile PR ld/12942 (2)" \
-       "" "-O0" \
-       {pr12942b.cc} {} "" "c++"] \
-    ]]
-}
-
-set lto_compile_elf_tests [list \
-  [list "Compile 7" \
-   "" "-flto -O2" \
-   {lto-7a.c lto-7b.c lto-7c.c} {} ""] \
-  [list "Compile 8a" \
-   "" "-O2" \
-   {lto-8a.c} {} ""] \
-  [list "Compile 8b" \
-   "" "-flto -O2" \
-   {lto-8b.c} {} ""] \
-  [list "PR ld/23309" \
-   "-O2 -flto -fuse-linker-plugin -fvisibility=hidden -ffunction-sections -Wl,--gc-sections,-u,KeepMe" \
-   "-O2 -flto -fuse-linker-plugin -fvisibility=hidden -ffunction-sections" \
-   {pr23309.c} {{"nm" {} "pr23309.d"}} "pr23309.exe" "c"] \
-]
-
-# Generate input files for complex LTO tests for ELF.
-set lto_link_elf_tests [list \
-  [list "LTO 6" \
-   "-O2 -flto -fuse-linker-plugin" "" \
-   {lto-6.c} {} "lto-6.exe" "c"] \
-  [list "Build liblto-7.so" \
-   "-shared" "-O2 -fpic" \
-   {lto-7d.c} {} "liblto-7.so" "c"] \
-  [list "Build liblto-17a.so" \
-   "-shared -O2 -fpic -flto -fuse-linker-plugin" "-O2 -fpic -flto" \
-   {lto-17a.c} {{"nm" {} "lto-17a.d"}} "liblto-17a.so" "c"] \
-  [list "Build liblto-17b.so 1" \
-   "-shared -O2 -fpic -flto -fuse-linker-plugin tmpdir/lto-17a.o" "-O2 -fpic -flto" \
-   {lto-17b.c} {{"nm" {} "lto-17b-1.d"}} "liblto-17b.so"] \
-  [list "Build liblto-17b.so 2" \
-   "-shared -O2 -fpic -flto -fuse-linker-plugin tmpdir/lto-17a.o" "-O2 -fpic -flto" \
-   {lto-17b.c} {{"nm" {} "lto-17b-2.d"}} "liblto-17b.so"] \
-  [list "Compile PR ld/12760" \
-   "" "-g -O0" \
-   {pr12760a.c} {} ""] \
-  [list "Build libpr12760.a" \
-   "" "-flto -O2 $lto_fat" \
-   {pr12760b.c} {} "libpr12760.a"] \
-  [list "PR ld/12760" \
-   "-O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12760a.o -Wl,--start-group tmpdir/libpr12760.a -Wl,--end-group" "" \
-   {dummy.c} {{warning "pr12760a.c:6: warning: Bad \\.?bar"}} \
-   "pr12760.exe" "c"] \
-  [list "PR ld/12975" \
-   "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib -Wl,-version-script,pr12975.t" "-O2 -flto" \
-   {pr12975.c} {{"readelf" {-s --wide} "pr12975.d"}} "pr12975.so" "c"] \
-  [list "PR ld/13229" \
-   "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib" "-O2 -finline -fno-early-inlining -flto" \
-   {pr13229.cc} {{"readelf" {-s --wide} "pr13229.d"}} "pr13229.so" "c++"] \
-  [list "PR ld/13244" \
-   "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib" "-O2 -fno-early-inlining -flto" \
-   {pr13244.c} {{"readelf" {-s --wide} "pr13244.d"}} "pr13244.so" "c"] \
-  [list "Build libpr16746a.a" \
-   "" "" \
-   {pr16746a.c pr16746b.c} {} "lib15146a.a"] \
-  [list "Build libpr16746b.a" \
-   "$plug_opt" "-O2 -flto" \
-   {pr16746c.c pr16746d.c} {} "lib15146b.a"] \
-  [list "PR ld/16746 (1)" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/pr16746a.o tmpdir/pr16746c.o" "-O2 -flto" \
-   {dummy.c} {} "pr16746a.exe"] \
-  [list "PR ld/16746 (2)" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/pr16746c.o tmpdir/pr16746a.o" "-O2 -flto" \
-   {dummy.c} {} "pr16746b.exe"] \
-  [list "Build pr21382a.o" \
-   "" "-O2 -flto" \
-   {pr21382a.c} {} "" "c"] \
-  [list "Build pr21382.so" \
-   "-shared" "-O2 -fpic" \
-   {pr21382b.c} {} "pr21382.so" "c"] \
-  [list {Build pr22220lib.so} \
-   {-shared -Wl,--version-script=pr22220lib.ver} {-fPIC} \
-   {pr22220lib.cc} {} {pr22220lib.so} {c++}] \
-  [list {Build pr22220main.o} \
-   {} {-flto} \
-   {pr22220main.cc} {} {} {c++}] \
-  [list "Build libpr23818.so" \
-   "-shared -flto -g -Wl,-version-script,pr23818.t" \
-   "-g -flto $lto_fat" \
-   {pr23818a.c pr23818b.c} \
-   {{"readelf" {-s --wide} "pr23818.d"}} \
-   "libpr23818.so"] \
-  [list "Build libpr23958.so" \
-   "-shared -flto -Wl,-version-script,pr23958.t" \
-   "-g -flto $lto_fat" \
-   {pr23958.c} \
-   "" \
-   "libpr23958.so"] \
-  [list "Build pr24486a.o" \
-   "$plug_opt" "-flto -O2" \
-   {pr24486a.c} {} "" "c"] \
-  [list "Build pr24486b.so" \
-   "-shared" "-O2 -fpic" \
-   {pr24486b.c} {} "pr24486b.so" "c"] \
-  [list "Build pr24486c.so" \
-   "-shared -Wl,--no-as-needed tmpdir/pr24486b.so" "-O2 -fpic" \
-   {pr24486c.c} {} "pr24486c.so" "c"] \
-  [list "PR ld/24486" \
-   "-O2 -flto tmpdir/pr24486a.o tmpdir/pr24486c.so -Wl,--as-needed tmpdir/pr24486b.so" "" \
-   {dummy.c} {} "pr24486.exe"] \
-  [list "Build pr25593a-1.o" \
-   "$plug_opt" "-flto -O2" \
-   {pr25593a-1.c} {} "" "c"] \
-  [list "Build pr25593a-2.o" \
-   "" "-O2" \
-   {pr25593a-2.c} {} "" "c"] \
-  [list "Build pr25593b.o" \
-   "" "-O2" \
-   {pr25593b.c} {} "" "c"] \
-  [list "Build pr25593c.so" \
-   "-shared" "-O2 -fpic" \
-   {pr25593c.c} {} "pr25593c.so" "c"] \
-  [list "Build pr25593d.so" \
-   "-shared" "-O2 -fpic" \
-   {pr25593d.c} {} "pr25593d.so" "c"] \
-  [list "Build pr25593e.so" \
-   "-shared" "-O2 -fpic" \
-   {pr25593e.c} {} "pr25593e.so" "c"] \
-  [list "PR ld/r25593 (LTO)" \
-   "-O2 -flto -Wl,--as-needed tmpdir/pr25593a-1.o tmpdir/pr25593b.o \
-    tmpdir/pr25593c.so tmpdir/pr25593d.so tmpdir/pr25593e.so" "" \
-   {dummy.c} {{readelf {-d --wide} pr25593.d}} "pr25593a.exe"] \
-  [list "PR ld/r25593" \
-   "-O2 -flto -Wl,--as-needed tmpdir/pr25593a-2.o tmpdir/pr25593b.o \
-    tmpdir/pr25593c.so tmpdir/pr25593d.so tmpdir/pr25593e.so" "" \
-   {dummy.c} {{readelf {-d --wide} pr25593.d}} "pr25593b.exe"] \
-  [list "Build pr25618a.o" \
-   "$plug_opt" "-O2 -flto -fpic" \
-   {pr25618a.cc} {} "" "c++"] \
-  [list "Build pr25618.a" \
-   "$plug_opt" "-O2 -flto -fpic" \
-   {pr25618b.cc} {} "pr25618.a" "c++"] \
-  [list "Build pr25618.so" \
-   "-shared -Wl,--exclude-libs,ALL tmpdir/pr25618a.o tmpdir/pr25618.a" \
-   "-fpic" \
-   {dummy.c} {{readelf {--dyn-syms --wide} pr25618.d}} "pr25618.so" "c++"] \
-  [list {liblto-18b.so} \
-   {-shared} {-O2 -fpic} \
-   {lto-18b.c} {} {liblto-18b.so}] \
-  [list {liblto-18b.a} \
-   "$plug_opt" {-flto -O2} \
-   {lto-18b.c} {} {liblto-18b.a}] \
-  [list {liblto-18c.so} \
-   {-shared} {-O2 -fpic} \
-   {lto-18c.c} {} {liblto-18c.so}] \
-  [list {liblto-18c.a} \
-   "$plug_opt" {-flto -O2} \
-   {lto-18c.c} {} {liblto-18c.a}] \
-  [list {lto-18d.o} \
-   {} {-flto -O2} \
-   {lto-18d.c} {} {}] \
-  [list {liblto-19.a} \
-   "$plug_opt" {-flto -O2 -fPIC} \
-   {lto-19a.c} {} {liblto-19.a}] \
-  [list {compile lto-19b.c} \
-   "$plug_opt" {-flto -O2 -fPIC} \
-   {lto-19b.c} {} {} {c}] \
-  [list {liblto-19.so} \
-   {-shared tmpdir/lto-19b.o tmpdir/liblto-19.a} {-O2 -fPIC} \
-   {dummy.c} {} {liblto-19.so}] \
-  [list {pr26806.so} \
-   {-shared} {-fpic -O2 -flto} \
-   {pr26806.c} {{nm {-D} pr26806.d}} {pr26806.so}] \
-]
-
-# PR 14918 checks that libgcc is not spuriously included in a shared link of
-# an empty program.  The ARM crt1.o startup code however calls __libc_csu_init
-# in /usr/lib/libc_nonshared.a(elf-init.oS).  This in turn needs
-# __aeabi_unwind_cpp_pr0@@GCC_3.5 which is provided by libgcc_s.so.1, so the
-# test fails.  Hence this code to skip the test.
-if { ! [istarget "arm*-*-*"] } {
-    lappend lto_link_elf_tests [list \
-  [list "PR ld/14918" \
-   "-flto" "-flto" \
-   {pr14918.c} {{"readelf" {-d --wide} "pr14918.d"}} "pr14918.exe" "c"] \
-  ]
-}
-
-# PR 12982 checks that an executable stack is not created by default
-# when using the LTO plugin.  The HPPA target however requires an
-# executable stack for syscall restarts and signal returns, so we
-# skip this test for that target.
-if { ! [istarget "hppa*-*-*"] } {
-    lappend lto_link_elf_tests [list \
-  [list "PR ld/12982" \
-   "-O2 -flto -fuse-linker-plugin" "-O2 -flto" \
-   {pr12982.c} {{"readelf" {-l --wide} "pr12982.d"}} "pr12982.exe"] \
-  ]
-}
-
-# Check final symbols in executables.
-set lto_link_symbol_tests [list \
-  [list "LTO 3 symbol" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-3a.o tmpdir/lto-3c.o tmpdir/liblto-3.a" "" \
-   {dummy.c} {{"nm" {} "lto-3.d"}} "lto-3.exe" "c"] \
-  [list "LTO 5 symbol" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-5.o" "" \
-   {dummy.c} {{"nm" {} "lto-5.d"}} "lto-5.exe" "c"] \
-  [list "LTO 9 symbol" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-9.o" "" \
-   {dummy.c} {{"nm" {-C} "lto-9.d"}} "lto-9.exe" "c++"] \
-  [list "LTO 16a symbol" \
-   "-O2 $NOSANITIZE_CFLAGS -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin" \
-   "-flto $NOSANITIZE_CFLAGS" \
-   {lto-16a.c} {{"nm" {} "lto-16a.d"}} "lto-16.exe" "c"] \
-  [list "LTO 16b symbol" \
-   "-O2 $NOSANITIZE_CFLAGS -Wl,-e,foo -u bar -nostdlib -flto -fuse-linker-plugin" \
-   "-flto $NOSANITIZE_CFLAGS" \
-   {lto-16a.c lto-16b.c} {{"nm" {} "lto-16b.d"}} "lto-16b.exe" "c"] \
-  [list "PR ld/13183" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/pr13183b.o tmpdir/libpr13183.a" "" \
-   {dummy.c} {{"nm" {} "pr13183.d"}} "pr13183.exe" "c"] \
-]
-
-# LTO run-time tests.
-set lto_run_tests [list \
-  [list "LTO 3a" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-3a.o tmpdir/lto-3c.o tmpdir/liblto-3.a" "" \
-   {dummy.c} "lto-3b.exe" "lto-3.out" "" "c"] \
-  [list "LTO 3b" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-3a.o tmpdir/lto-3c.o tmpdir/lto-3.o" "" \
-   {dummy.c} "lto-3c.exe" "lto-3.out" "" "c"] \
-  [list "LTO 3c" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-3a.o tmpdir/lto-3c.o -Wl,--whole-archive tmpdir/liblto-3.a -Wl,--no-whole-archive tmpdir/liblto-3.a" "" \
-   {dummy.c} "lto-3d.exe" "lto-3.out" "" "c"] \
-  [list "LTO 5" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-5.o" "" \
-   {dummy.c} "lto-5.exe" "lto-5.out" "" "c"] \
-  [list "LTO 11" \
-   "-O -flto -fuse-linker-plugin tmpdir/liblto-11.a" "" \
-   {dummy.c} "lto-11.exe" "lto-11.out" "" "c"] \
-  [list "LTO 12a" \
-   "-O -flto -fuse-linker-plugin tmpdir/lto-12a.o tmpdir/liblto-12.a tmpdir/lto-12b.o" "" \
-   {dummy.c} "lto-12a.exe" "lto-12.out" "" "c"] \
-  [list "LTO 12b" \
-   "-O -flto -fuse-linker-plugin tmpdir/lto-12a.o tmpdir/lto-12b.o tmpdir/liblto-12.a" "" \
-   {dummy.c} "lto-12b.exe" "lto-12.out" "" "c"] \
-  [list "LTO 13" \
-   "-O -flto -fuse-linker-plugin tmpdir/lto-13a.o tmpdir/liblto-13.a tmpdir/lto-13b.o" "" \
-   {dummy.c} "lto-13.exe" "lto-13.out" "" "c"] \
-  [list "LTO 14" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-14a.o -Wl,--whole-archive tmpdir/liblto-14.a -Wl,--no-whole-archive tmpdir/lto-14b.o" "" \
-   {dummy.c} "lto-14.exe" "lto-14.out" "" "c"] \
-  [list "LTO 15" \
-   "-O2 -flto -fuse-linker-plugin -Wl,--start-group tmpdir/liblto-15.a tmpdir/lto-15a.o -Wl,--end-group" "" \
-   {dummy.c} "lto-15.exe" "lto-15.out" "" "c"] \
-  [list "PR ld/13066" \
-   "-O2 -flto -fuse-linker-plugin" "" \
-   {pr13066.cc} "pr13066.exe" "pr13066.out" "" "c++"] \
-  [list "PR ld/13201" \
-   "-O2 -flto -fuse-linker-plugin -Wl,--as-needed tmpdir/pr13201.o -lm" "" \
-   {dummy.c} "pr13201.exe" "pr13201.out" "" "c"] \
-  [list "PR ld/15323 (3)" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/pr15323a.o" "" \
-   {pr15323b.c} "pr15323.exe" "pr15323.out" "-flto -O2" "c"] \
-  [list "PR ld/15323 (4)" \
-   "-O2 -flto tmpdir/pr15323a-r.o" "" \
-   {dummy.c} "pr15323a.exe" "pr15323.out" "-flto -O2" "c"] \
-  [list "PR ld/19317 (3)" \
-   "-O2 -flto tmpdir/pr19317-r.o" "" \
-   {dummy.c} "pr19317.exe" "pr19317.out" "-flto -O2" "c"] \
-  [list "Run pr20276" \
-   "-O2 -flto tmpdir/pr20276a.o tmpdir/pr20276b.o" "" \
-   {dummy.c} "pr20276" "pass.out" "-flto -O2" "c"] \
-  [list "Run pr20267a" \
-   "-O2 -flto -fcommon tmpdir/pr20267a.o tmpdir/libpr20267a.a" "" \
-   {dummy.c} "pr20267a" "pass.out" "-flto -O2 -fcommon" "c"] \
-  [list "Run pr20267b" \
-   "-O2 -flto -fcommon tmpdir/pr20267a.o tmpdir/libpr20267b.a" "" \
-   {dummy.c} "pr20267b" "pass.out" "-flto -O2 -fcommon" "c"] \
-  [list "Run pr22502" \
-   "-O2 -flto tmpdir/pr22502a.o tmpdir/pr22502b.o" "" \
-   {dummy.c} "pr20267" "pass.out" "-flto -O2 -fcommon" "c"] \
-  [list "Run pr22751" \
-   "-O2 -flto" "" \
-   {dummy.c} "pr22751" "pass.out" "-flto -O2" "c" "" \
-   "-Wl,--whole-archive tmpdir/pr22751.a -Wl,--no-whole-archive"] \
-  [list "Run pr24406-1" \
-   "-O2 -flto" "" \
-   {pr24406-1.c} "pr24406-1" "pass.out" "-flto -O2" "c" "" \
-   "-Wl,--wrap=read"] \
-  [list "Run pr24406-2" \
-   "-O2 -flto" "" \
-   {pr24406-2a.c} "pr24406-2" "pass.out" \
-   "-flto -O2" "c" "" \
-   "tmpdir/pr24406-2b.o -Wl,--wrap=cook"] \
-  [list "Run pr26163" \
-   "-O2 -flto" "" \
-   {pr26163b.c} "pr24406-2" "pass.out" \
-   "-flto -O2" "c" "" \
-   "tmpdir/pr26163a.o -Wl,--defsym,g=real_g"] \
-  [list "Run pr26262a" \
-   "-O2 -flto" "" \
-   {pr26262a.c} "pr26262a" "pass.out" \
-   "-flto -O2" "c" "" \
-   "tmpdir/pr26262b.o tmpdir/pr26262c.o"] \
-  [list "Run pr26262b" \
-   "-flto -O2 tmpdir/pr26262b.o tmpdir/pr26262c.o" "" \
-   {pr26262a.c} "pr26262b" "pass.out" \
-   "-flto -O2" "c" "" \
-   ""] \
-]
-
-if { [at_least_gcc_version 4 7] } {
-    set lto_run_tests [concat $lto_run_tests [list \
-      [list "PR ld/12942 (1)" \
-       "-O2 -flto -fuse-linker-plugin tmpdir/pr12942a.o tmpdir/pr12942b.o" "" \
-       {dummy.c} "pr12942a.exe" "pr12942.out" "" "c++"] \
-      [list "PR ld/12942 (2)" \
-       "-O2 -flto -fuse-linker-plugin tmpdir/pr12942a.o tmpdir/pr12942c.o" "" \
-       {dummy.c} "pr12942c.exe" "pr12942.out" "" "c++"] \
-    ]]
-}
-
-# LTO run-time tests for ELF which require shared library support.
-set lto_run_elf_shared_tests [list \
-  [list "LTO 7" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-7b.o tmpdir/lto-7c.o tmpdir/lto-7a.o -Wl,--no-as-needed tmpdir/liblto-7.so" "" \
-   {dummy.c} "lto-7.exe" "lto-7.out" "" "c"] \
-  [list "Run pr21382" \
-   "-O2 -flto -fuse-linker-plugin -Wl,--as-needed tmpdir/pr21382a.o tmpdir/pr21382.so" "" \
-   {dummy.c} "pr21382.exe" "pass.out" "" "c"] \
-  [list {pr22220a} \
-   {-flto -fuse-linker-plugin tmpdir/pr22220main.o tmpdir/pr22220lib.so} {} \
-   {dummy.c} {pr22220a.exe} {pass.out} {} {c++}] \
-  [list {pr22220b} \
-   {-flto -fuse-linker-plugin -Wl,--no-as-needed tmpdir/pr22220lib.so tmpdir/pr22220main.o} {} \
-   {dummy.c} {pr22220b.exe} {pass.out} {} {c++}] \
-  [list {lto-18 (1)} \
-   {-flto -fuse-linker-plugin} {} \
-   {lto-18a.c} {lto-18-1.exe} {lto-18.out} {-flto -O2} {c} {} \
-   {tmpdir/lto-18d.o -Wl,--as-needed,-R,tmpdir -Ltmpdir -llto-18b -llto-18c}] \
-  [list {lto-18 (2)} \
-   {-flto -fuse-linker-plugin} {} \
-   {lto-18a.c} {lto-18-2.exe} {lto-18.out} {-flto -O2} {c} {} \
-   {-Wl,--as-needed,-R,tmpdir -Ltmpdir -llto-18b -llto-18c tmpdir/lto-18d.o}] \
-  [list {lto-18 (3)} \
-   {-static -flto -fuse-linker-plugin} {} \
-   {lto-18a.c} {lto-18-3.exe} {lto-18.out} {-flto -O2} {c} {} \
-   {tmpdir/lto-18d.o -Ltmpdir -llto-18b -llto-18c}] \
-  [list {lto-18 (4)} \
-   {-static -flto -fuse-linker-plugin} {} \
-   {lto-18a.c} {lto-18-4.exe} {lto-18.out} {-flto -O2} {c} {} \
-   { -Ltmpdir -llto-18b -llto-18c tmpdir/lto-18d.o}] \
-  [list {lto-19} \
-   {-Wl,--as-needed,-R,tmpdir} {} \
-   {lto-19c.c} {lto-19.exe} {pass.out} {-flto -O2} {c} {} \
-   {tmpdir/liblto-19.so tmpdir/liblto-19.a}] \
-]
-
-# LTO run-time tests for ELF
-set lto_run_elf_tests [list \
-  [list "LTO 8" \
-   "-O2 -flto -fuse-linker-plugin tmpdir/lto-8b.o tmpdir/lto-8a.o" "" \
-   {dummy.c} "lto-8.exe" "lto-8.out" "" "c"] \
-  [list "LTO TLS IE" \
-   "-O2 -flto -fuse-linker-plugin" "" \
-   {run-ie.c} "run-ie.exe" "run-ie.out" "" "c"] \
-]
-
-run_cc_link_tests $lto_link_tests
-
-# These compilation tests generate intermediate object files which will be used
-# by some elf tests besides shared libs tests.  So, always compile them.
-run_cc_link_tests $lto_compile_elf_tests
-
-# Restrict these to ELF targets that support shared libs and PIC.
-if { [is_elf_format] && [check_lto_shared_available] } {
-    run_cc_link_tests $lto_link_elf_tests
-    set testname "PR ld/16746 (3)"
-    set exec_output [run_host_cmd "$CC" "-O2 -flto -fuse-linker-plugin tmpdir/pr16746b.o tmpdir/pr16746d.o"]
-    if { [ regexp "warning: \\.?foobar" $exec_output ] && ![ regexp "symbol from plugin" $exec_output ] } {
-	pass $testname
-    } {
-	fail $testname
-    }
-    set testname "PR ld/16746 (4)"
-    set exec_output [run_host_cmd "$CC" "-O2 -flto -fuse-linker-plugin tmpdir/pr16746d.o tmpdir/pr16746b.o"]
-    if { [ regexp "warning: \\.?foobar" $exec_output ] && ![ regexp "symbol from plugin" $exec_output ] } {
-	pass $testname
-    } {
-	fail $testname
-    }
-}
-
-set testname "Build liblto-11.a"
-remote_file host delete "tmpdir/liblto-11.a"
-set catch_output [run_host_cmd "$ar" "rc $plug_opt tmpdir/liblto-11.a tmpdir/lto-11a.o tmpdir/lto-11b.o tmpdir/lto-11c.o"]
-if {![string match "" $catch_output]} {
-    unresolved $testname
-    restore_notify
-    return
-}
-
-if { [at_least_gcc_version 4 7] } {
-    # Check expected LTO linker errors.
-    # Since the asm symbol name hack in pr12365b.c doesn't work on all
-    # targets, run PR ld/12365 tests only for known targets.
-    if { ([istarget "i?86-*-elf*"]
-	   || [istarget "i?86-*-linux*"]
-	   || [istarget "i?86-*-gnu*"]
-	   || [istarget "x86_64-*-linux*"]
-	   || [istarget "amd64-*-linux*"]) } {
-	set testname "PR ld/12365"
-	set exec_output [run_host_cmd "$CC" "-O2 -flto -flto-partition=none -fuse-linker-plugin -o tmpdir/pr12365 tmpdir/pr12365a.o tmpdir/pr12365b.o tmpdir/pr12365c.o"]
-	set exec_output [prune_warnings $exec_output]
-	if { [ regexp "undefined reference to `my_bcopy'" $exec_output ] } {
-	    # Linker should catch the reference to undefined `my_bcopy'
-	    # error caused by a GCC bug.
-	    pass $testname
-	} elseif { [ string match "" $exec_output ] } {
-	    global READELF
-	    set exec_output [run_host_cmd "$READELF" "-s -W tmpdir/pr12365"]
-	    if { [ regexp "my_bcopy" $exec_output ] } {
-		# Verify that there is no `my_bcopy' symbol in executable.
-		fail $testname
-	    } {
-		pass $testname
-	    }
-	} {
-	    fail $testname
-	}
-
-	run_cc_link_tests [list \
-	    [list \
-		"Build pr22721a.so" \
-		"-shared $NOSANITIZE_CFLAGS -nostdlib -nostartfiles \
-		 -Wl,-version-script,pr22721.t" \
-		"" \
-		{pr22721a.s} \
-		{} \
-		"pr22721a.so" \
-	    ] \
-	    [list \
-		"Build pr22721b.o" \
-		"$plug_opt $NOSANITIZE_CFLAGS" \
-		"-O2 -fPIC -flto $lto_no_fat" \
-		{pr22721b.c} \
-	    ] \
-	    [list \
-		"Build PR ld/pr22721" \
-		"-O2 -flto -fuse-linker-plugin -nostdlib -nostartfiles \
-		 $NOSANITIZE_CFLAGS \
-		 -Wl,-e,_start tmpdir/pr22721b.o tmpdir/pr22721a.so" \
-		"$NOSANITIZE_CFLAGS" \
-		{dummy.c} \
-		{} \
-		"pr22721.exe"
-	    ] \
-	]
-    }
-    set testname "PR ld/12942 (3)"
-    set exec_output [run_host_cmd "$CXX" "-O2 -flto -fuse-linker-plugin tmpdir/pr12942b.o tmpdir/pr12942a.o"]
-    if { [ regexp "undefined reference to `\\.?link_error\\(\\)'" $exec_output ] } {
-        pass $testname
-    } {
-        fail $testname
-    }
-
-    run_cc_link_tests [list \
-	[list \
-	    "Build pr23460*.o" \
-	    "$plug_opt" \
-	    "-O2 -fPIC -flto $lto_no_fat" \
-	    {pr23460a.c pr23460b.c pr23460c.c \
-	     pr23460d.c pr23460e.c pr23460f.c} \
-	] \
-    ]
-    set exec_output [run_host_cmd "sh" \
-				  "-c \"ulimit -n 16; \
-				   $ar -rc $plug_opt \
-				   tmpdir/libpr23460.a \
-				   tmpdir/pr23460a.o \
-				   tmpdir/pr23460b.o \
-				   tmpdir/pr23460c.o \
-				   tmpdir/pr23460d.o \
-				   tmpdir/pr23460e.o \
-				   tmpdir/pr23460f.o\""]
-    set exec_output [prune_warnings $exec_output]
-    if [string match "" $exec_output] then {
-	pass "PR binutils/23460"
-    } else {
-	fail "PR binutils/23460"
-    }
-}
-
-# Fedora specific binutils patches break some of the tests that follow...
-restore_notify
-return
-
-# Run "ld -r" to generate inputs for complex LTO tests.
-run_dump_test "lto-3r"
-remote_exec host "mv" "tmpdir/dump tmpdir/lto-3.o"
-run_dump_test "lto-5r"
-remote_exec host "mv" "tmpdir/dump tmpdir/lto-5.o"
-
-run_cc_link_tests $lto_link_symbol_tests
-
-run_ld_link_tests [list \
-  [list "PR ld/19317 (2)" \
-   "-r tmpdir/pr19317.o" "" "" \
-   {dummy.s} {} "pr19317-r.o"] \
-]
-
-run_ld_link_exec_tests $lto_run_tests
-
-if { [is_elf_format] } {
-    run_ld_link_exec_tests $lto_run_elf_tests
-
-    # Note - it is not guaranteed that the ordering of symbols in the dynamic
-    # symbol table will match the ordering of the symbols specified by the
-    # --dynamic-list command line option.
-    #
-    # For PR22983 we want to make sure that all four symbols specified in
-    # pr222983.t are present in the output, but a simple sequences of regexps
-    # will not work as we do not know the order of the symbols.  (Readelf
-    # does not have a symbol sorting option and the run_cc_list_tests proc
-    # does not allow for the output of the dump program to piped into `sort`).
-    #
-    # So instead we run readelf four times, each time checking for the
-    # presence of a specific symbol from the pr22983.t file.
-    run_cc_link_tests [list \
-	[list \
-	    "Build pr22983" \
-	    "-Wl,--dynamic-list,pr22983.t" \
-	    "-flto" \
-	     {pr22983a.c pr22983b.c} \
-	    {{readelf {--dyn-syms --wide} pr22983.1.d} \
-	     {readelf {--dyn-syms --wide} pr22983.2.d} \
-	     {readelf {--dyn-syms --wide} pr22983.3.d} \
-	     {readelf {--dyn-syms --wide} pr22983.4.d}} \
-	    "pr22983" \
-	] \
-    ]
-}
-
-if { [is_elf_format] && [check_lto_shared_available] } {
-    run_ld_link_exec_tests $lto_run_elf_shared_tests
-}
-
-proc pr20103 {cflags libs} {
-    global CC
-
-    set testname "PR ld/20103 ($cflags $libs)"
-    set exec_output [run_host_cmd "$CC" "$cflags $libs"]
-    if { [ regexp "undefined reference to `\\.?dead'" $exec_output ] } {
-        pass "$testname (1)"
-    } {
-        fail "$testname (1)"
-    }
-    if { [ regexp "plugin needed to handle lto object" $exec_output ] } {
-        fail "$testname (2)"
-    } {
-        pass "$testname (2)"
-    }
-}
-
-if { [check_lto_fat_available] } {
-    run_cc_link_tests [list \
-	[list \
-	    "Build fatpr20103a.a" \
-	    "$plug_opt" "-flto -ffat-lto-objects" \
-	    {pr20103a.c} {} "fatpr20103a.a"
-	] \
-	[list \
-	    "Build fatpr20103b.a" \
-	    "$plug_opt" "-flto -ffat-lto-objects" \
-	    {pr20103b.c} {} "fatpr20103b.a"
-	] \
-	[list \
-	    "Build fatpr20103c.a" \
-	    "$plug_opt" "-flto -ffat-lto-objects" \
-	    {pr20103c.c} {} "fatpr20103c.a" \
-	] \
-	[list \
-	    "Build thinpr20103a.a" \
-	    "$plug_opt" "-flto -fno-fat-lto-objects" \
-	    {pr20103a.c} {} "thinpr20103a.a"
-	] \
-	[list \
-	    "Build thinpr20103b.a" \
-	    "$plug_opt" "-flto -fno-fat-lto-objects" \
-	    {pr20103b.c} {} "thinpr20103b.a"
-	] \
-	[list \
-	    "Build thinpr20103c.a" \
-	    "$plug_opt" "-flto -fno-fat-lto-objects" \
-	    {pr20103c.c} {} "thinpr20103c.a" \
-	] \
-	[list \
-	    "Build pr20103a" \
-	    "-O2 -flto -Wl,--start-group tmpdir/thinpr20103a.a tmpdir/thinpr20103b.a tmpdir/thinpr20103c.a -Wl,--end-group" \
-	    "-O2 -flto" \
-	    {dummy.c} {} "pr20103a" \
-	] \
-	[list \
-	    "Build pr20103b" \
-	    "-O2 -flto -Wl,--start-group tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a -Wl,--end-group" \
-	    "-O2 -flto" \
-	    {dummy.c} {} "pr20103b" \
-	] \
-	[list \
-	    "Build pr20103c" \
-	    "-O2 -Wl,--start-group tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a -Wl,--end-group" \
-	    "-O2" \
-	    {dummy.c} {} "pr20103c" \
-	] \
-    ]
-    pr20103 "-O2 -flto" "tmpdir/thinpr20103a.a tmpdir/thinpr20103b.a tmpdir/thinpr20103c.a"
-    pr20103 "-O2 -flto" "tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a"
-    pr20103 "-O2" "tmpdir/fatpr20103a.a tmpdir/fatpr20103b.a tmpdir/fatpr20103c.a"
-
-    if { [at_least_gcc_version 4 9] } {
-	run_cc_link_tests [list \
-	    [list \
-		"Build pr20103d" \
-		"-O2 -Wl,--start-group tmpdir/thinpr20103a.a tmpdir/thinpr20103b.a tmpdir/thinpr20103c.a -Wl,--end-group" \
-		"-O2" \
-		{dummy.c} {} "pr20103d" \
-	    ] \
-	]
-	pr20103 "-O2" "tmpdir/thinpr20103a.a tmpdir/thinpr20103b.a tmpdir/thinpr20103c.a"
-    }
-}
-
-restore_notify
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/create.patch.sh
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/create.patch.sh	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/create.patch.sh	(nonexistent)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-VERSION=2.36
-
-tar --files-from=file.list -xJvf ../binutils-$VERSION.tar.xz
-mv binutils-$VERSION binutils-$VERSION-orig
-
-cp -rf ./binutils-$VERSION-new ./binutils-$VERSION
-
-diff -b --unified -Nr  binutils-$VERSION-orig  binutils-$VERSION > binutils-$VERSION-cleansweep.patch
-
-mv binutils-$VERSION-cleansweep.patch ../patches
-
-rm -rf ./binutils-$VERSION
-rm -rf ./binutils-$VERSION-orig

Property changes on: toolshains-1.6.4/sources/GNU/binutils/create-2.36-cleansweep-patch/create.patch.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/file.list
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/file.list	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/file.list	(nonexistent)
@@ -1 +0,0 @@
-binutils-2.36/bfd/elf.c
Index: toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/binutils-2.36-new/bfd/elf.c
===================================================================
--- toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/binutils-2.36-new/bfd/elf.c	(revision 316)
+++ toolshains-1.6.4/sources/GNU/binutils/create-2.36-copy-osabi-patch/binutils-2.36-new/bfd/elf.c	(nonexistent)
@@ -1,13026 +0,0 @@
-/* ELF executable support for BFD.
-
-   Copyright (C) 1993-2021 Free Software Foundation, Inc.
-
-   This file is part of BFD, the Binary File Descriptor library.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
-   MA 02110-1301, USA.  */
-
-
-/*
-SECTION
-	ELF backends
-
-	BFD support for ELF formats is being worked on.
-	Currently, the best supported back ends are for sparc and i386
-	(running svr4 or Solaris 2).
-
-	Documentation of the internals of the support code still needs
-	to be written.  The code is changing quickly enough that we
-	haven't bothered yet.  */
-
-/* For sparc64-cross-sparc32.  */
-#define _SYSCALL32
-#include "sysdep.h"
-#include <limits.h>
-#include "bfd.h"
-#include "bfdlink.h"
-#include "libbfd.h"
-#define ARCH_SIZE 0
-#include "elf-bfd.h"
-#include "libiberty.h"
-#include "safe-ctype.h"
-#include "elf-linux-core.h"
-
-#ifdef CORE_HEADER
-#include CORE_HEADER
-#endif
-
-static int elf_sort_sections (const void *, const void *);
-static bfd_boolean assign_file_positions_except_relocs (bfd *, struct bfd_link_info *);
-static bfd_boolean swap_out_syms (bfd *, struct elf_strtab_hash **, int,
-				  struct bfd_link_info *);
-static bfd_boolean elf_parse_notes (bfd *abfd, char *buf, size_t size,
-				    file_ptr offset, size_t align);
-
-/* Swap version information in and out.  The version information is
-   currently size independent.  If that ever changes, this code will
-   need to move into elfcode.h.  */
-
-/* Swap in a Verdef structure.  */
-
-void
-_bfd_elf_swap_verdef_in (bfd *abfd,
-			 const Elf_External_Verdef *src,
-			 Elf_Internal_Verdef *dst)
-{
-  dst->vd_version = H_GET_16 (abfd, src->vd_version);
-  dst->vd_flags   = H_GET_16 (abfd, src->vd_flags);
-  dst->vd_ndx     = H_GET_16 (abfd, src->vd_ndx);
-  dst->vd_cnt     = H_GET_16 (abfd, src->vd_cnt);
-  dst->vd_hash    = H_GET_32 (abfd, src->vd_hash);
-  dst->vd_aux     = H_GET_32 (abfd, src->vd_aux);
-  dst->vd_next    = H_GET_32 (abfd, src->vd_next);
-}
-
-/* Swap out a Verdef structure.  */
-
-void
-_bfd_elf_swap_verdef_out (bfd *abfd,
-			  const Elf_Internal_Verdef *src,
-			  Elf_External_Verdef *dst)
-{
-  H_PUT_16 (abfd, src->vd_version, dst->vd_version);
-  H_PUT_16 (abfd, src->vd_flags, dst->vd_flags);
-  H_PUT_16 (abfd, src->vd_ndx, dst->vd_ndx);
-  H_PUT_16 (abfd, src->vd_cnt, dst->vd_cnt);
-  H_PUT_32 (abfd, src->vd_hash, dst->vd_hash);
-  H_PUT_32 (abfd, src->vd_aux, dst->vd_aux);
-  H_PUT_32 (abfd, src->vd_next, dst->vd_next);
-}
-
-/* Swap in a Verdaux structure.  */
-
-void
-_bfd_elf_swap_verdaux_in (bfd *abfd,
-			  const Elf_External_Verdaux *src,
-			  Elf_Internal_Verdaux *dst)
-{
-  dst->vda_name = H_GET_32 (abfd, src->vda_name);
-  dst->vda_next = H_GET_32 (abfd, src->vda_next);
-}
-
-/* Swap out a Verdaux structure.  */
-
-void
-_bfd_elf_swap_verdaux_out (bfd *abfd,
-			   const Elf_Internal_Verdaux *src,
-			   Elf_External_Verdaux *dst)
-{
-  H_PUT_32 (abfd, src->vda_name, dst->vda_name);
-  H_PUT_32 (abfd, src->vda_next, dst->vda_next);
-}
-
-/* Swap in a Verneed structure.  */
-
-void
-_bfd_elf_swap_verneed_in (bfd *abfd,
-			  const Elf_External_Verneed *src,
-			  Elf_Internal_Verneed *dst)
-{
-  dst->vn_version = H_GET_16 (abfd, src->vn_version);
-  dst->vn_cnt     = H_GET_16 (abfd, src->vn_cnt);
-  dst->vn_file    = H_GET_32 (abfd, src->vn_file);
-  dst->vn_aux     = H_GET_32 (abfd, src->vn_aux);
-  dst->vn_next    = H_GET_32 (abfd, src->vn_next);
-}
-
-/* Swap out a Verneed structure.  */
-
-void
-_bfd_elf_swap_verneed_out (bfd *abfd,
-			   const Elf_Internal_Verneed *src,
-			   Elf_External_Verneed *dst)
-{
-  H_PUT_16 (abfd, src->vn_version, dst->vn_version);
-  H_PUT_16 (abfd, src->vn_cnt, dst->vn_cnt);
-  H_PUT_32 (abfd, src->vn_file, dst->vn_file);
-  H_PUT_32 (abfd, src->vn_aux, dst->vn_aux);
-  H_PUT_32 (abfd, src->vn_next, dst->vn_next);
-}
-
-/* Swap in a Vernaux structure.  */
-
-void
-_bfd_elf_swap_vernaux_in (bfd *abfd,
-			  const Elf_External_Vernaux *src,
-			  Elf_Internal_Vernaux *dst)
-{
-  dst->vna_hash  = H_GET_32 (abfd, src->vna_hash);
-  dst->vna_flags = H_GET_16 (abfd, src->vna_flags);
-  dst->vna_other = H_GET_16 (abfd, src->vna_other);
-  dst->vna_name  = H_GET_32 (abfd, src->vna_name);
-  dst->vna_next  = H_GET_32 (abfd, src->vna_next);
-}
-
-/* Swap out a Vernaux structure.  */
-
-void
-_bfd_elf_swap_vernaux_out (bfd *abfd,
-			   const Elf_Internal_Vernaux *src,
-			   Elf_External_Vernaux *dst)
-{
-  H_PUT_32 (abfd, src->vna_hash, dst->vna_hash);
-  H_PUT_16 (abfd, src->vna_flags, dst->vna_flags);
-  H_PUT_16 (abfd, src->vna_other, dst->vna_other);
-  H_PUT_32 (abfd, src->vna_name, dst->vna_name);
-  H_PUT_32 (abfd, src->vna_next, dst->vna_next);
-}
-
-/* Swap in a Versym structure.  */
-
-void
-_bfd_elf_swap_versym_in (bfd *abfd,
-			 const Elf_External_Versym *src,
-			 Elf_Internal_Versym *dst)
-{
-  dst->vs_vers = H_GET_16 (abfd, src->vs_vers);
-}
-
-/* Swap out a Versym structure.  */
-
-void
-_bfd_elf_swap_versym_out (bfd *abfd,
-			  const Elf_Internal_Versym *src,
-			  Elf_External_Versym *dst)
-{
-  H_PUT_16 (abfd, src->vs_vers, dst->vs_vers);
-}
-
-/* Standard ELF hash function.  Do not change this function; you will
-   cause invalid hash tables to be generated.  */
-
-unsigned long
-bfd_elf_hash (const char *namearg)
-{
-  const unsigned char *name = (const unsigned char *) namearg;
-  unsigned long h = 0;
-  unsigned long g;
-  int ch;
-
-  while ((ch = *name++) != '\0')
-    {
-      h = (h << 4) + ch;
-      if ((g = (h & 0xf0000000)) != 0)
-	{
-	  h ^= g >> 24;
-	  /* The ELF ABI says `h &= ~g', but this is equivalent in
-	     this case and on some machines one insn instead of two.  */
-	  h ^= g;
-	}
-    }
-  return h & 0xffffffff;
-}
-
-/* DT_GNU_HASH hash function.  Do not change this function; you will
-   cause invalid hash tables to be generated.  */
-
-unsigned long
-bfd_elf_gnu_hash (const char *namearg)
-{
-  const unsigned char *name = (const unsigned char *) namearg;
-  unsigned long h = 5381;
-  unsigned char ch;
-
-  while ((ch = *name++) != '\0')
-    h = (h << 5) + h + ch;
-  return h & 0xffffffff;
-}
-
-/* Create a tdata field OBJECT_SIZE bytes in length, zeroed out and with
-   the object_id field of an elf_obj_tdata field set to OBJECT_ID.  */
-bfd_boolean
-bfd_elf_allocate_object (bfd *abfd,
-			 size_t object_size,
-			 enum elf_target_id object_id)
-{
-  BFD_ASSERT (object_size >= sizeof (struct elf_obj_tdata));
-  abfd->tdata.any = bfd_zalloc (abfd, object_size);
-  if (abfd->tdata.any == NULL)
-    return FALSE;
-
-  elf_object_id (abfd) = object_id;
-  if (abfd->direction != read_direction)
-    {
-      struct output_elf_obj_tdata *o = bfd_zalloc (abfd, sizeof *o);
-      if (o == NULL)
-	return FALSE;
-      elf_tdata (abfd)->o = o;
-      elf_program_header_size (abfd) = (bfd_size_type) -1;
-    }
-  return TRUE;
-}
-
-
-bfd_boolean
-bfd_elf_make_object (bfd *abfd)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  return bfd_elf_allocate_object (abfd, sizeof (struct elf_obj_tdata),
-				  bed->target_id);
-}
-
-bfd_boolean
-bfd_elf_mkcorefile (bfd *abfd)
-{
-  /* I think this can be done just like an object file.  */
-  if (!abfd->xvec->_bfd_set_format[(int) bfd_object] (abfd))
-    return FALSE;
-  elf_tdata (abfd)->core = bfd_zalloc (abfd, sizeof (*elf_tdata (abfd)->core));
-  return elf_tdata (abfd)->core != NULL;
-}
-
-char *
-bfd_elf_get_str_section (bfd *abfd, unsigned int shindex)
-{
-  Elf_Internal_Shdr **i_shdrp;
-  bfd_byte *shstrtab = NULL;
-  file_ptr offset;
-  bfd_size_type shstrtabsize;
-
-  i_shdrp = elf_elfsections (abfd);
-  if (i_shdrp == 0
-      || shindex >= elf_numsections (abfd)
-      || i_shdrp[shindex] == 0)
-    return NULL;
-
-  shstrtab = i_shdrp[shindex]->contents;
-  if (shstrtab == NULL)
-    {
-      /* No cached one, attempt to read, and cache what we read.  */
-      offset = i_shdrp[shindex]->sh_offset;
-      shstrtabsize = i_shdrp[shindex]->sh_size;
-
-      /* Allocate and clear an extra byte at the end, to prevent crashes
-	 in case the string table is not terminated.  */
-      if (shstrtabsize + 1 <= 1
-	  || bfd_seek (abfd, offset, SEEK_SET) != 0
-	  || (shstrtab = _bfd_alloc_and_read (abfd, shstrtabsize + 1,
-					      shstrtabsize)) == NULL)
-	{
-	  /* Once we've failed to read it, make sure we don't keep
-	     trying.  Otherwise, we'll keep allocating space for
-	     the string table over and over.  */
-	  i_shdrp[shindex]->sh_size = 0;
-	}
-      else
-	shstrtab[shstrtabsize] = '\0';
-      i_shdrp[shindex]->contents = shstrtab;
-    }
-  return (char *) shstrtab;
-}
-
-char *
-bfd_elf_string_from_elf_section (bfd *abfd,
-				 unsigned int shindex,
-				 unsigned int strindex)
-{
-  Elf_Internal_Shdr *hdr;
-
-  if (strindex == 0)
-    return "";
-
-  if (elf_elfsections (abfd) == NULL || shindex >= elf_numsections (abfd))
-    return NULL;
-
-  hdr = elf_elfsections (abfd)[shindex];
-
-  if (hdr->contents == NULL)
-    {
-      if (hdr->sh_type != SHT_STRTAB && hdr->sh_type < SHT_LOOS)
-	{
-	  /* PR 17512: file: f057ec89.  */
-	  /* xgettext:c-format */
-	  _bfd_error_handler (_("%pB: attempt to load strings from"
-				" a non-string section (number %d)"),
-			      abfd, shindex);
-	  return NULL;
-	}
-
-      if (bfd_elf_get_str_section (abfd, shindex) == NULL)
-	return NULL;
-    }
-  else
-    {
-      /* PR 24273: The string section's contents may have already
-	 been loaded elsewhere, eg because a corrupt file has the
-	 string section index in the ELF header pointing at a group
-	 section.  So be paranoid, and test that the last byte of
-	 the section is zero.  */
-      if (hdr->sh_size == 0 || hdr->contents[hdr->sh_size - 1] != 0)
-	return NULL;
-    }
-
-  if (strindex >= hdr->sh_size)
-    {
-      unsigned int shstrndx = elf_elfheader(abfd)->e_shstrndx;
-      _bfd_error_handler
-	/* xgettext:c-format */
-	(_("%pB: invalid string offset %u >= %" PRIu64 " for section `%s'"),
-	 abfd, strindex, (uint64_t) hdr->sh_size,
-	 (shindex == shstrndx && strindex == hdr->sh_name
-	  ? ".shstrtab"
-	  : bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name)));
-      return NULL;
-    }
-
-  return ((char *) hdr->contents) + strindex;
-}
-
-/* Read and convert symbols to internal format.
-   SYMCOUNT specifies the number of symbols to read, starting from
-   symbol SYMOFFSET.  If any of INTSYM_BUF, EXTSYM_BUF or EXTSHNDX_BUF
-   are non-NULL, they are used to store the internal symbols, external
-   symbols, and symbol section index extensions, respectively.
-   Returns a pointer to the internal symbol buffer (malloced if necessary)
-   or NULL if there were no symbols or some kind of problem.  */
-
-Elf_Internal_Sym *
-bfd_elf_get_elf_syms (bfd *ibfd,
-		      Elf_Internal_Shdr *symtab_hdr,
-		      size_t symcount,
-		      size_t symoffset,
-		      Elf_Internal_Sym *intsym_buf,
-		      void *extsym_buf,
-		      Elf_External_Sym_Shndx *extshndx_buf)
-{
-  Elf_Internal_Shdr *shndx_hdr;
-  void *alloc_ext;
-  const bfd_byte *esym;
-  Elf_External_Sym_Shndx *alloc_extshndx;
-  Elf_External_Sym_Shndx *shndx;
-  Elf_Internal_Sym *alloc_intsym;
-  Elf_Internal_Sym *isym;
-  Elf_Internal_Sym *isymend;
-  const struct elf_backend_data *bed;
-  size_t extsym_size;
-  size_t amt;
-  file_ptr pos;
-
-  if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour)
-    abort ();
-
-  if (symcount == 0)
-    return intsym_buf;
-
-  /* Normal syms might have section extension entries.  */
-  shndx_hdr = NULL;
-  if (elf_symtab_shndx_list (ibfd) != NULL)
-    {
-      elf_section_list * entry;
-      Elf_Internal_Shdr **sections = elf_elfsections (ibfd);
-
-      /* Find an index section that is linked to this symtab section.  */
-      for (entry = elf_symtab_shndx_list (ibfd); entry != NULL; entry = entry->next)
-	{
-	  /* PR 20063.  */
-	  if (entry->hdr.sh_link >= elf_numsections (ibfd))
-	    continue;
-
-	  if (sections[entry->hdr.sh_link] == symtab_hdr)
-	    {
-	      shndx_hdr = & entry->hdr;
-	      break;
-	    };
-	}
-
-      if (shndx_hdr == NULL)
-	{
-	  if (symtab_hdr == & elf_symtab_hdr (ibfd))
-	    /* Not really accurate, but this was how the old code used to work.  */
-	    shndx_hdr = & elf_symtab_shndx_list (ibfd)->hdr;
-	  /* Otherwise we do nothing.  The assumption is that
-	     the index table will not be needed.  */
-	}
-    }
-
-  /* Read the symbols.  */
-  alloc_ext = NULL;
-  alloc_extshndx = NULL;
-  alloc_intsym = NULL;
-  bed = get_elf_backend_data (ibfd);
-  extsym_size = bed->s->sizeof_sym;
-  if (_bfd_mul_overflow (symcount, extsym_size, &amt))
-    {
-      bfd_set_error (bfd_error_file_too_big);
-      intsym_buf = NULL;
-      goto out;
-    }
-  pos = symtab_hdr->sh_offset + symoffset * extsym_size;
-  if (extsym_buf == NULL)
-    {
-      alloc_ext = bfd_malloc (amt);
-      extsym_buf = alloc_ext;
-    }
-  if (extsym_buf == NULL
-      || bfd_seek (ibfd, pos, SEEK_SET) != 0
-      || bfd_bread (extsym_buf, amt, ibfd) != amt)
-    {
-      intsym_buf = NULL;
-      goto out;
-    }
-
-  if (shndx_hdr == NULL || shndx_hdr->sh_size == 0)
-    extshndx_buf = NULL;
-  else
-    {
-      if (_bfd_mul_overflow (symcount, sizeof (Elf_External_Sym_Shndx), &amt))
-	{
-	  bfd_set_error (bfd_error_file_too_big);
-	  intsym_buf = NULL;
-	  goto out;
-	}
-      pos = shndx_hdr->sh_offset + symoffset * sizeof (Elf_External_Sym_Shndx);
-      if (extshndx_buf == NULL)
-	{
-	  alloc_extshndx = (Elf_External_Sym_Shndx *) bfd_malloc (amt);
-	  extshndx_buf = alloc_extshndx;
-	}
-      if (extshndx_buf == NULL
-	  || bfd_seek (ibfd, pos, SEEK_SET) != 0
-	  || bfd_bread (extshndx_buf, amt, ibfd) != amt)
-	{
-	  intsym_buf = NULL;
-	  goto out;
-	}
-    }
-
-  if (intsym_buf == NULL)
-    {
-      if (_bfd_mul_overflow (symcount, sizeof (Elf_Internal_Sym), &amt))
-	{
-	  bfd_set_error (bfd_error_file_too_big);
-	  goto out;
-	}
-      alloc_intsym = (Elf_Internal_Sym *) bfd_malloc (amt);
-      intsym_buf = alloc_intsym;
-      if (intsym_buf == NULL)
-	goto out;
-    }
-
-  /* Convert the symbols to internal form.  */
-  isymend = intsym_buf + symcount;
-  for (esym = (const bfd_byte *) extsym_buf, isym = intsym_buf,
-	   shndx = extshndx_buf;
-       isym < isymend;
-       esym += extsym_size, isym++, shndx = shndx != NULL ? shndx + 1 : NULL)
-    if (!(*bed->s->swap_symbol_in) (ibfd, esym, shndx, isym))
-      {
-	symoffset += (esym - (bfd_byte *) extsym_buf) / extsym_size;
-	/* xgettext:c-format */
-	_bfd_error_handler (_("%pB symbol number %lu references"
-			      " nonexistent SHT_SYMTAB_SHNDX section"),
-			    ibfd, (unsigned long) symoffset);
-	free (alloc_intsym);
-	intsym_buf = NULL;
-	goto out;
-      }
-
- out:
-  free (alloc_ext);
-  free (alloc_extshndx);
-
-  return intsym_buf;
-}
-
-/* Look up a symbol name.  */
-const char *
-bfd_elf_sym_name (bfd *abfd,
-		  Elf_Internal_Shdr *symtab_hdr,
-		  Elf_Internal_Sym *isym,
-		  asection *sym_sec)
-{
-  const char *name;
-  unsigned int iname = isym->st_name;
-  unsigned int shindex = symtab_hdr->sh_link;
-
-  if (iname == 0 && ELF_ST_TYPE (isym->st_info) == STT_SECTION
-      /* Check for a bogus st_shndx to avoid crashing.  */
-      && isym->st_shndx < elf_numsections (abfd))
-    {
-      iname = elf_elfsections (abfd)[isym->st_shndx]->sh_name;
-      shindex = elf_elfheader (abfd)->e_shstrndx;
-    }
-
-  name = bfd_elf_string_from_elf_section (abfd, shindex, iname);
-  if (name == NULL)
-    name = "(null)";
-  else if (sym_sec && *name == '\0')
-    name = bfd_section_name (sym_sec);
-
-  return name;
-}
-
-/* Elf_Internal_Shdr->contents is an array of these for SHT_GROUP
-   sections.  The first element is the flags, the rest are section
-   pointers.  */
-
-typedef union elf_internal_group {
-  Elf_Internal_Shdr *shdr;
-  unsigned int flags;
-} Elf_Internal_Group;
-
-/* Return the name of the group signature symbol.  Why isn't the
-   signature just a string?  */
-
-static const char *
-group_signature (bfd *abfd, Elf_Internal_Shdr *ghdr)
-{
-  Elf_Internal_Shdr *hdr;
-  unsigned char esym[sizeof (Elf64_External_Sym)];
-  Elf_External_Sym_Shndx eshndx;
-  Elf_Internal_Sym isym;
-
-  /* First we need to ensure the symbol table is available.  Make sure
-     that it is a symbol table section.  */
-  if (ghdr->sh_link >= elf_numsections (abfd))
-    return NULL;
-  hdr = elf_elfsections (abfd) [ghdr->sh_link];
-  if (hdr->sh_type != SHT_SYMTAB
-      || ! bfd_section_from_shdr (abfd, ghdr->sh_link))
-    return NULL;
-
-  /* Go read the symbol.  */
-  hdr = &elf_tdata (abfd)->symtab_hdr;
-  if (bfd_elf_get_elf_syms (abfd, hdr, 1, ghdr->sh_info,
-			    &isym, esym, &eshndx) == NULL)
-    return NULL;
-
-  return bfd_elf_sym_name (abfd, hdr, &isym, NULL);
-}
-
-/* Set next_in_group list pointer, and group name for NEWSECT.  */
-
-static bfd_boolean
-setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
-{
-  unsigned int num_group = elf_tdata (abfd)->num_group;
-
-  /* If num_group is zero, read in all SHT_GROUP sections.  The count
-     is set to -1 if there are no SHT_GROUP sections.  */
-  if (num_group == 0)
-    {
-      unsigned int i, shnum;
-
-      /* First count the number of groups.  If we have a SHT_GROUP
-	 section with just a flag word (ie. sh_size is 4), ignore it.  */
-      shnum = elf_numsections (abfd);
-      num_group = 0;
-
-#define IS_VALID_GROUP_SECTION_HEADER(shdr, minsize)	\
-	(   (shdr)->sh_type == SHT_GROUP		\
-	 && (shdr)->sh_size >= minsize			\
-	 && (shdr)->sh_entsize == GRP_ENTRY_SIZE	\
-	 && ((shdr)->sh_size % GRP_ENTRY_SIZE) == 0)
-
-      for (i = 0; i < shnum; i++)
-	{
-	  Elf_Internal_Shdr *shdr = elf_elfsections (abfd)[i];
-
-	  if (IS_VALID_GROUP_SECTION_HEADER (shdr, 2 * GRP_ENTRY_SIZE))
-	    num_group += 1;
-	}
-
-      if (num_group == 0)
-	{
-	  num_group = (unsigned) -1;
-	  elf_tdata (abfd)->num_group = num_group;
-	  elf_tdata (abfd)->group_sect_ptr = NULL;
-	}
-      else
-	{
-	  /* We keep a list of elf section headers for group sections,
-	     so we can find them quickly.  */
-	  size_t amt;
-
-	  elf_tdata (abfd)->num_group = num_group;
-	  amt = num_group * sizeof (Elf_Internal_Shdr *);
-	  elf_tdata (abfd)->group_sect_ptr
-	    = (Elf_Internal_Shdr **) bfd_zalloc (abfd, amt);
-	  if (elf_tdata (abfd)->group_sect_ptr == NULL)
-	    return FALSE;
-	  num_group = 0;
-
-	  for (i = 0; i < shnum; i++)
-	    {
-	      Elf_Internal_Shdr *shdr = elf_elfsections (abfd)[i];
-
-	      if (IS_VALID_GROUP_SECTION_HEADER (shdr, 2 * GRP_ENTRY_SIZE))
-		{
-		  unsigned char *src;
-		  Elf_Internal_Group *dest;
-
-		  /* Make sure the group section has a BFD section
-		     attached to it.  */
-		  if (!bfd_section_from_shdr (abfd, i))
-		    return FALSE;
-
-		  /* Add to list of sections.  */
-		  elf_tdata (abfd)->group_sect_ptr[num_group] = shdr;
-		  num_group += 1;
-
-		  /* Read the raw contents.  */
-		  BFD_ASSERT (sizeof (*dest) >= 4 && sizeof (*dest) % 4 == 0);
-		  shdr->contents = NULL;
-		  if (_bfd_mul_overflow (shdr->sh_size,
-					 sizeof (*dest) / 4, &amt)
-		      || bfd_seek (abfd, shdr->sh_offset, SEEK_SET) != 0
-		      || !(shdr->contents
-			   = _bfd_alloc_and_read (abfd, amt, shdr->sh_size)))
-		    {
-		      _bfd_error_handler
-			/* xgettext:c-format */
-			(_("%pB: invalid size field in group section"
-			   " header: %#" PRIx64 ""),
-			 abfd, (uint64_t) shdr->sh_size);
-		      bfd_set_error (bfd_error_bad_value);
-		      -- num_group;
-		      continue;
-		    }
-
-		  /* Translate raw contents, a flag word followed by an
-		     array of elf section indices all in target byte order,
-		     to the flag word followed by an array of elf section
-		     pointers.  */
-		  src = shdr->contents + shdr->sh_size;
-		  dest = (Elf_Internal_Group *) (shdr->contents + amt);
-
-		  while (1)
-		    {
-		      unsigned int idx;
-
-		      src -= 4;
-		      --dest;
-		      idx = H_GET_32 (abfd, src);
-		      if (src == shdr->contents)
-			{
-			  dest->shdr = NULL;
-			  dest->flags = idx;
-			  if (shdr->bfd_section != NULL && (idx & GRP_COMDAT))
-			    shdr->bfd_section->flags
-			      |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD;
-			  break;
-			}
-		      if (idx < shnum)
-			{
-			  dest->shdr = elf_elfsections (abfd)[idx];
-			  /* PR binutils/23199: All sections in a
-			     section group should be marked with
-			     SHF_GROUP.  But some tools generate
-			     broken objects without SHF_GROUP.  Fix
-			     them up here.  */
-			  dest->shdr->sh_flags |= SHF_GROUP;
-			}
-		      if (idx >= shnum
-			  || dest->shdr->sh_type == SHT_GROUP)
-			{
-			  _bfd_error_handler
-			    (_("%pB: invalid entry in SHT_GROUP section [%u]"),
-			       abfd, i);
-			  dest->shdr = NULL;
-			}
-		    }
-		}
-	    }
-
-	  /* PR 17510: Corrupt binaries might contain invalid groups.  */
-	  if (num_group != (unsigned) elf_tdata (abfd)->num_group)
-	    {
-	      elf_tdata (abfd)->num_group = num_group;
-
-	      /* If all groups are invalid then fail.  */
-	      if (num_group == 0)
-		{
-		  elf_tdata (abfd)->group_sect_ptr = NULL;
-		  elf_tdata (abfd)->num_group = num_group = -1;
-		  _bfd_error_handler
-		    (_("%pB: no valid group sections found"), abfd);
-		  bfd_set_error (bfd_error_bad_value);
-		}
-	    }
-	}
-    }
-
-  if (num_group != (unsigned) -1)
-    {
-      unsigned int search_offset = elf_tdata (abfd)->group_search_offset;
-      unsigned int j;
-
-      for (j = 0; j < num_group; j++)
-	{
-	  /* Begin search from previous found group.  */
-	  unsigned i = (j + search_offset) % num_group;
-
-	  Elf_Internal_Shdr *shdr = elf_tdata (abfd)->group_sect_ptr[i];
-	  Elf_Internal_Group *idx;
-	  bfd_size_type n_elt;
-
-	  if (shdr == NULL)
-	    continue;
-
-	  idx = (Elf_Internal_Group *) shdr->contents;
-	  if (idx == NULL || shdr->sh_size < 4)
-	    {
-	      /* See PR 21957 for a reproducer.  */
-	      /* xgettext:c-format */
-	      _bfd_error_handler (_("%pB: group section '%pA' has no contents"),
-				  abfd, shdr->bfd_section);
-	      elf_tdata (abfd)->group_sect_ptr[i] = NULL;
-	      bfd_set_error (bfd_error_bad_value);
-	      return FALSE;
-	    }
-	  n_elt = shdr->sh_size / 4;
-
-	  /* Look through this group's sections to see if current
-	     section is a member.  */
-	  while (--n_elt != 0)
-	    if ((++idx)->shdr == hdr)
-	      {
-		asection *s = NULL;
-
-		/* We are a member of this group.  Go looking through
-		   other members to see if any others are linked via
-		   next_in_group.  */
-		idx = (Elf_Internal_Group *) shdr->contents;
-		n_elt = shdr->sh_size / 4;
-		while (--n_elt != 0)
-		  if ((++idx)->shdr != NULL
-		      && (s = idx->shdr->bfd_section) != NULL
-		      && elf_next_in_group (s) != NULL)
-		    break;
-		if (n_elt != 0)
-		  {
-		    /* Snarf the group name from other member, and
-		       insert current section in circular list.  */
-		    elf_group_name (newsect) = elf_group_name (s);
-		    elf_next_in_group (newsect) = elf_next_in_group (s);
-		    elf_next_in_group (s) = newsect;
-		  }
-		else
-		  {
-		    const char *gname;
-
-		    gname = group_signature (abfd, shdr);
-		    if (gname == NULL)
-		      return FALSE;
-		    elf_group_name (newsect) = gname;
-
-		    /* Start a circular list with one element.  */
-		    elf_next_in_group (newsect) = newsect;
-		  }
-
-		/* If the group section has been created, point to the
-		   new member.  */
-		if (shdr->bfd_section != NULL)
-		  elf_next_in_group (shdr->bfd_section) = newsect;
-
-		elf_tdata (abfd)->group_search_offset = i;
-		j = num_group - 1;
-		break;
-	      }
-	}
-    }
-
-  if (elf_group_name (newsect) == NULL)
-    {
-      /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: no group info for section '%pA'"),
-			  abfd, newsect);
-      return FALSE;
-    }
-  return TRUE;
-}
-
-bfd_boolean
-_bfd_elf_setup_sections (bfd *abfd)
-{
-  unsigned int i;
-  unsigned int num_group = elf_tdata (abfd)->num_group;
-  bfd_boolean result = TRUE;
-  asection *s;
-
-  /* Process SHF_LINK_ORDER.  */
-  for (s = abfd->sections; s != NULL; s = s->next)
-    {
-      Elf_Internal_Shdr *this_hdr = &elf_section_data (s)->this_hdr;
-      if ((this_hdr->sh_flags & SHF_LINK_ORDER) != 0)
-	{
-	  unsigned int elfsec = this_hdr->sh_link;
-	  /* An sh_link value of 0 is now allowed.  It indicates that linked
-	     to section has already been discarded, but that the current
-	     section has been retained for some other reason.  This linking
-	     section is still a candidate for later garbage collection
-	     however.  */
-	  if (elfsec == 0)
-	    {
-	      elf_linked_to_section (s) = NULL;
-	    }
-	  else
-	    {
-	      asection *linksec = NULL;
-
-	      if (elfsec < elf_numsections (abfd))
-		{
-		  this_hdr = elf_elfsections (abfd)[elfsec];
-		  linksec = this_hdr->bfd_section;
-		}
-
-	      /* PR 1991, 2008:
-		 Some strip/objcopy may leave an incorrect value in
-		 sh_link.  We don't want to proceed.  */
-	      if (linksec == NULL)
-		{
-		  _bfd_error_handler
-		    /* xgettext:c-format */
-		    (_("%pB: sh_link [%d] in section `%pA' is incorrect"),
-		     s->owner, elfsec, s);
-		  result = FALSE;
-		}
-
-	      elf_linked_to_section (s) = linksec;
-	    }
-	}
-      else if (this_hdr->sh_type == SHT_GROUP
-	       && elf_next_in_group (s) == NULL)
-	{
-	  _bfd_error_handler
-	    /* xgettext:c-format */
-	    (_("%pB: SHT_GROUP section [index %d] has no SHF_GROUP sections"),
-	     abfd, elf_section_data (s)->this_idx);
-	  result = FALSE;
-	}
-    }
-
-  /* Process section groups.  */
-  if (num_group == (unsigned) -1)
-    return result;
-
-  for (i = 0; i < num_group; i++)
-    {
-      Elf_Internal_Shdr *shdr = elf_tdata (abfd)->group_sect_ptr[i];
-      Elf_Internal_Group *idx;
-      unsigned int n_elt;
-
-      /* PR binutils/18758: Beware of corrupt binaries with invalid group data.  */
-      if (shdr == NULL || shdr->bfd_section == NULL || shdr->contents == NULL)
-	{
-	  _bfd_error_handler
-	    /* xgettext:c-format */
-	    (_("%pB: section group entry number %u is corrupt"),
-	     abfd, i);
-	  result = FALSE;
-	  continue;
-	}
-
-      idx = (Elf_Internal_Group *) shdr->contents;
-      n_elt = shdr->sh_size / 4;
-
-      while (--n_elt != 0)
-	{
-	  ++ idx;
-
-	  if (idx->shdr == NULL)
-	    continue;
-	  else if (idx->shdr->bfd_section)
-	    elf_sec_group (idx->shdr->bfd_section) = shdr->bfd_section;
-	  else if (idx->shdr->sh_type != SHT_RELA
-		   && idx->shdr->sh_type != SHT_REL)
-	    {
-	      /* There are some unknown sections in the group.  */
-	      _bfd_error_handler
-		/* xgettext:c-format */
-		(_("%pB: unknown type [%#x] section `%s' in group [%pA]"),
-		 abfd,
-		 idx->shdr->sh_type,
-		 bfd_elf_string_from_elf_section (abfd,
-						  (elf_elfheader (abfd)
-						   ->e_shstrndx),
-						  idx->shdr->sh_name),
-		 shdr->bfd_section);
-	      result = FALSE;
-	    }
-	}
-    }
-
-  return result;
-}
-
-bfd_boolean
-bfd_elf_is_group_section (bfd *abfd ATTRIBUTE_UNUSED, const asection *sec)
-{
-  return elf_next_in_group (sec) != NULL;
-}
-
-const char *
-bfd_elf_group_name (bfd *abfd ATTRIBUTE_UNUSED, const asection *sec)
-{
-  if (elf_sec_group (sec) != NULL)
-    return elf_group_name (sec);
-  return NULL;
-}
-
-static char *
-convert_debug_to_zdebug (bfd *abfd, const char *name)
-{
-  unsigned int len = strlen (name);
-  char *new_name = bfd_alloc (abfd, len + 2);
-  if (new_name == NULL)
-    return NULL;
-  new_name[0] = '.';
-  new_name[1] = 'z';
-  memcpy (new_name + 2, name + 1, len);
-  return new_name;
-}
-
-static char *
-convert_zdebug_to_debug (bfd *abfd, const char *name)
-{
-  unsigned int len = strlen (name);
-  char *new_name = bfd_alloc (abfd, len);
-  if (new_name == NULL)
-    return NULL;
-  new_name[0] = '.';
-  memcpy (new_name + 1, name + 2, len - 1);
-  return new_name;
-}
-
-/* This a copy of lto_section defined in GCC (lto-streamer.h).  */
-
-struct lto_section
-{
-  int16_t major_version;
-  int16_t minor_version;
-  unsigned char slim_object;
-
-  /* Flags is a private field that is not defined publicly.  */
-  uint16_t flags;
-};
-
-/* Make a BFD section from an ELF section.  We store a pointer to the
-   BFD section in the bfd_section field of the header.  */
-
-bfd_boolean
-_bfd_elf_make_section_from_shdr (bfd *abfd,
-				 Elf_Internal_Shdr *hdr,
-				 const char *name,
-				 int shindex)
-{
-  asection *newsect;
-  flagword flags;
-  const struct elf_backend_data *bed;
-  unsigned int opb = bfd_octets_per_byte (abfd, NULL);
-
-  if (hdr->bfd_section != NULL)
-    return TRUE;
-
-  newsect = bfd_make_section_anyway (abfd, name);
-  if (newsect == NULL)
-    return FALSE;
-
-  hdr->bfd_section = newsect;
-  elf_section_data (newsect)->this_hdr = *hdr;
-  elf_section_data (newsect)->this_idx = shindex;
-
-  /* Always use the real type/flags.  */
-  elf_section_type (newsect) = hdr->sh_type;
-  elf_section_flags (newsect) = hdr->sh_flags;
-
-  newsect->filepos = hdr->sh_offset;
-
-  flags = SEC_NO_FLAGS;
-  if (hdr->sh_type != SHT_NOBITS)
-    flags |= SEC_HAS_CONTENTS;
-  if (hdr->sh_type == SHT_GROUP)
-    flags |= SEC_GROUP;
-  if ((hdr->sh_flags & SHF_ALLOC) != 0)
-    {
-      flags |= SEC_ALLOC;
-      if (hdr->sh_type != SHT_NOBITS)
-	flags |= SEC_LOAD;
-    }
-  if ((hdr->sh_flags & SHF_WRITE) == 0)
-    flags |= SEC_READONLY;
-  if ((hdr->sh_flags & SHF_EXECINSTR) != 0)
-    flags |= SEC_CODE;
-  else if ((flags & SEC_LOAD) != 0)
-    flags |= SEC_DATA;
-  if ((hdr->sh_flags & SHF_MERGE) != 0)
-    {
-      flags |= SEC_MERGE;
-      newsect->entsize = hdr->sh_entsize;
-    }
-  if ((hdr->sh_flags & SHF_STRINGS) != 0)
-    flags |= SEC_STRINGS;
-  if (hdr->sh_flags & SHF_GROUP)
-    if (!setup_group (abfd, hdr, newsect))
-      return FALSE;
-  if ((hdr->sh_flags & SHF_TLS) != 0)
-    flags |= SEC_THREAD_LOCAL;
-  if ((hdr->sh_flags & SHF_EXCLUDE) != 0)
-    flags |= SEC_EXCLUDE;
-
-  switch (elf_elfheader (abfd)->e_ident[EI_OSABI])
-    {
-      /* FIXME: We should not recognize SHF_GNU_MBIND for ELFOSABI_NONE,
-	 but binutils as of 2019-07-23 did not set the EI_OSABI header
-	 byte.  */
-    case ELFOSABI_GNU:
-    case ELFOSABI_FREEBSD:
-      if ((hdr->sh_flags & SHF_GNU_RETAIN) != 0)
-	elf_tdata (abfd)->has_gnu_osabi |= elf_gnu_osabi_retain;
-      /* Fall through */
-    case ELFOSABI_NONE:
-      if ((hdr->sh_flags & SHF_GNU_MBIND) != 0)
-	elf_tdata (abfd)->has_gnu_osabi |= elf_gnu_osabi_mbind;
-      break;
-    }
-
-  if ((flags & SEC_ALLOC) == 0)
-    {
-      /* The debugging sections appear to be recognized only by name,
-	 not any sort of flag.  Their SEC_ALLOC bits are cleared.  */
-      if (name [0] == '.')
-	{
-	  if (strncmp (name, ".debug", 6) == 0
-	      || strncmp (name, ".gnu.linkonce.wi.", 17) == 0
-	      || strncmp (name, ".zdebug", 7) == 0)
-	    flags |= SEC_DEBUGGING | SEC_ELF_OCTETS;
-	  else if (strncmp (name, GNU_BUILD_ATTRS_SECTION_NAME, 21) == 0
-		   || strncmp (name, ".note.gnu", 9) == 0)
-	    {
-	      flags |= SEC_ELF_OCTETS;
-	      opb = 1;
-	    }
-	  else if (strncmp (name, ".line", 5) == 0
-		   || strncmp (name, ".stab", 5) == 0
-		   || strcmp (name, ".gdb_index") == 0)
-	    flags |= SEC_DEBUGGING;
-	}
-    }
-
-  if (!bfd_set_section_vma (newsect, hdr->sh_addr / opb)
-      || !bfd_set_section_size (newsect, hdr->sh_size)
-      || !bfd_set_section_alignment (newsect, bfd_log2 (hdr->sh_addralign)))
-    return FALSE;
-
-  /* As a GNU extension, if the name begins with .gnu.linkonce, we
-     only link a single copy of the section.  This is used to support
-     g++.  g++ will emit each template expansion in its own section.
-     The symbols will be defined as weak, so that multiple definitions
-     are permitted.  The GNU linker extension is to actually discard
-     all but one of the sections.  */
-  if (CONST_STRNEQ (name, ".gnu.linkonce")
-      && elf_next_in_group (newsect) == NULL)
-    flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD;
-
-  if (!bfd_set_section_flags (newsect, flags))
-    return FALSE;
-
-  bed = get_elf_backend_data (abfd);
-  if (bed->elf_backend_section_flags)
-    if (!bed->elf_backend_section_flags (hdr))
-      return FALSE;
-
-  /* We do not parse the PT_NOTE segments as we are interested even in the
-     separate debug info files which may have the segments offsets corrupted.
-     PT_NOTEs from the core files are currently not parsed using BFD.  */
-  if (hdr->sh_type == SHT_NOTE)
-    {
-      bfd_byte *contents;
-
-      if (!bfd_malloc_and_get_section (abfd, newsect, &contents))
-	return FALSE;
-
-      elf_parse_notes (abfd, (char *) contents, hdr->sh_size,
-		       hdr->sh_offset, hdr->sh_addralign);
-      free (contents);
-    }
-
-  if ((newsect->flags & SEC_ALLOC) != 0)
-    {
-      Elf_Internal_Phdr *phdr;
-      unsigned int i, nload;
-
-      /* Some ELF linkers produce binaries with all the program header
-	 p_paddr fields zero.  If we have such a binary with more than
-	 one PT_LOAD header, then leave the section lma equal to vma
-	 so that we don't create sections with overlapping lma.  */
-      phdr = elf_tdata (abfd)->phdr;
-      for (nload = 0, i = 0; i < elf_elfheader (abfd)->e_phnum; i++, phdr++)
-	if (phdr->p_paddr != 0)
-	  break;
-	else if (phdr->p_type == PT_LOAD && phdr->p_memsz != 0)
-	  ++nload;
-      if (i >= elf_elfheader (abfd)->e_phnum && nload > 1)
-	return TRUE;
-
-      phdr = elf_tdata (abfd)->phdr;
-      for (i = 0; i < elf_elfheader (abfd)->e_phnum; i++, phdr++)
-	{
-	  if (((phdr->p_type == PT_LOAD
-		&& (hdr->sh_flags & SHF_TLS) == 0)
-	       || phdr->p_type == PT_TLS)
-	      && ELF_SECTION_IN_SEGMENT (hdr, phdr))
-	    {
-	      if ((newsect->flags & SEC_LOAD) == 0)
-		newsect->lma = (phdr->p_paddr
-				+ hdr->sh_addr - phdr->p_vaddr) / opb;
-	      else
-		/* We used to use the same adjustment for SEC_LOAD
-		   sections, but that doesn't work if the segment
-		   is packed with code from multiple VMAs.
-		   Instead we calculate the section LMA based on
-		   the segment LMA.  It is assumed that the
-		   segment will contain sections with contiguous
-		   LMAs, even if the VMAs are not.  */
-		newsect->lma = (phdr->p_paddr
-				+ hdr->sh_offset - phdr->p_offset) / opb;
-
-	      /* With contiguous segments, we can't tell from file
-		 offsets whether a section with zero size should
-		 be placed at the end of one segment or the
-		 beginning of the next.  Decide based on vaddr.  */
-	      if (hdr->sh_addr >= phdr->p_vaddr
-		  && (hdr->sh_addr + hdr->sh_size
-		      <= phdr->p_vaddr + phdr->p_memsz))
-		break;
-	    }
-	}
-    }
-
-  /* Compress/decompress DWARF debug sections with names: .debug_* and
-     .zdebug_*, after the section flags is set.  */
-  if ((newsect->flags & SEC_DEBUGGING)
-      && ((name[1] == 'd' && name[6] == '_')
-	  || (name[1] == 'z' && name[7] == '_')))
-    {
-      enum { nothing, compress, decompress } action = nothing;
-      int compression_header_size;
-      bfd_size_type uncompressed_size;
-      unsigned int uncompressed_align_power;
-      bfd_boolean compressed
-	= bfd_is_section_compressed_with_header (abfd, newsect,
-						 &compression_header_size,
-						 &uncompressed_size,
-						 &uncompressed_align_power);
-      if (compressed)
-	{
-	  /* Compressed section.  Check if we should decompress.  */
-	  if ((abfd->flags & BFD_DECOMPRESS))
-	    action = decompress;
-	}
-
-      /* Compress the uncompressed section or convert from/to .zdebug*
-	 section.  Check if we should compress.  */
-      if (action == nothing)
-	{
-	  if (newsect->size != 0
-	      && (abfd->flags & BFD_COMPRESS)
-	      && compression_header_size >= 0
-	      && uncompressed_size > 0
-	      && (!compressed
-		  || ((compression_header_size > 0)
-		      != ((abfd->flags & BFD_COMPRESS_GABI) != 0))))
-	    action = compress;
-	  else
-	    return TRUE;
-	}
-
-      if (action == compress)
-	{
-	  if (!bfd_init_section_compress_status (abfd, newsect))
-	    {
-	      _bfd_error_handler
-		/* xgettext:c-format */
-		(_("%pB: unable to initialize compress status for section %s"),
-		 abfd, name);
-	      return FALSE;
-	    }
-	}
-      else
-	{
-	  if (!bfd_init_section_decompress_status (abfd, newsect))
-	    {
-	      _bfd_error_handler
-		/* xgettext:c-format */
-		(_("%pB: unable to initialize decompress status for section %s"),
-		 abfd, name);
-	      return FALSE;
-	    }
-	}
-
-      if (abfd->is_linker_input)
-	{
-	  if (name[1] == 'z'
-	      && (action == decompress
-		  || (action == compress
-		      && (abfd->flags & BFD_COMPRESS_GABI) != 0)))
-	    {
-	      /* Convert section name from .zdebug_* to .debug_* so
-		 that linker will consider this section as a debug
-		 section.  */
-	      char *new_name = convert_zdebug_to_debug (abfd, name);
-	      if (new_name == NULL)
-		return FALSE;
-	      bfd_rename_section (newsect, new_name);
-	    }
-	}
-      else
-	/* For objdump, don't rename the section.  For objcopy, delay
-	   section rename to elf_fake_sections.  */
-	newsect->flags |= SEC_ELF_RENAME;
-    }
-
-  /* GCC uses .gnu.lto_.lto.<some_hash> as a LTO bytecode information
-     section.  */
-  const char *lto_section_name = ".gnu.lto_.lto.";
-  if (strncmp (name, lto_section_name, strlen (lto_section_name)) == 0)
-    {
-      struct lto_section lsection;
-      if (bfd_get_section_contents (abfd, newsect, &lsection, 0,
-				    sizeof (struct lto_section)))
-	abfd->lto_slim_object = lsection.slim_object;
-    }
-
-  return TRUE;
-}
-
-const char *const bfd_elf_section_type_names[] =
-{
-  "SHT_NULL", "SHT_PROGBITS", "SHT_SYMTAB", "SHT_STRTAB",
-  "SHT_RELA", "SHT_HASH", "SHT_DYNAMIC", "SHT_NOTE",
-  "SHT_NOBITS", "SHT_REL", "SHT_SHLIB", "SHT_DYNSYM",
-};
-
-/* ELF relocs are against symbols.  If we are producing relocatable
-   output, and the reloc is against an external symbol, and nothing
-   has given us any additional addend, the resulting reloc will also
-   be against the same symbol.  In such a case, we don't want to
-   change anything about the way the reloc is handled, since it will
-   all be done at final link time.  Rather than put special case code
-   into bfd_perform_relocation, all the reloc types use this howto
-   function.  It just short circuits the reloc if producing
-   relocatable output against an external symbol.  */
-
-bfd_reloc_status_type
-bfd_elf_generic_reloc (bfd *abfd ATTRIBUTE_UNUSED,
-		       arelent *reloc_entry,
-		       asymbol *symbol,
-		       void *data ATTRIBUTE_UNUSED,
-		       asection *input_section,
-		       bfd *output_bfd,
-		       char **error_message ATTRIBUTE_UNUSED)
-{
-  if (output_bfd != NULL
-      && (symbol->flags & BSF_SECTION_SYM) == 0
-      && (! reloc_entry->howto->partial_inplace
-	  || reloc_entry->addend == 0))
-    {
-      reloc_entry->address += input_section->output_offset;
-      return bfd_reloc_ok;
-    }
-
-  return bfd_reloc_continue;
-}
-
-/* Returns TRUE if section A matches section B.
-   Names, addresses and links may be different, but everything else
-   should be the same.  */
-
-static bfd_boolean
-section_match (const Elf_Internal_Shdr * a,
-	       const Elf_Internal_Shdr * b)
-{
-  if (a->sh_type != b->sh_type
-      || ((a->sh_flags ^ b->sh_flags) & ~SHF_INFO_LINK) != 0
-      || a->sh_addralign != b->sh_addralign
-      || a->sh_entsize != b->sh_entsize)
-    return FALSE;
-  if (a->sh_type == SHT_SYMTAB
-      || a->sh_type == SHT_STRTAB)
-    return TRUE;
-  return a->sh_size == b->sh_size;
-}
-
-/* Find a section in OBFD that has the same characteristics
-   as IHEADER.  Return the index of this section or SHN_UNDEF if
-   none can be found.  Check's section HINT first, as this is likely
-   to be the correct section.  */
-
-static unsigned int
-find_link (const bfd *obfd, const Elf_Internal_Shdr *iheader,
-	   const unsigned int hint)
-{
-  Elf_Internal_Shdr ** oheaders = elf_elfsections (obfd);
-  unsigned int i;
-
-  BFD_ASSERT (iheader != NULL);
-
-  /* See PR 20922 for a reproducer of the NULL test.  */
-  if (hint < elf_numsections (obfd)
-      && oheaders[hint] != NULL
-      && section_match (oheaders[hint], iheader))
-    return hint;
-
-  for (i = 1; i < elf_numsections (obfd); i++)
-    {
-      Elf_Internal_Shdr * oheader = oheaders[i];
-
-      if (oheader == NULL)
-	continue;
-      if (section_match (oheader, iheader))
-	/* FIXME: Do we care if there is a potential for
-	   multiple matches ?  */
-	return i;
-    }
-
-  return SHN_UNDEF;
-}
-
-/* PR 19938: Attempt to set the ELF section header fields of an OS or
-   Processor specific section, based upon a matching input section.
-   Returns TRUE upon success, FALSE otherwise.  */
-
-static bfd_boolean
-copy_special_section_fields (const bfd *ibfd,
-			     bfd *obfd,
-			     const Elf_Internal_Shdr *iheader,
-			     Elf_Internal_Shdr *oheader,
-			     const unsigned int secnum)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (obfd);
-  const Elf_Internal_Shdr **iheaders = (const Elf_Internal_Shdr **) elf_elfsections (ibfd);
-  bfd_boolean changed = FALSE;
-  unsigned int sh_link;
-
-  if (oheader->sh_type == SHT_NOBITS)
-    {
-      /* This is a feature for objcopy --only-keep-debug:
-	 When a section's type is changed to NOBITS, we preserve
-	 the sh_link and sh_info fields so that they can be
-	 matched up with the original.
-
-	 Note: Strictly speaking these assignments are wrong.
-	 The sh_link and sh_info fields should point to the
-	 relevent sections in the output BFD, which may not be in
-	 the same location as they were in the input BFD.  But
-	 the whole point of this action is to preserve the
-	 original values of the sh_link and sh_info fields, so
-	 that they can be matched up with the section headers in
-	 the original file.  So strictly speaking we may be
-	 creating an invalid ELF file, but it is only for a file
-	 that just contains debug info and only for sections
-	 without any contents.  */
-      if (oheader->sh_link == 0)
-	oheader->sh_link = iheader->sh_link;
-      if (oheader->sh_info == 0)
-	oheader->sh_info = iheader->sh_info;
-      return TRUE;
-    }
-
-  /* Allow the target a chance to decide how these fields should be set.  */
-  if (bed->elf_backend_copy_special_section_fields (ibfd, obfd,
-						    iheader, oheader))
-    return TRUE;
-
-  /* We have an iheader which might match oheader, and which has non-zero
-     sh_info and/or sh_link fields.  Attempt to follow those links and find
-     the section in the output bfd which corresponds to the linked section
-     in the input bfd.  */
-  if (iheader->sh_link != SHN_UNDEF)
-    {
-      /* See PR 20931 for a reproducer.  */
-      if (iheader->sh_link >= elf_numsections (ibfd))
-	{
-	  _bfd_error_handler
-	    /* xgettext:c-format */
-	    (_("%pB: invalid sh_link field (%d) in section number %d"),
-	     ibfd, iheader->sh_link, secnum);
-	  return FALSE;
-	}
-
-      sh_link = find_link (obfd, iheaders[iheader->sh_link], iheader->sh_link);
-      if (sh_link != SHN_UNDEF)
-	{
-	  oheader->sh_link = sh_link;
-	  changed = TRUE;
-	}
-      else
-	/* FIXME: Should we install iheader->sh_link
-	   if we could not find a match ?  */
-	_bfd_error_handler
-	  /* xgettext:c-format */
-	  (_("%pB: failed to find link section for section %d"), obfd, secnum);
-    }
-
-  if (iheader->sh_info)
-    {
-      /* The sh_info field can hold arbitrary information, but if the
-	 SHF_LINK_INFO flag is set then it should be interpreted as a
-	 section index.  */
-      if (iheader->sh_flags & SHF_INFO_LINK)
-	{
-	  sh_link = find_link (obfd, iheaders[iheader->sh_info],
-			       iheader->sh_info);
-	  if (sh_link != SHN_UNDEF)
-	    oheader->sh_flags |= SHF_INFO_LINK;
-	}
-      else
-	/* No idea what it means - just copy it.  */
-	sh_link = iheader->sh_info;
-
-      if (sh_link != SHN_UNDEF)
-	{
-	  oheader->sh_info = sh_link;
-	  changed = TRUE;
-	}
-      else
-	_bfd_error_handler
-	  /* xgettext:c-format */
-	  (_("%pB: failed to find info section for section %d"), obfd, secnum);
-    }
-
-  return changed;
-}
-
-/* Copy the program header and other data from one object module to
-   another.  */
-
-bfd_boolean
-_bfd_elf_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
-{
-  const Elf_Internal_Shdr **iheaders = (const Elf_Internal_Shdr **) elf_elfsections (ibfd);
-  Elf_Internal_Shdr **oheaders = elf_elfsections (obfd);
-  const struct elf_backend_data *bed;
-  unsigned int i;
-
-  if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
-    || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
-    return TRUE;
-
-  if (!elf_flags_init (obfd))
-    {
-      elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
-      elf_flags_init (obfd) = TRUE;
-    }
-
-  elf_gp (obfd) = elf_gp (ibfd);
-
-  /* Also copy the EI_OSABI field.  */
-  elf_elfheader (obfd)->e_ident[EI_OSABI] =
-    elf_elfheader (ibfd)->e_ident[EI_OSABI];
-
-  /* If set, copy the EI_ABIVERSION field.  */
-  if (elf_elfheader (ibfd)->e_ident[EI_ABIVERSION])
-    elf_elfheader (obfd)->e_ident[EI_ABIVERSION]
-      = elf_elfheader (ibfd)->e_ident[EI_ABIVERSION];
-
-  /* Copy object attributes.  */
-  _bfd_elf_copy_obj_attributes (ibfd, obfd);
-
-  if (iheaders == NULL || oheaders == NULL)
-    return TRUE;
-
-  bed = get_elf_backend_data (obfd);
-
-  /* Possibly copy other fields in the section header.  */
-  for (i = 1; i < elf_numsections (obfd); i++)
-    {
-      unsigned int j;
-      Elf_Internal_Shdr * oheader = oheaders[i];
-
-      /* Ignore ordinary sections.  SHT_NOBITS sections are considered however
-	 because of a special case need for generating separate debug info
-	 files.  See below for more details.  */
-      if (oheader == NULL
-	  || (oheader->sh_type != SHT_NOBITS
-	      && oheader->sh_type < SHT_LOOS))
-	continue;
-
-      /* Ignore empty sections, and sections whose
-	 fields have already been initialised.  */
-      if (oheader->sh_size == 0
-	  || (oheader->sh_info != 0 && oheader->sh_link != 0))
-	continue;
-
-      /* Scan for the matching section in the input bfd.
-	 First we try for a direct mapping between the input and output sections.  */
-      for (j = 1; j < elf_numsections (ibfd); j++)
-	{
-	  const Elf_Internal_Shdr * iheader = iheaders[j];
-
-	  if (iheader == NULL)
-	    continue;
-
-	  if (oheader->bfd_section != NULL
-	      && iheader->bfd_section != NULL
-	      && iheader->bfd_section->output_section != NULL
-	      && iheader->bfd_section->output_section == oheader->bfd_section)
-	    {
-	      /* We have found a connection from the input section to the
-		 output section.  Attempt to copy the header fields.  If
-		 this fails then do not try any further sections - there
-		 should only be a one-to-one mapping between input and output. */
-	      if (! copy_special_section_fields (ibfd, obfd, iheader, oheader, i))
-		j = elf_numsections (ibfd);
-	      break;
-	    }
-	}
-
-      if (j < elf_numsections (ibfd))
-	continue;
-
-      /* That failed.  So try to deduce the corresponding input section.
-	 Unfortunately we cannot compare names as the output string table
-	 is empty, so instead we check size, address and type.  */
-      for (j = 1; j < elf_numsections (ibfd); j++)
-	{
-	  const Elf_Internal_Shdr * iheader = iheaders[j];
-
-	  if (iheader == NULL)
-	    continue;
-
-	  /* Try matching fields in the input section's header.
-	     Since --only-keep-debug turns all non-debug sections into
-	     SHT_NOBITS sections, the output SHT_NOBITS type matches any
-	     input type.  */
-	  if ((oheader->sh_type == SHT_NOBITS
-	       || iheader->sh_type == oheader->sh_type)
-	      && (iheader->sh_flags & ~ SHF_INFO_LINK)
-	      == (oheader->sh_flags & ~ SHF_INFO_LINK)
-	      && iheader->sh_addralign == oheader->sh_addralign
-	      && iheader->sh_entsize == oheader->sh_entsize
-	      && iheader->sh_size == oheader->sh_size
-	      && iheader->sh_addr == oheader->sh_addr
-	      && (iheader->sh_info != oheader->sh_info
-		  || iheader->sh_link != oheader->sh_link))
-	    {
-	      if (copy_special_section_fields (ibfd, obfd, iheader, oheader, i))
-		break;
-	    }
-	}
-
-      if (j == elf_numsections (ibfd) && oheader->sh_type >= SHT_LOOS)
-	{
-	  /* Final attempt.  Call the backend copy function
-	     with a NULL input section.  */
-	  (void) bed->elf_backend_copy_special_section_fields (ibfd, obfd,
-							       NULL, oheader);
-	}
-    }
-
-  /* If the input BFD has the OSABI field set and the
-     output BFD does not, then copy the value.  */
-  if (elf_elfheader (ibfd)->e_ident [EI_OSABI] != ELFOSABI_NONE
-      && elf_elfheader (obfd)->e_ident [EI_OSABI] == ELFOSABI_NONE)
-    elf_elfheader (obfd)->e_ident [EI_OSABI] =
-      elf_elfheader (ibfd)->e_ident [EI_OSABI];
-
-  return TRUE;
-}
-
-static const char *
-get_segment_type (unsigned int p_type)
-{
-  const char *pt;
-  switch (p_type)
-    {
-    case PT_NULL: pt = "NULL"; break;
-    case PT_LOAD: pt = "LOAD"; break;
-    case PT_DYNAMIC: pt = "DYNAMIC"; break;
-    case PT_INTERP: pt = "INTERP"; break;
-    case PT_NOTE: pt = "NOTE"; break;
-    case PT_SHLIB: pt = "SHLIB"; break;
-    case PT_PHDR: pt = "PHDR"; break;
-    case PT_TLS: pt = "TLS"; break;
-    case PT_GNU_EH_FRAME: pt = "EH_FRAME"; break;
-    case PT_GNU_STACK: pt = "STACK"; break;
-    case PT_GNU_RELRO: pt = "RELRO"; break;
-    default: pt = NULL; break;
-    }
-  return pt;
-}
-
-/* Print out the program headers.  */
-
-bfd_boolean
-_bfd_elf_print_private_bfd_data (bfd *abfd, void *farg)
-{
-  FILE *f = (FILE *) farg;
-  Elf_Internal_Phdr *p;
-  asection *s;
-  bfd_byte *dynbuf = NULL;
-
-  p = elf_tdata (abfd)->phdr;
-  if (p != NULL)
-    {
-      unsigned int i, c;
-
-      fprintf (f, _("\nProgram Header:\n"));
-      c = elf_elfheader (abfd)->e_phnum;
-      for (i = 0; i < c; i++, p++)
-	{
-	  const char *pt = get_segment_type (p->p_type);
-	  char buf[20];
-
-	  if (pt == NULL)
-	    {
-	      sprintf (buf, "0x%lx", p->p_type);
-	      pt = buf;
-	    }
-	  fprintf (f, "%8s off    0x", pt);
-	  bfd_fprintf_vma (abfd, f, p->p_offset);
-	  fprintf (f, " vaddr 0x");
-	  bfd_fprintf_vma (abfd, f, p->p_vaddr);
-	  fprintf (f, " paddr 0x");
-	  bfd_fprintf_vma (abfd, f, p->p_paddr);
-	  fprintf (f, " align 2**%u\n", bfd_log2 (p->p_align));
-	  fprintf (f, "         filesz 0x");
-	  bfd_fprintf_vma (abfd, f, p->p_filesz);
-	  fprintf (f, " memsz 0x");
-	  bfd_fprintf_vma (abfd, f, p->p_memsz);
-	  fprintf (f, " flags %c%c%c",
-		   (p->p_flags & PF_R) != 0 ? 'r' : '-',
-		   (p->p_flags & PF_W) != 0 ? 'w' : '-',
-		   (p->p_flags & PF_X) != 0 ? 'x' : '-');
-	  if ((p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X)) != 0)
-	    fprintf (f, " %lx", p->p_flags &~ (unsigned) (PF_R | PF_W | PF_X));
-	  fprintf (f, "\n");
-	}
-    }
-
-  s = bfd_get_section_by_name (abfd, ".dynamic");
-  if (s != NULL)
-    {
-      unsigned int elfsec;
-      unsigned long shlink;
-      bfd_byte *extdyn, *extdynend;
-      size_t extdynsize;
-      void (*swap_dyn_in) (bfd *, const void *, Elf_Internal_Dyn *);
-
-      fprintf (f, _("\nDynamic Section:\n"));
-
-      if (!bfd_malloc_and_get_section (abfd, s, &dynbuf))
-	goto error_return;
-
-      elfsec = _bfd_elf_section_from_bfd_section (abfd, s);
-      if (elfsec == SHN_BAD)
-	goto error_return;
-      shlink = elf_elfsections (abfd)[elfsec]->sh_link;
-
-      extdynsize = get_elf_backend_data (abfd)->s->sizeof_dyn;
-      swap_dyn_in = get_elf_backend_data (abfd)->s->swap_dyn_in;
-
-      extdyn = dynbuf;
-      /* PR 17512: file: 6f427532.  */
-      if (s->size < extdynsize)
-	goto error_return;
-      extdynend = extdyn + s->size;
-      /* PR 17512: file: id:000006,sig:06,src:000000,op:flip4,pos:5664.
-	 Fix range check.  */
-      for (; extdyn <= (extdynend - extdynsize); extdyn += extdynsize)
-	{
-	  Elf_Internal_Dyn dyn;
-	  const char *name = "";
-	  char ab[20];
-	  bfd_boolean stringp;
-	  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-
-	  (*swap_dyn_in) (abfd, extdyn, &dyn);
-
-	  if (dyn.d_tag == DT_NULL)
-	    break;
-
-	  stringp = FALSE;
-	  switch (dyn.d_tag)
-	    {
-	    default:
-	      if (bed->elf_backend_get_target_dtag)
-		name = (*bed->elf_backend_get_target_dtag) (dyn.d_tag);
-
-	      if (!strcmp (name, ""))
-		{
-		  sprintf (ab, "%#" BFD_VMA_FMT "x", dyn.d_tag);
-		  name = ab;
-		}
-	      break;
-
-	    case DT_NEEDED: name = "NEEDED"; stringp = TRUE; break;
-	    case DT_PLTRELSZ: name = "PLTRELSZ"; break;
-	    case DT_PLTGOT: name = "PLTGOT"; break;
-	    case DT_HASH: name = "HASH"; break;
-	    case DT_STRTAB: name = "STRTAB"; break;
-	    case DT_SYMTAB: name = "SYMTAB"; break;
-	    case DT_RELA: name = "RELA"; break;
-	    case DT_RELASZ: name = "RELASZ"; break;
-	    case DT_RELAENT: name = "RELAENT"; break;
-	    case DT_STRSZ: name = "STRSZ"; break;
-	    case DT_SYMENT: name = "SYMENT"; break;
-	    case DT_INIT: name = "INIT"; break;
-	    case DT_FINI: name = "FINI"; break;
-	    case DT_SONAME: name = "SONAME"; stringp = TRUE; break;
-	    case DT_RPATH: name = "RPATH"; stringp = TRUE; break;
-	    case DT_SYMBOLIC: name = "SYMBOLIC"; break;
-	    case DT_REL: name = "REL"; break;
-	    case DT_RELSZ: name = "RELSZ"; break;
-	    case DT_RELENT: name = "RELENT"; break;
-	    case DT_PLTREL: name = "PLTREL"; break;
-	    case DT_DEBUG: name = "DEBUG"; break;
-	    case DT_TEXTREL: name = "TEXTREL"; break;
-	    case DT_JMPREL: name = "JMPREL"; break;
-	    case DT_BIND_NOW: name = "BIND_NOW"; break;
-	    case DT_INIT_ARRAY: name = "INIT_ARRAY"; break;
-	    case DT_FINI_ARRAY: name = "FINI_ARRAY"; break;
-	    case DT_INIT_ARRAYSZ: name = "INIT_ARRAYSZ"; break;
-	    case DT_FINI_ARRAYSZ: name = "FINI_ARRAYSZ"; break;
-	    case DT_RUNPATH: name = "RUNPATH"; stringp = TRUE; break;
-	    case DT_FLAGS: name = "FLAGS"; break;
-	    case DT_PREINIT_ARRAY: name = "PREINIT_ARRAY"; break;
-	    case DT_PREINIT_ARRAYSZ: name = "PREINIT_ARRAYSZ"; break;
-	    case DT_CHECKSUM: name = "CHECKSUM"; break;
-	    case DT_PLTPADSZ: name = "PLTPADSZ"; break;
-	    case DT_MOVEENT: name = "MOVEENT"; break;
-	    case DT_MOVESZ: name = "MOVESZ"; break;
-	    case DT_FEATURE: name = "FEATURE"; break;
-	    case DT_POSFLAG_1: name = "POSFLAG_1"; break;
-	    case DT_SYMINSZ: name = "SYMINSZ"; break;
-	    case DT_SYMINENT: name = "SYMINENT"; break;
-	    case DT_CONFIG: name = "CONFIG"; stringp = TRUE; break;
-	    case DT_DEPAUDIT: name = "DEPAUDIT"; stringp = TRUE; break;
-	    case DT_AUDIT: name = "AUDIT"; stringp = TRUE; break;
-	    case DT_PLTPAD: name = "PLTPAD"; break;
-	    case DT_MOVETAB: name = "MOVETAB"; break;
-	    case DT_SYMINFO: name = "SYMINFO"; break;
-	    case DT_RELACOUNT: name = "RELACOUNT"; break;
-	    case DT_RELCOUNT: name = "RELCOUNT"; break;
-	    case DT_FLAGS_1: name = "FLAGS_1"; break;
-	    case DT_VERSYM: name = "VERSYM"; break;
-	    case DT_VERDEF: name = "VERDEF"; break;
-	    case DT_VERDEFNUM: name = "VERDEFNUM"; break;
-	    case DT_VERNEED: name = "VERNEED"; break;
-	    case DT_VERNEEDNUM: name = "VERNEEDNUM"; break;
-	    case DT_AUXILIARY: name = "AUXILIARY"; stringp = TRUE; break;
-	    case DT_USED: name = "USED"; break;
-	    case DT_FILTER: name = "FILTER"; stringp = TRUE; break;
-	    case DT_GNU_HASH: name = "GNU_HASH"; break;
-	    }
-
-	  fprintf (f, "  %-20s ", name);
-	  if (! stringp)
-	    {
-	      fprintf (f, "0x");
-	      bfd_fprintf_vma (abfd, f, dyn.d_un.d_val);
-	    }
-	  else
-	    {
-	      const char *string;
-	      unsigned int tagv = dyn.d_un.d_val;
-
-	      string = bfd_elf_string_from_elf_section (abfd, shlink, tagv);
-	      if (string == NULL)
-		goto error_return;
-	      fprintf (f, "%s", string);
-	    }
-	  fprintf (f, "\n");
-	}
-
-      free (dynbuf);
-      dynbuf = NULL;
-    }
-
-  if ((elf_dynverdef (abfd) != 0 && elf_tdata (abfd)->verdef == NULL)
-      || (elf_dynverref (abfd) != 0 && elf_tdata (abfd)->verref == NULL))
-    {
-      if (! _bfd_elf_slurp_version_tables (abfd, FALSE))
-	return FALSE;
-    }
-
-  if (elf_dynverdef (abfd) != 0)
-    {
-      Elf_Internal_Verdef *t;
-
-      fprintf (f, _("\nVersion definitions:\n"));
-      for (t = elf_tdata (abfd)->verdef; t != NULL; t = t->vd_nextdef)
-	{
-	  fprintf (f, "%d 0x%2.2x 0x%8.8lx %s\n", t->vd_ndx,
-		   t->vd_flags, t->vd_hash,
-		   t->vd_nodename ? t->vd_nodename : "<corrupt>");
-	  if (t->vd_auxptr != NULL && t->vd_auxptr->vda_nextptr != NULL)
-	    {
-	      Elf_Internal_Verdaux *a;
-
-	      fprintf (f, "\t");
-	      for (a = t->vd_auxptr->vda_nextptr;
-		   a != NULL;
-		   a = a->vda_nextptr)
-		fprintf (f, "%s ",
-			 a->vda_nodename ? a->vda_nodename : "<corrupt>");
-	      fprintf (f, "\n");
-	    }
-	}
-    }
-
-  if (elf_dynverref (abfd) != 0)
-    {
-      Elf_Internal_Verneed *t;
-
-      fprintf (f, _("\nVersion References:\n"));
-      for (t = elf_tdata (abfd)->verref; t != NULL; t = t->vn_nextref)
-	{
-	  Elf_Internal_Vernaux *a;
-
-	  fprintf (f, _("  required from %s:\n"),
-		   t->vn_filename ? t->vn_filename : "<corrupt>");
-	  for (a = t->vn_auxptr; a != NULL; a = a->vna_nextptr)
-	    fprintf (f, "    0x%8.8lx 0x%2.2x %2.2d %s\n", a->vna_hash,
-		     a->vna_flags, a->vna_other,
-		     a->vna_nodename ? a->vna_nodename : "<corrupt>");
-	}
-    }
-
-  return TRUE;
-
- error_return:
-  free (dynbuf);
-  return FALSE;
-}
-
-/* Get version name.  If BASE_P is TRUE, return "Base" for VER_FLG_BASE
-   and return symbol version for symbol version itself.   */
-
-const char *
-_bfd_elf_get_symbol_version_string (bfd *abfd, asymbol *symbol,
-				    bfd_boolean base_p,
-				    bfd_boolean *hidden)
-{
-  const char *version_string = NULL;
-  if (elf_dynversym (abfd) != 0
-      && (elf_dynverdef (abfd) != 0 || elf_dynverref (abfd) != 0))
-    {
-      unsigned int vernum = ((elf_symbol_type *) symbol)->version;
-
-      *hidden = (vernum & VERSYM_HIDDEN) != 0;
-      vernum &= VERSYM_VERSION;
-
-      if (vernum == 0)
-	version_string = "";
-      else if (vernum == 1
-	       && (vernum > elf_tdata (abfd)->cverdefs
-		   || (elf_tdata (abfd)->verdef[0].vd_flags
-		       == VER_FLG_BASE)))
-	version_string = base_p ? "Base" : "";
-      else if (vernum <= elf_tdata (abfd)->cverdefs)
-	{
-	  const char *nodename
-	    = elf_tdata (abfd)->verdef[vernum - 1].vd_nodename;
-	  version_string = "";
-	  if (base_p
-	      || nodename == NULL
-	      || symbol->name == NULL
-	      || strcmp (symbol->name, nodename) != 0)
-	    version_string = nodename;
-	}
-      else
-	{
-	  Elf_Internal_Verneed *t;
-
-	  version_string = _("<corrupt>");
-	  for (t = elf_tdata (abfd)->verref;
-	       t != NULL;
-	       t = t->vn_nextref)
-	    {
-	      Elf_Internal_Vernaux *a;
-
-	      for (a = t->vn_auxptr; a != NULL; a = a->vna_nextptr)
-		{
-		  if (a->vna_other == vernum)
-		    {
-		      version_string = a->vna_nodename;
-		      break;
-		    }
-		}
-	    }
-	}
-    }
-  return version_string;
-}
-
-/* Display ELF-specific fields of a symbol.  */
-
-void
-bfd_elf_print_symbol (bfd *abfd,
-		      void *filep,
-		      asymbol *symbol,
-		      bfd_print_symbol_type how)
-{
-  FILE *file = (FILE *) filep;
-  switch (how)
-    {
-    case bfd_print_symbol_name:
-      fprintf (file, "%s", symbol->name);
-      break;
-    case bfd_print_symbol_more:
-      fprintf (file, "elf ");
-      bfd_fprintf_vma (abfd, file, symbol->value);
-      fprintf (file, " %x", symbol->flags);
-      break;
-    case bfd_print_symbol_all:
-      {
-	const char *section_name;
-	const char *name = NULL;
-	const struct elf_backend_data *bed;
-	unsigned char st_other;
-	bfd_vma val;
-	const char *version_string;
-	bfd_boolean hidden;
-
-	section_name = symbol->section ? symbol->section->name : "(*none*)";
-
-	bed = get_elf_backend_data (abfd);
-	if (bed->elf_backend_print_symbol_all)
-	  name = (*bed->elf_backend_print_symbol_all) (abfd, filep, symbol);
-
-	if (name == NULL)
-	  {
-	    name = symbol->name;
-	    bfd_print_symbol_vandf (abfd, file, symbol);
-	  }
-
-	fprintf (file, " %s\t", section_name);
-	/* Print the "other" value for a symbol.  For common symbols,
-	   we've already printed the size; now print the alignment.
-	   For other symbols, we have no specified alignment, and
-	   we've printed the address; now print the size.  */
-	if (symbol->section && bfd_is_com_section (symbol->section))
-	  val = ((elf_symbol_type *) symbol)->internal_elf_sym.st_value;
-	else
-	  val = ((elf_symbol_type *) symbol)->internal_elf_sym.st_size;
-	bfd_fprintf_vma (abfd, file, val);
-
-	/* If we have version information, print it.  */
-	version_string = _bfd_elf_get_symbol_version_string (abfd,
-							     symbol,
-							     TRUE,
-							     &hidden);
-	if (version_string)
-	  {
-	    if (!hidden)
-	      fprintf (file, "  %-11s", version_string);
-	    else
-	      {
-		int i;
-
-		fprintf (file, " (%s)", version_string);
-		for (i = 10 - strlen (version_string); i > 0; --i)
-		  putc (' ', file);
-	      }
-	  }
-
-	/* If the st_other field is not zero, print it.  */
-	st_other = ((elf_symbol_type *) symbol)->internal_elf_sym.st_other;
-
-	switch (st_other)
-	  {
-	  case 0: break;
-	  case STV_INTERNAL:  fprintf (file, " .internal");  break;
-	  case STV_HIDDEN:    fprintf (file, " .hidden");    break;
-	  case STV_PROTECTED: fprintf (file, " .protected"); break;
-	  default:
-	    /* Some other non-defined flags are also present, so print
-	       everything hex.  */
-	    fprintf (file, " 0x%02x", (unsigned int) st_other);
-	  }
-
-	fprintf (file, " %s", name);
-      }
-      break;
-    }
-}
-
-/* ELF .o/exec file reading */
-
-/* Create a new bfd section from an ELF section header.  */
-
-bfd_boolean
-bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
-{
-  Elf_Internal_Shdr *hdr;
-  Elf_Internal_Ehdr *ehdr;
-  const struct elf_backend_data *bed;
-  const char *name;
-  bfd_boolean ret = TRUE;
-
-  if (shindex >= elf_numsections (abfd))
-    return FALSE;
-
-  /* PR17512: A corrupt ELF binary might contain a loop of sections via
-     sh_link or sh_info.  Detect this here, by refusing to load a
-     section that we are already in the process of loading.  */
-  if (elf_tdata (abfd)->being_created[shindex])
-    {
-      _bfd_error_handler
-	(_("%pB: warning: loop in section dependencies detected"), abfd);
-      return FALSE;
-    }
-  elf_tdata (abfd)->being_created[shindex] = TRUE;
-
-  hdr = elf_elfsections (abfd)[shindex];
-  ehdr = elf_elfheader (abfd);
-  name = bfd_elf_string_from_elf_section (abfd, ehdr->e_shstrndx,
-					  hdr->sh_name);
-  if (name == NULL)
-    goto fail;
-
-  bed = get_elf_backend_data (abfd);
-  switch (hdr->sh_type)
-    {
-    case SHT_NULL:
-      /* Inactive section. Throw it away.  */
-      goto success;
-
-    case SHT_PROGBITS:		/* Normal section with contents.  */
-    case SHT_NOBITS:		/* .bss section.  */
-    case SHT_HASH:		/* .hash section.  */
-    case SHT_NOTE:		/* .note section.  */
-    case SHT_INIT_ARRAY:	/* .init_array section.  */
-    case SHT_FINI_ARRAY:	/* .fini_array section.  */
-    case SHT_PREINIT_ARRAY:	/* .preinit_array section.  */
-    case SHT_GNU_LIBLIST:	/* .gnu.liblist section.  */
-    case SHT_GNU_HASH:		/* .gnu.hash section.  */
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_DYNAMIC:	/* Dynamic linking information.  */
-      if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
-	goto fail;
-
-      if (hdr->sh_link > elf_numsections (abfd))
-	{
-	  /* PR 10478: Accept Solaris binaries with a sh_link
-	     field set to SHN_BEFORE or SHN_AFTER.  */
-	  switch (bfd_get_arch (abfd))
-	    {
-	    case bfd_arch_i386:
-	    case bfd_arch_sparc:
-	      if (hdr->sh_link == (SHN_LORESERVE & 0xffff) /* SHN_BEFORE */
-		  || hdr->sh_link == ((SHN_LORESERVE + 1) & 0xffff) /* SHN_AFTER */)
-		break;
-	      /* Otherwise fall through.  */
-	    default:
-	      goto fail;
-	    }
-	}
-      else if (elf_elfsections (abfd)[hdr->sh_link] == NULL)
-	goto fail;
-      else if (elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_STRTAB)
-	{
-	  Elf_Internal_Shdr *dynsymhdr;
-
-	  /* The shared libraries distributed with hpux11 have a bogus
-	     sh_link field for the ".dynamic" section.  Find the
-	     string table for the ".dynsym" section instead.  */
-	  if (elf_dynsymtab (abfd) != 0)
-	    {
-	      dynsymhdr = elf_elfsections (abfd)[elf_dynsymtab (abfd)];
-	      hdr->sh_link = dynsymhdr->sh_link;
-	    }
-	  else
-	    {
-	      unsigned int i, num_sec;
-
-	      num_sec = elf_numsections (abfd);
-	      for (i = 1; i < num_sec; i++)
-		{
-		  dynsymhdr = elf_elfsections (abfd)[i];
-		  if (dynsymhdr->sh_type == SHT_DYNSYM)
-		    {
-		      hdr->sh_link = dynsymhdr->sh_link;
-		      break;
-		    }
-		}
-	    }
-	}
-      goto success;
-
-    case SHT_SYMTAB:		/* A symbol table.  */
-      if (elf_onesymtab (abfd) == shindex)
-	goto success;
-
-      if (hdr->sh_entsize != bed->s->sizeof_sym)
-	goto fail;
-
-      if (hdr->sh_info * hdr->sh_entsize > hdr->sh_size)
-	{
-	  if (hdr->sh_size != 0)
-	    goto fail;
-	  /* Some assemblers erroneously set sh_info to one with a
-	     zero sh_size.  ld sees this as a global symbol count
-	     of (unsigned) -1.  Fix it here.  */
-	  hdr->sh_info = 0;
-	  goto success;
-	}
-
-      /* PR 18854: A binary might contain more than one symbol table.
-	 Unusual, but possible.  Warn, but continue.  */
-      if (elf_onesymtab (abfd) != 0)
-	{
-	  _bfd_error_handler
-	    /* xgettext:c-format */
-	    (_("%pB: warning: multiple symbol tables detected"
-	       " - ignoring the table in section %u"),
-	     abfd, shindex);
-	  goto success;
-	}
-      elf_onesymtab (abfd) = shindex;
-      elf_symtab_hdr (abfd) = *hdr;
-      elf_elfsections (abfd)[shindex] = hdr = & elf_symtab_hdr (abfd);
-      abfd->flags |= HAS_SYMS;
-
-      /* Sometimes a shared object will map in the symbol table.  If
-	 SHF_ALLOC is set, and this is a shared object, then we also
-	 treat this section as a BFD section.  We can not base the
-	 decision purely on SHF_ALLOC, because that flag is sometimes
-	 set in a relocatable object file, which would confuse the
-	 linker.  */
-      if ((hdr->sh_flags & SHF_ALLOC) != 0
-	  && (abfd->flags & DYNAMIC) != 0
-	  && ! _bfd_elf_make_section_from_shdr (abfd, hdr, name,
-						shindex))
-	goto fail;
-
-      /* Go looking for SHT_SYMTAB_SHNDX too, since if there is one we
-	 can't read symbols without that section loaded as well.  It
-	 is most likely specified by the next section header.  */
-      {
-	elf_section_list * entry;
-	unsigned int i, num_sec;
-
-	for (entry = elf_symtab_shndx_list (abfd); entry != NULL; entry = entry->next)
-	  if (entry->hdr.sh_link == shindex)
-	    goto success;
-
-	num_sec = elf_numsections (abfd);
-	for (i = shindex + 1; i < num_sec; i++)
-	  {
-	    Elf_Internal_Shdr *hdr2 = elf_elfsections (abfd)[i];
-
-	    if (hdr2->sh_type == SHT_SYMTAB_SHNDX
-		&& hdr2->sh_link == shindex)
-	      break;
-	  }
-
-	if (i == num_sec)
-	  for (i = 1; i < shindex; i++)
-	    {
-	      Elf_Internal_Shdr *hdr2 = elf_elfsections (abfd)[i];
-
-	      if (hdr2->sh_type == SHT_SYMTAB_SHNDX
-		  && hdr2->sh_link == shindex)
-		break;
-	    }
-
-	if (i != shindex)
-	  ret = bfd_section_from_shdr (abfd, i);
-	/* else FIXME: we have failed to find the symbol table - should we issue an error ? */
-	goto success;
-      }
-
-    case SHT_DYNSYM:		/* A dynamic symbol table.  */
-      if (elf_dynsymtab (abfd) == shindex)
-	goto success;
-
-      if (hdr->sh_entsize != bed->s->sizeof_sym)
-	goto fail;
-
-      if (hdr->sh_info * hdr->sh_entsize > hdr->sh_size)
-	{
-	  if (hdr->sh_size != 0)
-	    goto fail;
-
-	  /* Some linkers erroneously set sh_info to one with a
-	     zero sh_size.  ld sees this as a global symbol count
-	     of (unsigned) -1.  Fix it here.  */
-	  hdr->sh_info = 0;
-	  goto success;
-	}
-
-      /* PR 18854: A binary might contain more than one dynamic symbol table.
-	 Unusual, but possible.  Warn, but continue.  */
-      if (elf_dynsymtab (abfd) != 0)
-	{
-	  _bfd_error_handler
-	    /* xgettext:c-format */
-	    (_("%pB: warning: multiple dynamic symbol tables detected"
-	       " - ignoring the table in section %u"),
-	     abfd, shindex);
-	  goto success;
-	}
-      elf_dynsymtab (abfd) = shindex;
-      elf_tdata (abfd)->dynsymtab_hdr = *hdr;
-      elf_elfsections (abfd)[shindex] = hdr = &elf_tdata (abfd)->dynsymtab_hdr;
-      abfd->flags |= HAS_SYMS;
-
-      /* Besides being a symbol table, we also treat this as a regular
-	 section, so that objcopy can handle it.  */
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_SYMTAB_SHNDX:	/* Symbol section indices when >64k sections.  */
-      {
-	elf_section_list * entry;
-
-	for (entry = elf_symtab_shndx_list (abfd); entry != NULL; entry = entry->next)
-	  if (entry->ndx == shindex)
-	    goto success;
-
-	entry = bfd_alloc (abfd, sizeof (*entry));
-	if (entry == NULL)
-	  goto fail;
-	entry->ndx = shindex;
-	entry->hdr = * hdr;
-	entry->next = elf_symtab_shndx_list (abfd);
-	elf_symtab_shndx_list (abfd) = entry;
-	elf_elfsections (abfd)[shindex] = & entry->hdr;
-	goto success;
-      }
-
-    case SHT_STRTAB:		/* A string table.  */
-      if (hdr->bfd_section != NULL)
-	goto success;
-
-      if (ehdr->e_shstrndx == shindex)
-	{
-	  elf_tdata (abfd)->shstrtab_hdr = *hdr;
-	  elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;
-	  goto success;
-	}
-
-      if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)
-	{
-	symtab_strtab:
-	  elf_tdata (abfd)->strtab_hdr = *hdr;
-	  elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;
-	  goto success;
-	}
-
-      if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)
-	{
-	dynsymtab_strtab:
-	  elf_tdata (abfd)->dynstrtab_hdr = *hdr;
-	  hdr = &elf_tdata (abfd)->dynstrtab_hdr;
-	  elf_elfsections (abfd)[shindex] = hdr;
-	  /* We also treat this as a regular section, so that objcopy
-	     can handle it.  */
-	  ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,
-						 shindex);
-	  goto success;
-	}
-
-      /* If the string table isn't one of the above, then treat it as a
-	 regular section.  We need to scan all the headers to be sure,
-	 just in case this strtab section appeared before the above.  */
-      if (elf_onesymtab (abfd) == 0 || elf_dynsymtab (abfd) == 0)
-	{
-	  unsigned int i, num_sec;
-
-	  num_sec = elf_numsections (abfd);
-	  for (i = 1; i < num_sec; i++)
-	    {
-	      Elf_Internal_Shdr *hdr2 = elf_elfsections (abfd)[i];
-	      if (hdr2->sh_link == shindex)
-		{
-		  /* Prevent endless recursion on broken objects.  */
-		  if (i == shindex)
-		    goto fail;
-		  if (! bfd_section_from_shdr (abfd, i))
-		    goto fail;
-		  if (elf_onesymtab (abfd) == i)
-		    goto symtab_strtab;
-		  if (elf_dynsymtab (abfd) == i)
-		    goto dynsymtab_strtab;
-		}
-	    }
-	}
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_REL:
-    case SHT_RELA:
-      /* *These* do a lot of work -- but build no sections!  */
-      {
-	asection *target_sect;
-	Elf_Internal_Shdr *hdr2, **p_hdr;
-	unsigned int num_sec = elf_numsections (abfd);
-	struct bfd_elf_section_data *esdt;
-
-	if (hdr->sh_entsize
-	    != (bfd_size_type) (hdr->sh_type == SHT_REL
-				? bed->s->sizeof_rel : bed->s->sizeof_rela))
-	  goto fail;
-
-	/* Check for a bogus link to avoid crashing.  */
-	if (hdr->sh_link >= num_sec)
-	  {
-	    _bfd_error_handler
-	      /* xgettext:c-format */
-	      (_("%pB: invalid link %u for reloc section %s (index %u)"),
-	       abfd, hdr->sh_link, name, shindex);
-	    ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,
-						   shindex);
-	    goto success;
-	  }
-
-	/* For some incomprehensible reason Oracle distributes
-	   libraries for Solaris in which some of the objects have
-	   bogus sh_link fields.  It would be nice if we could just
-	   reject them, but, unfortunately, some people need to use
-	   them.  We scan through the section headers; if we find only
-	   one suitable symbol table, we clobber the sh_link to point
-	   to it.  I hope this doesn't break anything.
-
-	   Don't do it on executable nor shared library.  */
-	if ((abfd->flags & (DYNAMIC | EXEC_P)) == 0
-	    && elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_SYMTAB
-	    && elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_DYNSYM)
-	  {
-	    unsigned int scan;
-	    int found;
-
-	    found = 0;
-	    for (scan = 1; scan < num_sec; scan++)
-	      {
-		if (elf_elfsections (abfd)[scan]->sh_type == SHT_SYMTAB
-		    || elf_elfsections (abfd)[scan]->sh_type == SHT_DYNSYM)
-		  {
-		    if (found != 0)
-		      {
-			found = 0;
-			break;
-		      }
-		    found = scan;
-		  }
-	      }
-	    if (found != 0)
-	      hdr->sh_link = found;
-	  }
-
-	/* Get the symbol table.  */
-	if ((elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_SYMTAB
-	     || elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_DYNSYM)
-	    && ! bfd_section_from_shdr (abfd, hdr->sh_link))
-	  goto fail;
-
-	/* If this is an alloc section in an executable or shared
-	   library, or the reloc section does not use the main symbol
-	   table we don't treat it as a reloc section.  BFD can't
-	   adequately represent such a section, so at least for now,
-	   we don't try.  We just present it as a normal section.  We
-	   also can't use it as a reloc section if it points to the
-	   null section, an invalid section, another reloc section, or
-	   its sh_link points to the null section.  */
-	if (((abfd->flags & (DYNAMIC | EXEC_P)) != 0
-	     && (hdr->sh_flags & SHF_ALLOC) != 0)
-	    || hdr->sh_link == SHN_UNDEF
-	    || hdr->sh_link != elf_onesymtab (abfd)
-	    || hdr->sh_info == SHN_UNDEF
-	    || hdr->sh_info >= num_sec
-	    || elf_elfsections (abfd)[hdr->sh_info]->sh_type == SHT_REL
-	    || elf_elfsections (abfd)[hdr->sh_info]->sh_type == SHT_RELA)
-	  {
-	    ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,
-						   shindex);
-	    goto success;
-	  }
-
-	if (! bfd_section_from_shdr (abfd, hdr->sh_info))
-	  goto fail;
-
-	target_sect = bfd_section_from_elf_index (abfd, hdr->sh_info);
-	if (target_sect == NULL)
-	  goto fail;
-
-	esdt = elf_section_data (target_sect);
-	if (hdr->sh_type == SHT_RELA)
-	  p_hdr = &esdt->rela.hdr;
-	else
-	  p_hdr = &esdt->rel.hdr;
-
-	/* PR 17512: file: 0b4f81b7.
-	   Also see PR 24456, for a file which deliberately has two reloc
-	   sections.  */
-	if (*p_hdr != NULL)
-	  {
-	    if (!bed->init_secondary_reloc_section (abfd, hdr, name, shindex))
-	      {
-		_bfd_error_handler
-		  /* xgettext:c-format */
-		  (_("%pB: warning: secondary relocation section '%s' "
-		     "for section %pA found - ignoring"),
-		   abfd, name, target_sect);
-	      }
-	    goto success;
-	  }
-
-	hdr2 = (Elf_Internal_Shdr *) bfd_alloc (abfd, sizeof (*hdr2));
-	if (hdr2 == NULL)
-	  goto fail;
-	*hdr2 = *hdr;
-	*p_hdr = hdr2;
-	elf_elfsections (abfd)[shindex] = hdr2;
-	target_sect->reloc_count += (NUM_SHDR_ENTRIES (hdr)
-				     * bed->s->int_rels_per_ext_rel);
-	target_sect->flags |= SEC_RELOC;
-	target_sect->relocation = NULL;
-	target_sect->rel_filepos = hdr->sh_offset;
-	/* In the section to which the relocations apply, mark whether
-	   its relocations are of the REL or RELA variety.  */
-	if (hdr->sh_size != 0)
-	  {
-	    if (hdr->sh_type == SHT_RELA)
-	      target_sect->use_rela_p = 1;
-	  }
-	abfd->flags |= HAS_RELOC;
-	goto success;
-      }
-
-    case SHT_GNU_verdef:
-      elf_dynverdef (abfd) = shindex;
-      elf_tdata (abfd)->dynverdef_hdr = *hdr;
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_GNU_versym:
-      if (hdr->sh_entsize != sizeof (Elf_External_Versym))
-	goto fail;
-
-      elf_dynversym (abfd) = shindex;
-      elf_tdata (abfd)->dynversym_hdr = *hdr;
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_GNU_verneed:
-      elf_dynverref (abfd) = shindex;
-      elf_tdata (abfd)->dynverref_hdr = *hdr;
-      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-      goto success;
-
-    case SHT_SHLIB:
-      goto success;
-
-    case SHT_GROUP:
-      if (! IS_VALID_GROUP_SECTION_HEADER (hdr, GRP_ENTRY_SIZE))
-	goto fail;
-
-      if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
-	goto fail;
-
-      goto success;
-
-    default:
-      /* Possibly an attributes section.  */
-      if (hdr->sh_type == SHT_GNU_ATTRIBUTES
-	  || hdr->sh_type == bed->obj_attrs_section_type)
-	{
-	  if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
-	    goto fail;
-	  _bfd_elf_parse_attributes (abfd, hdr);
-	  goto success;
-	}
-
-      /* Check for any processor-specific section types.  */
-      if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
-	goto success;
-
-      if (hdr->sh_type >= SHT_LOUSER && hdr->sh_type <= SHT_HIUSER)
-	{
-	  if ((hdr->sh_flags & SHF_ALLOC) != 0)
-	    /* FIXME: How to properly handle allocated section reserved
-	       for applications?  */
-	    _bfd_error_handler
-	      /* xgettext:c-format */
-	      (_("%pB: unknown type [%#x] section `%s'"),
-	       abfd, hdr->sh_type, name);
-	  else
-	    {
-	      /* Allow sections reserved for applications.  */
-	      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,
-						     shindex);
-	      goto success;
-	    }
-	}
-      else if (hdr->sh_type >= SHT_LOPROC
-	       && hdr->sh_type <= SHT_HIPROC)
-	/* FIXME: We should handle this section.  */
-	_bfd_error_handler
-	  /* xgettext:c-format */
-	  (_("%pB: unknown type [%#x] section `%s'"),
-	   abfd, hdr->sh_type, name);
-      else if (hdr->sh_type >= SHT_LOOS && hdr->sh_type <= SHT_HIOS)
-	{
-	  /* Unrecognised OS-specific sections.  */
-	  if ((hdr->sh_flags & SHF_OS_NONCONFORMING) != 0)
-	    /* SHF_OS_NONCONFORMING indicates that special knowledge is
-	       required to correctly process the section and the file should
-	       be rejected with an error message.  */
-	    _bfd_error_handler
-	      /* xgettext:c-format */
-	      (_("%pB: unknown type [%#x] section `%s'"),
-	       abfd, hdr->sh_type, name);
-	  else
-	    {
-	      /* Otherwise it should be processed.  */
-	      ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
-	      goto success;
-	    }
-	}
-      else
-	/* FIXME: We should handle this section.  */
-	_bfd_error_handler
-	  /* xgettext:c-format */
-	  (_("%pB: unknown type [%#x] section `%s'"),
-	   abfd, hdr->sh_type, name);
-
-      goto fail;
-    }
-
- fail:
-  ret = FALSE;
- success:
-  elf_tdata (abfd)->being_created[shindex] = FALSE;
-  return ret;
-}
-
-/* Return the local symbol specified by ABFD, R_SYMNDX.  */
-
-Elf_Internal_Sym *
-bfd_sym_from_r_symndx (struct sym_cache *cache,
-		       bfd *abfd,
-		       unsigned long r_symndx)
-{
-  unsigned int ent = r_symndx % LOCAL_SYM_CACHE_SIZE;
-
-  if (cache->abfd != abfd || cache->indx[ent] != r_symndx)
-    {
-      Elf_Internal_Shdr *symtab_hdr;
-      unsigned char esym[sizeof (Elf64_External_Sym)];
-      Elf_External_Sym_Shndx eshndx;
-
-      symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
-      if (bfd_elf_get_elf_syms (abfd, symtab_hdr, 1, r_symndx,
-				&cache->sym[ent], esym, &eshndx) == NULL)
-	return NULL;
-
-      if (cache->abfd != abfd)
-	{
-	  memset (cache->indx, -1, sizeof (cache->indx));
-	  cache->abfd = abfd;
-	}
-      cache->indx[ent] = r_symndx;
-    }
-
-  return &cache->sym[ent];
-}
-
-/* Given an ELF section number, retrieve the corresponding BFD
-   section.  */
-
-asection *
-bfd_section_from_elf_index (bfd *abfd, unsigned int sec_index)
-{
-  if (sec_index >= elf_numsections (abfd))
-    return NULL;
-  return elf_elfsections (abfd)[sec_index]->bfd_section;
-}
-
-static const struct bfd_elf_special_section special_sections_b[] =
-{
-  { STRING_COMMA_LEN (".bss"), -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
-  { NULL,		    0,	0, 0,		 0 }
-};
-
-static const struct bfd_elf_special_section special_sections_c[] =
-{
-  { STRING_COMMA_LEN (".comment"), 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".ctf"),	0, SHT_PROGBITS,    0 },
-  { NULL,			0, 0, 0,	    0 }
-};
-
-static const struct bfd_elf_special_section special_sections_d[] =
-{
-  { STRING_COMMA_LEN (".data"),		-2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".data1"),	 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
-  /* There are more DWARF sections than these, but they needn't be added here
-     unless you have to cope with broken compilers that don't emit section
-     attributes or you want to help the user writing assembler.  */
-  { STRING_COMMA_LEN (".debug"),	 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".debug_line"),	 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".debug_info"),	 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".debug_abbrev"),	 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".debug_aranges"), 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".dynamic"),	 0, SHT_DYNAMIC,  SHF_ALLOC },
-  { STRING_COMMA_LEN (".dynstr"),	 0, SHT_STRTAB,	  SHF_ALLOC },
-  { STRING_COMMA_LEN (".dynsym"),	 0, SHT_DYNSYM,	  SHF_ALLOC },
-  { NULL,		       0,	 0, 0,		  0 }
-};
-
-static const struct bfd_elf_special_section special_sections_f[] =
-{
-  { STRING_COMMA_LEN (".fini"),	       0, SHT_PROGBITS,	  SHF_ALLOC + SHF_EXECINSTR },
-  { STRING_COMMA_LEN (".fini_array"), -2, SHT_FINI_ARRAY, SHF_ALLOC + SHF_WRITE },
-  { NULL,			   0 , 0, 0,		  0 }
-};
-
-static const struct bfd_elf_special_section special_sections_g[] =
-{
-  { STRING_COMMA_LEN (".gnu.linkonce.b"), -2, SHT_NOBITS,      SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".gnu.linkonce.n"), -2, SHT_NOBITS,      SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".gnu.linkonce.p"), -2, SHT_PROGBITS,    SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".gnu.lto_"),	  -1, SHT_PROGBITS,    SHF_EXCLUDE },
-  { STRING_COMMA_LEN (".got"),		   0, SHT_PROGBITS,    SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".gnu.version"),	   0, SHT_GNU_versym,  0 },
-  { STRING_COMMA_LEN (".gnu.version_d"),   0, SHT_GNU_verdef,  0 },
-  { STRING_COMMA_LEN (".gnu.version_r"),   0, SHT_GNU_verneed, 0 },
-  { STRING_COMMA_LEN (".gnu.liblist"),	   0, SHT_GNU_LIBLIST, SHF_ALLOC },
-  { STRING_COMMA_LEN (".gnu.conflict"),	   0, SHT_RELA,	       SHF_ALLOC },
-  { STRING_COMMA_LEN (".gnu.hash"),	   0, SHT_GNU_HASH,    SHF_ALLOC },
-  { NULL,			 0,	   0, 0,	       0 }
-};
-
-static const struct bfd_elf_special_section special_sections_h[] =
-{
-  { STRING_COMMA_LEN (".hash"), 0, SHT_HASH,	 SHF_ALLOC },
-  { NULL,		     0, 0, 0,		 0 }
-};
-
-static const struct bfd_elf_special_section special_sections_i[] =
-{
-  { STRING_COMMA_LEN (".init"),	       0, SHT_PROGBITS,	  SHF_ALLOC + SHF_EXECINSTR },
-  { STRING_COMMA_LEN (".init_array"), -2, SHT_INIT_ARRAY, SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".interp"),      0, SHT_PROGBITS,	  0 },
-  { NULL,		       0,      0, 0,		  0 }
-};
-
-static const struct bfd_elf_special_section special_sections_l[] =
-{
-  { STRING_COMMA_LEN (".line"), 0, SHT_PROGBITS, 0 },
-  { NULL,		     0, 0, 0,		 0 }
-};
-
-static const struct bfd_elf_special_section special_sections_n[] =
-{
-  { STRING_COMMA_LEN (".noinit"),	 -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".note.GNU-stack"), 0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".note"),		 -1, SHT_NOTE,	   0 },
-  { NULL,		     0,		  0, 0,		   0 }
-};
-
-static const struct bfd_elf_special_section special_sections_p[] =
-{
-  { STRING_COMMA_LEN (".persistent"),	 -2, SHT_PROGBITS,	SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".preinit_array"), -2, SHT_PREINIT_ARRAY, SHF_ALLOC + SHF_WRITE },
-  { STRING_COMMA_LEN (".plt"),		  0, SHT_PROGBITS,	SHF_ALLOC + SHF_EXECINSTR },
-  { NULL,		    0,		  0, 0,			0 }
-};
-
-static const struct bfd_elf_special_section special_sections_r[] =
-{
-  { STRING_COMMA_LEN (".rodata"), -2, SHT_PROGBITS, SHF_ALLOC },
-  { STRING_COMMA_LEN (".rodata1"), 0, SHT_PROGBITS, SHF_ALLOC },
-  { STRING_COMMA_LEN (".rela"),	  -1, SHT_RELA,	    0 },
-  { STRING_COMMA_LEN (".rel"),	  -1, SHT_REL,	    0 },
-  { NULL,		    0,	   0, 0,	    0 }
-};
-
-static const struct bfd_elf_special_section special_sections_s[] =
-{
-  { STRING_COMMA_LEN (".shstrtab"), 0, SHT_STRTAB, 0 },
-  { STRING_COMMA_LEN (".strtab"),   0, SHT_STRTAB, 0 },
-  { STRING_COMMA_LEN (".symtab"),   0, SHT_SYMTAB, 0 },
-  /* See struct bfd_elf_special_section declaration for the semantics of
-     this special case where .prefix_length != strlen (.prefix).  */
-  { ".stabstr",			5,  3, SHT_STRTAB, 0 },
-  { NULL,			0,  0, 0,	   0 }
-};
-
-static const struct bfd_elf_special_section special_sections_t[] =
-{
-  { STRING_COMMA_LEN (".text"),	 -2, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
-  { STRING_COMMA_LEN (".tbss"),	 -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_TLS },
-  { STRING_COMMA_LEN (".tdata"), -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_TLS },
-  { NULL,		      0,  0, 0,		   0 }
-};
-
-static const struct bfd_elf_special_section special_sections_z[] =
-{
-  { STRING_COMMA_LEN (".zdebug_line"),	  0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".zdebug_info"),	  0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".zdebug_abbrev"),  0, SHT_PROGBITS, 0 },
-  { STRING_COMMA_LEN (".zdebug_aranges"), 0, SHT_PROGBITS, 0 },
-  { NULL,		      0,  0, 0,		   0 }
-};
-
-static const struct bfd_elf_special_section * const special_sections[] =
-{
-  special_sections_b,		/* 'b' */
-  special_sections_c,		/* 'c' */
-  special_sections_d,		/* 'd' */
-  NULL,				/* 'e' */
-  special_sections_f,		/* 'f' */
-  special_sections_g,		/* 'g' */
-  special_sections_h,		/* 'h' */
-  special_sections_i,		/* 'i' */
-  NULL,				/* 'j' */
-  NULL,				/* 'k' */
-  special_sections_l,		/* 'l' */
-  NULL,				/* 'm' */
-  special_sections_n,		/* 'n' */
-  NULL,				/* 'o' */
-  special_sections_p,		/* 'p' */
-  NULL,				/* 'q' */
-  special_sections_r,		/* 'r' */
-  special_sections_s,		/* 's' */
-  special_sections_t,		/* 't' */
-  NULL,				/* 'u' */
-  NULL,				/* 'v' */
-  NULL,				/* 'w' */
-  NULL,				/* 'x' */
-  NULL,				/* 'y' */
-  special_sections_z		/* 'z' */
-};
-
-const struct bfd_elf_special_section *
-_bfd_elf_get_special_section (const char *name,
-			      const struct bfd_elf_special_section *spec,
-			      unsigned int rela)
-{
-  int i;
-  int len;
-
-  len = strlen (name);
-
-  for (i = 0; spec[i].prefix != NULL; i++)
-    {
-      int suffix_len;
-      int prefix_len = spec[i].prefix_length;
-
-      if (len < prefix_len)
-	continue;
-      if (memcmp (name, spec[i].prefix, prefix_len) != 0)
-	continue;
-
-      suffix_len = spec[i].suffix_length;
-      if (suffix_len <= 0)
-	{
-	  if (name[prefix_len] != 0)
-	    {
-	      if (suffix_len == 0)
-		continue;
-	      if (name[prefix_len] != '.'
-		  && (suffix_len == -2
-		      || (rela && spec[i].type == SHT_REL)))
-		continue;
-	    }
-	}
-      else
-	{
-	  if (len < prefix_len + suffix_len)
-	    continue;
-	  if (memcmp (name + len - suffix_len,
-		      spec[i].prefix + prefix_len,
-		      suffix_len) != 0)
-	    continue;
-	}
-      return &spec[i];
-    }
-
-  return NULL;
-}
-
-const struct bfd_elf_special_section *
-_bfd_elf_get_sec_type_attr (bfd *abfd, asection *sec)
-{
-  int i;
-  const struct bfd_elf_special_section *spec;
-  const struct elf_backend_data *bed;
-
-  /* See if this is one of the special sections.  */
-  if (sec->name == NULL)
-    return NULL;
-
-  bed = get_elf_backend_data (abfd);
-  spec = bed->special_sections;
-  if (spec)
-    {
-      spec = _bfd_elf_get_special_section (sec->name,
-					   bed->special_sections,
-					   sec->use_rela_p);
-      if (spec != NULL)
-	return spec;
-    }
-
-  if (sec->name[0] != '.')
-    return NULL;
-
-  i = sec->name[1] - 'b';
-  if (i < 0 || i > 'z' - 'b')
-    return NULL;
-
-  spec = special_sections[i];
-
-  if (spec == NULL)
-    return NULL;
-
-  return _bfd_elf_get_special_section (sec->name, spec, sec->use_rela_p);
-}
-
-bfd_boolean
-_bfd_elf_new_section_hook (bfd *abfd, asection *sec)
-{
-  struct bfd_elf_section_data *sdata;
-  const struct elf_backend_data *bed;
-  const struct bfd_elf_special_section *ssect;
-
-  sdata = (struct bfd_elf_section_data *) sec->used_by_bfd;
-  if (sdata == NULL)
-    {
-      sdata = (struct bfd_elf_section_data *) bfd_zalloc (abfd,
-							  sizeof (*sdata));
-      if (sdata == NULL)
-	return FALSE;
-      sec->used_by_bfd = sdata;
-    }
-
-  /* Indicate whether or not this section should use RELA relocations.  */
-  bed = get_elf_backend_data (abfd);
-  sec->use_rela_p = bed->default_use_rela_p;
-
-  /* Set up ELF section type and flags for newly created sections, if
-     there is an ABI mandated section.  */
-  ssect = (*bed->get_sec_type_attr) (abfd, sec);
-  if (ssect != NULL)
-    {
-      elf_section_type (sec) = ssect->type;
-      elf_section_flags (sec) = ssect->attr;
-    }
-
-  return _bfd_generic_new_section_hook (abfd, sec);
-}
-
-/* Create a new bfd section from an ELF program header.
-
-   Since program segments have no names, we generate a synthetic name
-   of the form segment<NUM>, where NUM is generally the index in the
-   program header table.  For segments that are split (see below) we
-   generate the names segment<NUM>a and segment<NUM>b.
-
-   Note that some program segments may have a file size that is different than
-   (less than) the memory size.  All this means is that at execution the
-   system must allocate the amount of memory specified by the memory size,
-   but only initialize it with the first "file size" bytes read from the
-   file.  This would occur for example, with program segments consisting
-   of combined data+bss.
-
-   To handle the above situation, this routine generates TWO bfd sections
-   for the single program segment.  The first has the length specified by
-   the file size of the segment, and the second has the length specified
-   by the difference between the two sizes.  In effect, the segment is split
-   into its initialized and uninitialized parts.
-
- */
-
-bfd_boolean
-_bfd_elf_make_section_from_phdr (bfd *abfd,
-				 Elf_Internal_Phdr *hdr,
-				 int hdr_index,
-				 const char *type_name)
-{
-  asection *newsect;
-  char *name;
-  char namebuf[64];
-  size_t len;
-  int split;
-  unsigned int opb = bfd_octets_per_byte (abfd, NULL);
-
-  split = ((hdr->p_memsz > 0)
-	    && (hdr->p_filesz > 0)
-	    && (hdr->p_memsz > hdr->p_filesz));
-
-  if (hdr->p_filesz > 0)
-    {
-      sprintf (namebuf, "%s%d%s", type_name, hdr_index, split ? "a" : "");
-      len = strlen (namebuf) + 1;
-      name = (char *) bfd_alloc (abfd, len);
-      if (!name)
-	return FALSE;
-      memcpy (name, namebuf, len);
-      newsect = bfd_make_section (abfd, name);
-      if (newsect == NULL)
-	return FALSE;
-      newsect->vma = hdr->p_vaddr / opb;
-      newsect->lma = hdr->p_paddr / opb;
-      newsect->size = hdr->p_filesz;
-      newsect->filepos = hdr->p_offset;
-      newsect->flags |= SEC_HAS_CONTENTS;
-      newsect->alignment_power = bfd_log2 (hdr->p_align);
-      if (hdr->p_type == PT_LOAD)
-	{
-	  newsect->flags |= SEC_ALLOC;
-	  newsect->flags |= SEC_LOAD;
-	  if (hdr->p_flags & PF_X)
-	    {
-	      /* FIXME: all we known is that it has execute PERMISSION,
-		 may be data.  */
-	      newsect->flags |= SEC_CODE;
-	    }
-	}
-      if (!(hdr->p_flags & PF_W))
-	{
-	  newsect->flags |= SEC_READONLY;
-	}
-    }
-
-  if (hdr->p_memsz > hdr->p_filesz)
-    {
-      bfd_vma align;
-
-      sprintf (namebuf, "%s%d%s", type_name, hdr_index, split ? "b" : "");
-      len = strlen (namebuf) + 1;
-      name = (char *) bfd_alloc (abfd, len);
-      if (!name)
-	return FALSE;
-      memcpy (name, namebuf, len);
-      newsect = bfd_make_section (abfd, name);
-      if (newsect == NULL)
-	return FALSE;
-      newsect->vma = (hdr->p_vaddr + hdr->p_filesz) / opb;
-      newsect->lma = (hdr->p_paddr + hdr->p_filesz) / opb;
-      newsect->size = hdr->p_memsz - hdr->p_filesz;
-      newsect->filepos = hdr->p_offset + hdr->p_filesz;
-      align = newsect->vma & -newsect->vma;
-      if (align == 0 || align > hdr->p_align)
-	align = hdr->p_align;
-      newsect->alignment_power = bfd_log2 (align);
-      if (hdr->p_type == PT_LOAD)
-	{
-	  newsect->flags |= SEC_ALLOC;
-	  if (hdr->p_flags & PF_X)
-	    newsect->flags |= SEC_CODE;
-	}
-      if (!(hdr->p_flags & PF_W))
-	newsect->flags |= SEC_READONLY;
-    }
-
-  return TRUE;
-}
-
-static bfd_boolean
-_bfd_elf_core_find_build_id (bfd *templ, bfd_vma offset)
-{
-  /* The return value is ignored.  Build-ids are considered optional.  */
-  if (templ->xvec->flavour == bfd_target_elf_flavour)
-    return (*get_elf_backend_data (templ)->elf_backend_core_find_build_id)
-      (templ, offset);
-  return FALSE;
-}
-
-bfd_boolean
-bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index)
-{
-  const struct elf_backend_data *bed;
-
-  switch (hdr->p_type)
-    {
-    case PT_NULL:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "null");
-
-    case PT_LOAD:
-      if (! _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "load"))
-	return FALSE;
-      if (bfd_get_format (abfd) == bfd_core && abfd->build_id == NULL)
-	_bfd_elf_core_find_build_id (abfd, hdr->p_offset);
-      return TRUE;
-
-    case PT_DYNAMIC:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "dynamic");
-
-    case PT_INTERP:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "interp");
-
-    case PT_NOTE:
-      if (! _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "note"))
-	return FALSE;
-      if (! elf_read_notes (abfd, hdr->p_offset, hdr->p_filesz,
-			    hdr->p_align))
-	return FALSE;
-      return TRUE;
-
-    case PT_SHLIB:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "shlib");
-
-    case PT_PHDR:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "phdr");
-
-    case PT_GNU_EH_FRAME:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index,
-					      "eh_frame_hdr");
-
-    case PT_GNU_STACK:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "stack");
-
-    case PT_GNU_RELRO:
-      return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "relro");
-
-    default:
-      /* Check for any processor-specific program segment types.  */
-      bed = get_elf_backend_data (abfd);
-      return bed->elf_backend_section_from_phdr (abfd, hdr, hdr_index, "proc");
-    }
-}
-
-/* Return the REL_HDR for SEC, assuming there is only a single one, either
-   REL or RELA.  */
-
-Elf_Internal_Shdr *
-_bfd_elf_single_rel_hdr (asection *sec)
-{
-  if (elf_section_data (sec)->rel.hdr)
-    {
-      BFD_ASSERT (elf_section_data (sec)->rela.hdr == NULL);
-      return elf_section_data (sec)->rel.hdr;
-    }
-  else
-    return elf_section_data (sec)->rela.hdr;
-}
-
-static bfd_boolean
-_bfd_elf_set_reloc_sh_name (bfd *abfd,
-			    Elf_Internal_Shdr *rel_hdr,
-			    const char *sec_name,
-			    bfd_boolean use_rela_p)
-{
-  char *name = (char *) bfd_alloc (abfd,
-				   sizeof ".rela" + strlen (sec_name));
-  if (name == NULL)
-    return FALSE;
-
-  sprintf (name, "%s%s", use_rela_p ? ".rela" : ".rel", sec_name);
-  rel_hdr->sh_name =
-    (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd), name,
-					FALSE);
-  if (rel_hdr->sh_name == (unsigned int) -1)
-    return FALSE;
-
-  return TRUE;
-}
-
-/* Allocate and initialize a section-header for a new reloc section,
-   containing relocations against ASECT.  It is stored in RELDATA.  If
-   USE_RELA_P is TRUE, we use RELA relocations; otherwise, we use REL
-   relocations.  */
-
-static bfd_boolean
-_bfd_elf_init_reloc_shdr (bfd *abfd,
-			  struct bfd_elf_section_reloc_data *reldata,
-			  const char *sec_name,
-			  bfd_boolean use_rela_p,
-			  bfd_boolean delay_st_name_p)
-{
-  Elf_Internal_Shdr *rel_hdr;
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-
-  BFD_ASSERT (reldata->hdr == NULL);
-  rel_hdr = bfd_zalloc (abfd, sizeof (*rel_hdr));
-  reldata->hdr = rel_hdr;
-
-  if (delay_st_name_p)
-    rel_hdr->sh_name = (unsigned int) -1;
-  else if (!_bfd_elf_set_reloc_sh_name (abfd, rel_hdr, sec_name,
-					use_rela_p))
-    return FALSE;
-  rel_hdr->sh_type = use_rela_p ? SHT_RELA : SHT_REL;
-  rel_hdr->sh_entsize = (use_rela_p
-			 ? bed->s->sizeof_rela
-			 : bed->s->sizeof_rel);
-  rel_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align;
-  rel_hdr->sh_flags = 0;
-  rel_hdr->sh_addr = 0;
-  rel_hdr->sh_size = 0;
-  rel_hdr->sh_offset = 0;
-
-  return TRUE;
-}
-
-/* Return the default section type based on the passed in section flags.  */
-
-int
-bfd_elf_get_default_section_type (flagword flags)
-{
-  if ((flags & (SEC_ALLOC | SEC_IS_COMMON)) != 0
-      && (flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
-    return SHT_NOBITS;
-  return SHT_PROGBITS;
-}
-
-struct fake_section_arg
-{
-  struct bfd_link_info *link_info;
-  bfd_boolean failed;
-};
-
-/* Set up an ELF internal section header for a section.  */
-
-static void
-elf_fake_sections (bfd *abfd, asection *asect, void *fsarg)
-{
-  struct fake_section_arg *arg = (struct fake_section_arg *)fsarg;
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  struct bfd_elf_section_data *esd = elf_section_data (asect);
-  Elf_Internal_Shdr *this_hdr;
-  unsigned int sh_type;
-  const char *name = asect->name;
-  bfd_boolean delay_st_name_p = FALSE;
-  bfd_vma mask;
-
-  if (arg->failed)
-    {
-      /* We already failed; just get out of the bfd_map_over_sections
-	 loop.  */
-      return;
-    }
-
-  this_hdr = &esd->this_hdr;
-
-  if (arg->link_info)
-    {
-      /* ld: compress DWARF debug sections with names: .debug_*.  */
-      if ((arg->link_info->compress_debug & COMPRESS_DEBUG)
-	  && (asect->flags & SEC_DEBUGGING)
-	  && name[1] == 'd'
-	  && name[6] == '_')
-	{
-	  /* Set SEC_ELF_COMPRESS to indicate this section should be
-	     compressed.  */
-	  asect->flags |= SEC_ELF_COMPRESS;
-	  /* If this section will be compressed, delay adding section
-	     name to section name section after it is compressed in
-	     _bfd_elf_assign_file_positions_for_non_load.  */
-	  delay_st_name_p = TRUE;
-	}
-    }
-  else if ((asect->flags & SEC_ELF_RENAME))
-    {
-      /* objcopy: rename output DWARF debug section.  */
-      if ((abfd->flags & (BFD_DECOMPRESS | BFD_COMPRESS_GABI)))
-	{
-	  /* When we decompress or compress with SHF_COMPRESSED,
-	     convert section name from .zdebug_* to .debug_* if
-	     needed.  */
-	  if (name[1] == 'z')
-	    {
-	      char *new_name = convert_zdebug_to_debug (abfd, name);
-	      if (new_name == NULL)
-		{
-		  arg->failed = TRUE;
-		  return;
-		}
-	      name = new_name;
-	    }
-	}
-      else if (asect->compress_status == COMPRESS_SECTION_DONE)
-	{
-	  /* PR binutils/18087: Compression does not always make a
-	     section smaller.  So only rename the section when
-	     compression has actually taken place.  If input section
-	     name is .zdebug_*, we should never compress it again.  */
-	  char *new_name = convert_debug_to_zdebug (abfd, name);
-	  if (new_name == NULL)
-	    {
-	      arg->failed = TRUE;
-	      return;
-	    }
-	  BFD_ASSERT (name[1] != 'z');
-	  name = new_name;
-	}
-    }
-
-  if (delay_st_name_p)
-    this_hdr->sh_name = (unsigned int) -1;
-  else
-    {
-      this_hdr->sh_name
-	= (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
-					      name, FALSE);
-      if (this_hdr->sh_name == (unsigned int) -1)
-	{
-	  arg->failed = TRUE;
-	  return;
-	}
-    }
-
-  /* Don't clear sh_flags. Assembler may set additional bits.  */
-
-  if ((asect->flags & SEC_ALLOC) != 0
-      || asect->user_set_vma)
-    this_hdr->sh_addr = asect->vma * bfd_octets_per_byte (abfd, asect);
-  else
-    this_hdr->sh_addr = 0;
-
-  this_hdr->sh_offset = 0;
-  this_hdr->sh_size = asect->size;
-  this_hdr->sh_link = 0;
-  /* PR 17512: file: 0eb809fe, 8b0535ee.  */
-  if (asect->alignment_power >= (sizeof (bfd_vma) * 8) - 1)
-    {
-      _bfd_error_handler
-	/* xgettext:c-format */
-	(_("%pB: error: alignment power %d of section `%pA' is too big"),
-	 abfd, asect->alignment_power, asect);
-      arg->failed = TRUE;
-      return;
-    }
-  /* Set sh_addralign to the highest power of two given by alignment
-     consistent with the section VMA.  Linker scripts can force VMA.  */
-  mask = ((bfd_vma) 1 << asect->alignment_power) | this_hdr->sh_addr;
-  this_hdr->sh_addralign = mask & -mask;
-  /* The sh_entsize and sh_info fields may have been set already by
-     copy_private_section_data.  */
-
-  this_hdr->bfd_section = asect;
-  this_hdr->contents = NULL;
-
-  /* If the section type is unspecified, we set it based on
-     asect->flags.  */
-  if ((asect->flags & SEC_GROUP) != 0)
-    sh_type = SHT_GROUP;
-  else
-    sh_type = bfd_elf_get_default_section_type (asect->flags);
-
-  if (this_hdr->sh_type == SHT_NULL)
-    this_hdr->sh_type = sh_type;
-  else if (this_hdr->sh_type == SHT_NOBITS
-	   && sh_type == SHT_PROGBITS
-	   && (asect->flags & SEC_ALLOC) != 0)
-    {
-      /* Warn if we are changing a NOBITS section to PROGBITS, but
-	 allow the link to proceed.  This can happen when users link
-	 non-bss input sections to bss output sections, or emit data
-	 to a bss output section via a linker script.  */
-      _bfd_error_handler
-	(_("warning: section `%pA' type changed to PROGBITS"), asect);
-      this_hdr->sh_type = sh_type;
-    }
-
-  switch (this_hdr->sh_type)
-    {
-    default:
-      break;
-
-    case SHT_STRTAB:
-    case SHT_NOTE:
-    case SHT_NOBITS:
-    case SHT_PROGBITS:
-      break;
-
-    case SHT_INIT_ARRAY:
-    case SHT_FINI_ARRAY:
-    case SHT_PREINIT_ARRAY:
-      this_hdr->sh_entsize = bed->s->arch_size / 8;
-      break;
-
-    case SHT_HASH:
-      this_hdr->sh_entsize = bed->s->sizeof_hash_entry;
-      break;
-
-    case SHT_DYNSYM:
-      this_hdr->sh_entsize = bed->s->sizeof_sym;
-      break;
-
-    case SHT_DYNAMIC:
-      this_hdr->sh_entsize = bed->s->sizeof_dyn;
-      break;
-
-    case SHT_RELA:
-      if (get_elf_backend_data (abfd)->may_use_rela_p)
-	this_hdr->sh_entsize = bed->s->sizeof_rela;
-      break;
-
-     case SHT_REL:
-      if (get_elf_backend_data (abfd)->may_use_rel_p)
-	this_hdr->sh_entsize = bed->s->sizeof_rel;
-      break;
-
-     case SHT_GNU_versym:
-      this_hdr->sh_entsize = sizeof (Elf_External_Versym);
-      break;
-
-     case SHT_GNU_verdef:
-      this_hdr->sh_entsize = 0;
-      /* objcopy or strip will copy over sh_info, but may not set
-	 cverdefs.  The linker will set cverdefs, but sh_info will be
-	 zero.  */
-      if (this_hdr->sh_info == 0)
-	this_hdr->sh_info = elf_tdata (abfd)->cverdefs;
-      else
-	BFD_ASSERT (elf_tdata (abfd)->cverdefs == 0
-		    || this_hdr->sh_info == elf_tdata (abfd)->cverdefs);
-      break;
-
-    case SHT_GNU_verneed:
-      this_hdr->sh_entsize = 0;
-      /* objcopy or strip will copy over sh_info, but may not set
-	 cverrefs.  The linker will set cverrefs, but sh_info will be
-	 zero.  */
-      if (this_hdr->sh_info == 0)
-	this_hdr->sh_info = elf_tdata (abfd)->cverrefs;
-      else
-	BFD_ASSERT (elf_tdata (abfd)->cverrefs == 0
-		    || this_hdr->sh_info == elf_tdata (abfd)->cverrefs);
-      break;
-
-    case SHT_GROUP:
-      this_hdr->sh_entsize = GRP_ENTRY_SIZE;
-      break;
-
-    case SHT_GNU_HASH:
-      this_hdr->sh_entsize = bed->s->arch_size == 64 ? 0 : 4;
-      break;
-    }
-
-  if ((asect->flags & SEC_ALLOC) != 0)
-    this_hdr->sh_flags |= SHF_ALLOC;
-  if ((asect->flags & SEC_READONLY) == 0)
-    this_hdr->sh_flags |= SHF_WRITE;
-  if ((asect->flags & SEC_CODE) != 0)
-    this_hdr->sh_flags |= SHF_EXECINSTR;
-  if ((asect->flags & SEC_MERGE) != 0)
-    {
-      this_hdr->sh_flags |= SHF_MERGE;
-      this_hdr->sh_entsize = asect->entsize;
-    }
-  if ((asect->flags & SEC_STRINGS) != 0)
-    this_hdr->sh_flags |= SHF_STRINGS;
-  if ((asect->flags & SEC_GROUP) == 0 && elf_group_name (asect) != NULL)
-    this_hdr->sh_flags |= SHF_GROUP;
-  if ((asect->flags & SEC_THREAD_LOCAL) != 0)
-    {
-      this_hdr->sh_flags |= SHF_TLS;
-      if (asect->size == 0
-	  && (asect->flags & SEC_HAS_CONTENTS) == 0)
-	{
-	  struct bfd_link_order *o = asect->map_tail.link_order;
-
-	  this_hdr->sh_size = 0;
-	  if (o != NULL)
-	    {
-	      this_hdr->sh_size = o->offset + o->size;
-	      if (this_hdr->sh_size != 0)
-		this_hdr->sh_type = SHT_NOBITS;
-	    }
-	}
-    }
-  if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE)
-    this_hdr->sh_flags |= SHF_EXCLUDE;
-
-  /* If the section has relocs, set up a section header for the
-     SHT_REL[A] section.  If two relocation sections are required for
-     this section, it is up to the processor-specific back-end to
-     create the other.  */
-  if ((asect->flags & SEC_RELOC) != 0)
-    {
-      /* When doing a relocatable link, create both REL and RELA sections if
-	 needed.  */
-      if (arg->link_info
-	  /* Do the normal setup if we wouldn't create any sections here.  */
-	  && esd->rel.count + esd->rela.count > 0
-	  && (bfd_link_relocatable (arg->link_info)
-	      || arg->link_info->emitrelocations))
-	{
-	  if (esd->rel.count && esd->rel.hdr == NULL
-	      && !_bfd_elf_init_reloc_shdr (abfd, &esd->rel, name,
-					    FALSE, delay_st_name_p))
-	    {
-	      arg->failed = TRUE;
-	      return;
-	    }
-	  if (esd->rela.count && esd->rela.hdr == NULL
-	      && !_bfd_elf_init_reloc_shdr (abfd, &esd->rela, name,
-					    TRUE, delay_st_name_p))
-	    {
-	      arg->failed = TRUE;
-	      return;
-	    }
-	}
-      else if (!_bfd_elf_init_reloc_shdr (abfd,
-					  (asect->use_rela_p
-					   ? &esd->rela : &esd->rel),
-					  name,
-					  asect->use_rela_p,
-					  delay_st_name_p))
-	{
-	  arg->failed = TRUE;
-	  return;
-	}
-    }
-
-  /* Check for processor-specific section types.  */
-  sh_type = this_hdr->sh_type;
-  if (bed->elf_backend_fake_sections
-      && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
-    {
-      arg->failed = TRUE;
-      return;
-    }
-
-  if (sh_type == SHT_NOBITS && asect->size != 0)
-    {
-      /* Don't change the header type from NOBITS if we are being
-	 called for objcopy --only-keep-debug.  */
-      this_hdr->sh_type = sh_type;
-    }
-}
-
-/* Fill in the contents of a SHT_GROUP section.  Called from
-   _bfd_elf_compute_section_file_positions for gas, objcopy, and
-   when ELF targets use the generic linker, ld.  Called for ld -r
-   from bfd_elf_final_link.  */
-
-void
-bfd_elf_set_group_contents (bfd *abfd, asection *sec, void *failedptrarg)
-{
-  bfd_boolean *failedptr = (bfd_boolean *) failedptrarg;
-  asection *elt, *first;
-  unsigned char *loc;
-  bfd_boolean gas;
-
-  /* Ignore linker created group section.  See elfNN_ia64_object_p in
-     elfxx-ia64.c.  */
-  if ((sec->flags & (SEC_GROUP | SEC_LINKER_CREATED)) != SEC_GROUP
-      || sec->size == 0
-      || *failedptr)
-    return;
-
-  if (elf_section_data (sec)->this_hdr.sh_info == 0)
-    {
-      unsigned long symindx = 0;
-
-      /* elf_group_id will have been set up by objcopy and the
-	 generic linker.  */
-      if (elf_group_id (sec) != NULL)
-	symindx = elf_group_id (sec)->udata.i;
-
-      if (symindx == 0)
-	{
-	  /* If called from the assembler, swap_out_syms will have set up
-	     elf_section_syms.
-	     PR 25699: A corrupt input file could contain bogus group info.  */
-	  if (elf_section_syms (abfd) == NULL)
-	    {
-	      *failedptr = TRUE;
-	      return;
-	    }
-	  symindx = elf_section_syms (abfd)[sec->index]->udata.i;
-	}
-      elf_section_data (sec)->this_hdr.sh_info = symindx;
-    }
-  else if (elf_section_data (sec)->this_hdr.sh_info == (unsigned int) -2)
-    {
-      /* The ELF backend linker sets sh_info to -2 when the group
-	 signature symbol is global, and thus the index can't be
-	 set until all local symbols are output.  */
-      asection *igroup;
-      struct bfd_elf_section_data *sec_data;
-      unsigned long symndx;
-      unsigned long extsymoff;
-      struct elf_link_hash_entry *h;
-
-      /* The point of this little dance to the first SHF_GROUP section
-	 then back to the SHT_GROUP section is that this gets us to
-	 the SHT_GROUP in the input object.  */
-      igroup = elf_sec_group (elf_next_in_group (sec));
-      sec_data = elf_section_data (igroup);
-      symndx = sec_data->this_hdr.sh_info;
-      extsymoff = 0;
-      if (!elf_bad_symtab (igroup->owner))
-	{
-	  Elf_Internal_Shdr *symtab_hdr;
-
-	  symtab_hdr = &elf_tdata (igroup->owner)->symtab_hdr;
-	  extsymoff = symtab_hdr->sh_info;
-	}
-      h = elf_sym_hashes (igroup->owner)[symndx - extsymoff];
-      while (h->root.type == bfd_link_hash_indirect
-	     || h->root.type == bfd_link_hash_warning)
-	h = (struct elf_link_hash_entry *) h->root.u.i.link;
-
-      elf_section_data (sec)->this_hdr.sh_info = h->indx;
-    }
-
-  /* The contents won't be allocated for "ld -r" or objcopy.  */
-  gas = TRUE;
-  if (sec->contents == NULL)
-    {
-      gas = FALSE;
-      sec->contents = (unsigned char *) bfd_alloc (abfd, sec->size);
-
-      /* Arrange for the section to be written out.  */
-      elf_section_data (sec)->this_hdr.contents = sec->contents;
-      if (sec->contents == NULL)
-	{
-	  *failedptr = TRUE;
-	  return;
-	}
-    }
-
-  loc = sec->contents + sec->size;
-
-  /* Get the pointer to the first section in the group that gas
-     squirreled away here.  objcopy arranges for this to be set to the
-     start of the input section group.  */
-  first = elt = elf_next_in_group (sec);
-
-  /* First element is a flag word.  Rest of section is elf section
-     indices for all the sections of the group.  Write them backwards
-     just to keep the group in the same order as given in .section
-     directives, not that it matters.  */
-  while (elt != NULL)
-    {
-      asection *s;
-
-      s = elt;
-      if (!gas)
-	s = s->output_section;
-      if (s != NULL
-	  && !bfd_is_abs_section (s))
-	{
-	  struct bfd_elf_section_data *elf_sec = elf_section_data (s);
-	  struct bfd_elf_section_data *input_elf_sec = elf_section_data (elt);
-
-	  if (elf_sec->rel.hdr != NULL
-	      && (gas
-		  || (input_elf_sec->rel.hdr != NULL
-		      && input_elf_sec->rel.hdr->sh_flags & SHF_GROUP) != 0))
-	    {
-	      elf_sec->rel.hdr->sh_flags |= SHF_GROUP;
-	      loc -= 4;
-	      H_PUT_32 (abfd, elf_sec->rel.idx, loc);
-	    }
-	  if (elf_sec->rela.hdr != NULL
-	      && (gas
-		  || (input_elf_sec->rela.hdr != NULL
-		      && input_elf_sec->rela.hdr->sh_flags & SHF_GROUP) != 0))
-	    {
-	      elf_sec->rela.hdr->sh_flags |= SHF_GROUP;
-	      loc -= 4;
-	      H_PUT_32 (abfd, elf_sec->rela.idx, loc);
-	    }
-	  loc -= 4;
-	  H_PUT_32 (abfd, elf_sec->this_idx, loc);
-	}
-      elt = elf_next_in_group (elt);
-      if (elt == first)
-	break;
-    }
-
-  loc -= 4;
-  BFD_ASSERT (loc == sec->contents);
-
-  H_PUT_32 (abfd, sec->flags & SEC_LINK_ONCE ? GRP_COMDAT : 0, loc);
-}
-
-/* Given NAME, the name of a relocation section stripped of its
-   .rel/.rela prefix, return the section in ABFD to which the
-   relocations apply.  */
-
-asection *
-_bfd_elf_plt_get_reloc_section (bfd *abfd, const char *name)
-{
-  /* If a target needs .got.plt section, relocations in rela.plt/rel.plt
-     section likely apply to .got.plt or .got section.  */
-  if (get_elf_backend_data (abfd)->want_got_plt
-      && strcmp (name, ".plt") == 0)
-    {
-      asection *sec;
-
-      name = ".got.plt";
-      sec = bfd_get_section_by_name (abfd, name);
-      if (sec != NULL)
-	return sec;
-      name = ".got";
-    }
-
-  return bfd_get_section_by_name (abfd, name);
-}
-
-/* Return the section to which RELOC_SEC applies.  */
-
-static asection *
-elf_get_reloc_section (asection *reloc_sec)
-{
-  const char *name;
-  unsigned int type;
-  bfd *abfd;
-  const struct elf_backend_data *bed;
-
-  type = elf_section_data (reloc_sec)->this_hdr.sh_type;
-  if (type != SHT_REL && type != SHT_RELA)
-    return NULL;
-
-  /* We look up the section the relocs apply to by name.  */
-  name = reloc_sec->name;
-  if (strncmp (name, ".rel", 4) != 0)
-    return NULL;
-  name += 4;
-  if (type == SHT_RELA && *name++ != 'a')
-    return NULL;
-
-  abfd = reloc_sec->owner;
-  bed = get_elf_backend_data (abfd);
-  return bed->get_reloc_section (abfd, name);
-}
-
-/* Assign all ELF section numbers.  The dummy first section is handled here
-   too.  The link/info pointers for the standard section types are filled
-   in here too, while we're at it.  LINK_INFO will be 0 when arriving
-   here for objcopy, and when using the generic ELF linker.  */
-
-static bfd_boolean
-assign_section_numbers (bfd *abfd, struct bfd_link_info *link_info)
-{
-  struct elf_obj_tdata *t = elf_tdata (abfd);
-  asection *sec;
-  unsigned int section_number;
-  Elf_Internal_Shdr **i_shdrp;
-  struct bfd_elf_section_data *d;
-  bfd_boolean need_symtab;
-  size_t amt;
-
-  section_number = 1;
-
-  _bfd_elf_strtab_clear_all_refs (elf_shstrtab (abfd));
-
-  /* SHT_GROUP sections are in relocatable files only.  */
-  if (link_info == NULL || !link_info->resolve_section_groups)
-    {
-      size_t reloc_count = 0;
-
-      /* Put SHT_GROUP sections first.  */
-      for (sec = abfd->sections; sec != NULL; sec = sec->next)
-	{
-	  d = elf_section_data (sec);
-
-	  if (d->this_hdr.sh_type == SHT_GROUP)
-	    {
-	      if (sec->flags & SEC_LINKER_CREATED)
-		{
-		  /* Remove the linker created SHT_GROUP sections.  */
-		  bfd_section_list_remove (abfd, sec);
-		  abfd->section_count--;
-		}
-	      else
-		d->this_idx = section_number++;
-	    }
-
-	  /* Count relocations.  */
-	  reloc_count += sec->reloc_count;
-	}
-
-      /* Clear HAS_RELOC if there are no relocations.  */
-      if (reloc_count == 0)
-	abfd->flags &= ~HAS_RELOC;
-    }
-
-  for (sec = abfd->sections; sec; sec = sec->next)
-    {
-      d = elf_section_data (sec);
-
-      if (d->this_hdr.sh_type != SHT_GROUP)
-	d->this_idx = section_number++;
-      if (d->this_hdr.sh_name != (unsigned int) -1)
-	_bfd_elf_strtab_addref (elf_shstrtab (abfd), d->this_hdr.sh_name);
-      if (d->rel.hdr)
-	{
-	  d->rel.idx = section_number++;
-	  if (d->rel.hdr->sh_name != (unsigned int) -1)
-	    _bfd_elf_strtab_addref (elf_shstrtab (abfd), d->rel.hdr->sh_name);
-	}
-      else
-	d->rel.idx = 0;
-
-      if (d->rela.hdr)
-	{
-	  d->rela.idx = section_number++;
-	  if (d->rela.hdr->sh_name != (unsigned int) -1)
-	    _bfd_elf_strtab_addref (elf_shstrtab (abfd), d->rela.hdr->sh_name);
-	}
-      else
-	d->rela.idx = 0;
-    }
-
-  need_symtab = (bfd_get_symcount (abfd) > 0
-		|| (link_info == NULL
-		    && ((abfd->flags & (EXEC_P | DYNAMIC | HAS_RELOC))
-			== HAS_RELOC)));
-  if (need_symtab)
-    {
-      elf_onesymtab (abfd) = section_number++;
-      _bfd_elf_strtab_addref (elf_shstrtab (abfd), t->symtab_hdr.sh_name);
-      if (section_number > ((SHN_LORESERVE - 2) & 0xFFFF))
-	{
-	  elf_section_list *entry;
-
-	  BFD_ASSERT (elf_symtab_shndx_list (abfd) == NULL);
-
-	  entry = bfd_zalloc (abfd, sizeof (*entry));
-	  entry->ndx = section_number++;
-	  elf_symtab_shndx_list (abfd) = entry;
-	  entry->hdr.sh_name
-	    = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
-						  ".symtab_shndx", FALSE);
-	  if (entry->hdr.sh_name == (unsigned int) -1)
-	    return FALSE;
-	}
-      elf_strtab_sec (abfd) = section_number++;
-      _bfd_elf_strtab_addref (elf_shstrtab (abfd), t->strtab_hdr.sh_name);
-    }
-
-  elf_shstrtab_sec (abfd) = section_number++;
-  _bfd_elf_strtab_addref (elf_shstrtab (abfd), t->shstrtab_hdr.sh_name);
-  elf_elfheader (abfd)->e_shstrndx = elf_shstrtab_sec (abfd);
-
-  if (section_number >= SHN_LORESERVE)
-    {
-      /* xgettext:c-format */
-      _bfd_error_handler (_("%pB: too many sections: %u"),
-			  abfd, section_number);
-      return FALSE;
-    }
-
-  elf_numsections (abfd) = section_number;
-  elf_elfheader (abfd)->e_shnum = section_number;
-
-  /* Set up the list of section header pointers, in agreement with the
-     indices.  */
-  amt = section_number * sizeof (Elf_Internal_Shdr *);
-  i_shdrp = (Elf_Internal_Shdr **) bfd_zalloc (abfd, amt);
-  if (i_shdrp == NULL)
-    return FALSE;
-
-  i_shdrp[0] = (Elf_Internal_Shdr *) bfd_zalloc (abfd,
-						 sizeof (Elf_Internal_Shdr));
-  if (i_shdrp[0] == NULL)
-    {
-      bfd_release (abfd, i_shdrp);
-      return FALSE;
-    }
-
-  elf_elfsections (abfd) = i_shdrp;
-
-  i_shdrp[elf_shstrtab_sec (abfd)] = &t->shstrtab_hdr;
-  if (need_symtab)
-    {
-      i_shdrp[elf_onesymtab (abfd)] = &t->symtab_hdr;
-      if (elf_numsections (abfd) > (SHN_LORESERVE & 0xFFFF))
-	{
-	  elf_section_list * entry = elf_symtab_shndx_list (abfd);
-	  BFD_ASSERT (entry != NULL);
-	  i_shdrp[entry->ndx] = & entry->hdr;
-	  entry->hdr.sh_link = elf_onesymtab (abfd);
-	}
-      i_shdrp[elf_strtab_sec (abfd)] = &t->strtab_hdr;
-      t->symtab_hdr.sh_link = elf_strtab_sec (abfd);
-    }
-
-  for (sec = abfd->sections; sec; sec = sec->next)
-    {
-      asection *s;
-
-      d = elf_section_data (sec);
-
-      i_shdrp[d->this_idx] = &d->this_hdr;
-      if (d->rel.idx != 0)
-	i_shdrp[d->rel.idx] = d->rel.hdr;
-      if (d->rela.idx != 0)
-	i_shdrp[d->rela.idx] = d->rela.hdr;
-
-      /* Fill in the sh_link and sh_info fields while we're at it.  */
-
-      /* sh_link of a reloc section is the section index of the symbol
-	 table.  sh_info is the section index of the section to which
-	 the relocation entries apply.  */
-      if (d->rel.idx != 0)
-	{
-	  d->rel.hdr->sh_link = elf_onesymtab (abfd);
-	  d->rel.hdr->sh_info = d->this_idx;
-	  d->rel.hdr->sh_flags |= SHF_INFO_LINK;
-	}
-      if (d->rela.idx != 0)
-	{
-	  d->rela.hdr->sh_link = elf_onesymtab (abfd);
-	  d->rela.hdr->sh_info = d->this_idx;
-	  d->rela.hdr->sh_flags |= SHF_INFO_LINK;
-	}
-
-      /* We need to set up sh_link for SHF_LINK_ORDER.  */
-      if ((d->this_hdr.sh_flags & SHF_LINK_ORDER) != 0)
-	{
-	  s = elf_linked_to_section (sec);
-	  /* We can now have a NULL linked section pointer.
-	     This happens when the sh_link field is 0, which is done
-	     when a linked to section is discarded but the linking
-	     section has been retained for some reason.  */
-	  if (s)
-	    {
-	      /* Check discarded linkonce section.  */
-	      if (discarded_section (s))
-		{
-		  asection *kept;
-		  _bfd_error_handler
-		    /* xgettext:c-format */
-		    (_("%pB: sh_link of section `%pA' points to"
-		       " discarded section `%pA' of `%pB'"),
-		     abfd, d->this_hdr.bfd_section, s, s->owner);
-		  /* Point to the kept section if it has the same
-		     size as the discarded one.  */
-		  kept = _bfd_elf_check_kept_section (s, link_info);
-		  if (kept == NULL)
-		    {
-		      bfd_set_error (bfd_error_bad_value);
-		      return FALSE;
-		    }
-		  s = kept;
-		}
-	      /* Handle objcopy. */
-	      else if (s->output_section == NULL)
-		{
-		  _bfd_error_handler
-		    /* xgettext:c-format */
-		    (_("%pB: sh_link of section `%pA' points to"
-		       " removed section `%pA' of `%pB'"),
-		     abfd, d->this_hdr.bfd_section, s, s->owner);
-		  bfd_set_error (bfd_error_bad_value);
-		  return FALSE;
-		}
-	      s = s->output_section;
-	      d->this_hdr.sh_link = elf_section_data (s)->this_idx;
-	    }
-	}
-
-      switch (d->this_hdr.sh_type)
-	{
-	case SHT_REL:
-	case SHT_RELA:
-	  /* A reloc section which we are treating as a normal BFD
-	     section.  sh_link is the section index of the symbol
-	     table.  sh_info is the section index of the section to
-	     which the relocation entries apply.  We assume that an
-	     allocated reloc section uses the dynamic symbol table.
-	     FIXME: How can we be sure?  */
-	  s = bfd_get_section_by_name (abfd, ".dynsym");
-	  if (s != NULL)
-	    d->this_hdr.sh_link = elf_section_data (s)->this_idx;
-
-	  s = elf_get_reloc_section (sec);
-	  if (s != NULL)
-	    {
-	      d->this_hdr.sh_info = elf_section_data (s)->this_idx;
-	      d->this_hdr.sh_flags |= SHF_INFO_LINK;
-	    }
-	  break;
-
-	case SHT_STRTAB:
-	  /* We assume that a section named .stab*str is a stabs
-	     string section.  We look for a section with the same name
-	     but without the trailing ``str'', and set its sh_link
-	     field to point to this section.  */
-	  if (CONST_STRNEQ (sec->name, ".stab")
-	      && strcmp (sec->name + strlen (sec->name) - 3, "str") == 0)
-	    {
-	      size_t len;
-	      char *alc;
-
-	      len = strlen (sec->name);
-	      alc = (char *) bfd_malloc (len - 2);
-	      if (alc == NULL)
-		return FALSE;
-	      memcpy (alc, sec->name, len - 3);
-	      alc[len - 3] = '\0';
-	      s = bfd_get_section_by_name (abfd, alc);
-	      free (alc);
-	      if (s != NULL)
-		{
-		  elf_section_data (s)->this_hdr.sh_link = d->this_idx;
-
-		  /* This is a .stab section.  */
-		  elf_section_data (s)->this_hdr.sh_entsize = 12;
-		}
-	    }
-	  break;
-
-	case SHT_DYNAMIC:
-	case SHT_DYNSYM:
-	case SHT_GNU_verneed:
-	case SHT_GNU_verdef:
-	  /* sh_link is the section header index of the string table
-	     used for the dynamic entries, or the symbol table, or the
-	     version strings.  */
-	  s = bfd_get_section_by_name (abfd, ".dynstr");
-	  if (s != NULL)
-	    d->this_hdr.sh_link = elf_section_data (s)->this_idx;
-	  break;
-
-	case SHT_GNU_LIBLIST:
-	  /* sh_link is the section header index of the prelink library
-	     list used for the dynamic entries, or the symbol table, or
-	     the version strings.  */
-	  s = bfd_get_section_by_name (abfd, (sec->flags & SEC_ALLOC)
-					     ? ".dynstr" : ".gnu.libstr");
-	  if (s != NULL)
-	    d->this_hdr.sh_link = elf_section_data (s)->this_idx;
-	  break;
-
-	case SHT_HASH:
-	case SHT_GNU_HASH:
-	case SHT_GNU_versym:
-	  /* sh_link is the section header index of the symbol table
-	     this hash table or version table is for.  */
-	  s = bfd_get_section_by_name (abfd, ".dynsym");
-	  if (s != NULL)
-	    d->this_hdr.sh_link = elf_section_data (s)->this_idx;
-	  break;
-
-	case SHT_GROUP:
-	  d->this_hdr.sh_link = elf_onesymtab (abfd);
-	}
-    }
-
-  /* Delay setting sh_name to _bfd_elf_write_object_contents so that
-     _bfd_elf_assign_file_positions_for_non_load can convert DWARF
-     debug section name from .debug_* to .zdebug_* if needed.  */
-
-  return TRUE;
-}
-
-static bfd_boolean
-sym_is_global (bfd *abfd, asymbol *sym)
-{
-  /* If the backend has a special mapping, use it.  */
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  if (bed->elf_backend_sym_is_global)
-    return (*bed->elf_backend_sym_is_global) (abfd, sym);
-
-  return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
-	  || bfd_is_und_section (bfd_asymbol_section (sym))
-	  || bfd_is_com_section (bfd_asymbol_section (sym)));
-}
-
-/* Filter global symbols of ABFD to include in the import library.  All
-   SYMCOUNT symbols of ABFD can be examined from their pointers in
-   SYMS.  Pointers of symbols to keep should be stored contiguously at
-   the beginning of that array.
-
-   Returns the number of symbols to keep.  */
-
-unsigned int
-_bfd_elf_filter_global_symbols (bfd *abfd, struct bfd_link_info *info,
-				asymbol **syms, long symcount)
-{
-  long src_count, dst_count = 0;
-
-  for (src_count = 0; src_count < symcount; src_count++)
-    {
-      asymbol *sym = syms[src_count];
-      char *name = (char *) bfd_asymbol_name (sym);
-      struct bfd_link_hash_entry *h;
-
-      if (!sym_is_global (abfd, sym))
-	continue;
-
-      h = bfd_link_hash_lookup (info->hash, name, FALSE, FALSE, FALSE);
-      if (h == NULL)
-	continue;
-      if (h->type != bfd_link_hash_defined && h->type != bfd_link_hash_defweak)
-	continue;
-      if (h->linker_def || h->ldscript_def)
-	continue;
-
-      syms[dst_count++] = sym;
-    }
-
-  syms[dst_count] = NULL;
-
-  return dst_count;
-}
-
-/* Don't output section symbols for sections that are not going to be
-   output, that are duplicates or there is no BFD section.  */
-
-static bfd_boolean
-ignore_section_sym (bfd *abfd, asymbol *sym)
-{
-  elf_symbol_type *type_ptr;
-
-  if (sym == NULL)
-    return FALSE;
-
-  if ((sym->flags & BSF_SECTION_SYM) == 0)
-    return FALSE;
-
-  /* Ignore the section symbol if it isn't used.  */
-  if ((sym->flags & BSF_SECTION_SYM_USED) == 0)
-    return TRUE;
-
-  if (sym->section == NULL)
-    return TRUE;
-
-  type_ptr = elf_symbol_from (sym);
-  return ((type_ptr != NULL
-	   && type_ptr->internal_elf_sym.st_shndx != 0
-	   && bfd_is_abs_section (sym->section))
-	  || !(sym->section->owner == abfd
-	       || (sym->section->output_section != NULL
-		   && sym->section->output_section->owner == abfd
-		   && sym->section->output_offset == 0)
-	       || bfd_is_abs_section (sym->section)));
-}
-
-/* Map symbol from it's internal number to the external number, moving
-   all local symbols to be at the head of the list.  */
-
-static bfd_boolean
-elf_map_symbols (bfd *abfd, unsigned int *pnum_locals)
-{
-  unsigned int symcount = bfd_get_symcount (abfd);
-  asymbol **syms = bfd_get_outsymbols (abfd);
-  asymbol **sect_syms;
-  unsigned int num_locals = 0;
-  unsigned int num_globals = 0;
-  unsigned int num_locals2 = 0;
-  unsigned int num_globals2 = 0;
-  unsigned int max_index = 0;
-  unsigned int idx;
-  asection *asect;
-  asymbol **new_syms;
-  size_t amt;
-
-#ifdef DEBUG
-  fprintf (stderr, "elf_map_symbols\n");
-  fflush (stderr);
-#endif
-
-  for (asect = abfd->sections; asect; asect = asect->next)
-    {
-      if (max_index < asect->index)
-	max_index = asect->index;
-    }
-
-  max_index++;
-  amt = max_index * sizeof (asymbol *);
-  sect_syms = (asymbol **) bfd_zalloc (abfd, amt);
-  if (sect_syms == NULL)
-    return FALSE;
-  elf_section_syms (abfd) = sect_syms;
-  elf_num_section_syms (abfd) = max_index;
-
-  /* Init sect_syms entries for any section symbols we have already
-     decided to output.  */
-  for (idx = 0; idx < symcount; idx++)
-    {
-      asymbol *sym = syms[idx];
-
-      if ((sym->flags & BSF_SECTION_SYM) != 0
-	  && sym->value == 0
-	  && !ignore_section_sym (abfd, sym)
-	  && !bfd_is_abs_section (sym->section))
-	{
-	  asection *sec = sym->section;
-
-	  if (sec->owner != abfd)
-	    sec = sec->output_section;
-
-	  sect_syms[sec->index] = syms[idx];
-	}
-    }
-
-  /* Classify all of the symbols.  */
-  for (idx = 0; idx < symcount; idx++)
-    {
-      if (sym_is_global (abfd, syms[idx]))
-	num_globals++;
-      else if (!ignore_section_sym (abfd, syms[idx]))
-	num_locals++;
-    }
-
-  /* We will be adding a section symbol for each normal BFD section.  Most
-     sections will already have a section symbol in outsymbols, but
-     eg. SHT_GROUP sections will not, and we need the section symbol mapped
-     at least in that case.  */
-  for (asect = abfd->sections; asect; asect = asect->next)
-    {
-      asymbol *sym = asect->symbol;
-      /* Don't include ignored section symbols.  */
-      if (!ignore_section_sym (abfd, sym)
-	  && sect_syms[asect->index] == NULL)
-	{
-	  if (!sym_is_global (abfd, asect->symbol))
-	    num_locals++;
-	  else
-	    num_globals++;
-	}
-    }
-
-  /* Now sort the symbols so the local symbols are first.  */
-  amt = (num_locals + num_globals) * sizeof (asymbol *);
-  new_syms = (asymbol **) bfd_alloc (abfd, amt);
-  if (new_syms == NULL)
-    return FALSE;
-
-  for (idx = 0; idx < symcount; idx++)
-    {
-      asymbol *sym = syms[idx];
-      unsigned int i;
-
-      if (sym_is_global (abfd, sym))
-	i = num_locals + num_globals2++;
-      /* Don't include ignored section symbols.  */
-      else if (!ignore_section_sym (abfd, sym))
-	i = num_locals2++;
-      else
-	continue;
-      new_syms[i] = sym;
-      sym->udata.i = i + 1;
-    }
-  for (asect = abfd->sections; asect; asect = asect->next)
-    {
-      asymbol *sym = asect->symbol;
-      if (!ignore_section_sym (abfd, sym)
-	  && sect_syms[asect->index] == NULL)
-	{
-	  unsigned int i;
-
-	  sect_syms[asect->index] = sym;
-	  if (!sym_is_global (abfd, sym))
-	    i = num_locals2++;
-	  else
-	    i = num_locals + num_globals2++;
-	  new_syms[i] = sym;
-	  sym->udata.i = i + 1;
-	}
-    }
-
-  bfd_set_symtab (abfd, new_syms, num_locals + num_globals);
-
-  *pnum_locals = num_locals;
-  return TRUE;
-}
-
-/* Align to the maximum file alignment that could be required for any
-   ELF data structure.  */
-
-static inline file_ptr
-align_file_position (file_ptr off, int align)
-{
-  return (off + align - 1) & ~(align - 1);
-}
-
-/* Assign a file position to a section, optionally aligning to the
-   required section alignment.  */
-
-file_ptr
-_bfd_elf_assign_file_position_for_section (Elf_Internal_Shdr *i_shdrp,
-					   file_ptr offset,
-					   bfd_boolean align)
-{
-  if (align && i_shdrp->sh_addralign > 1)
-    offset = BFD_ALIGN (offset, i_shdrp->sh_addralign);
-  i_shdrp->sh_offset = offset;
-  if (i_shdrp->bfd_section != NULL)
-    i_shdrp->bfd_section->filepos = offset;
-  if (i_shdrp->sh_type != SHT_NOBITS)
-    offset += i_shdrp->sh_size;
-  return offset;
-}
-
-/* Compute the file positions we are going to put the sections at, and
-   otherwise prepare to begin writing out the ELF file.  If LINK_INFO
-   is not NULL, this is being called by the ELF backend linker.  */
-
-bfd_boolean
-_bfd_elf_compute_section_file_positions (bfd *abfd,
-					 struct bfd_link_info *link_info)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  struct fake_section_arg fsargs;
-  bfd_boolean failed;
-  struct elf_strtab_hash *strtab = NULL;
-  Elf_Internal_Shdr *shstrtab_hdr;
-  bfd_boolean need_symtab;
-
-  if (abfd->output_has_begun)
-    return TRUE;
-
-  /* Do any elf backend specific processing first.  */
-  if (bed->elf_backend_begin_write_processing)
-    (*bed->elf_backend_begin_write_processing) (abfd, link_info);
-
-  if (!(*bed->elf_backend_init_file_header) (abfd, link_info))
-    return FALSE;
-
-  fsargs.failed = FALSE;
-  fsargs.link_info = link_info;
-  bfd_map_over_sections (abfd, elf_fake_sections, &fsargs);
-  if (fsargs.failed)
-    return FALSE;
-
-  if (!assign_section_numbers (abfd, link_info))
-    return FALSE;
-
-  /* The backend linker builds symbol table information itself.  */
-  need_symtab = (link_info == NULL
-		 && (bfd_get_symcount (abfd) > 0
-		     || ((abfd->flags & (EXEC_P | DYNAMIC | HAS_RELOC))
-			 == HAS_RELOC)));
-  if (need_symtab)
-    {
-      /* Non-zero if doing a relocatable link.  */
-      int relocatable_p = ! (abfd->flags & (EXEC_P | DYNAMIC));
-
-      if (! swap_out_syms (abfd, &strtab, relocatable_p, link_info))
-	return FALSE;
-    }
-
-  failed = FALSE;
-  if (link_info == NULL)
-    {
-      bfd_map_over_sections (abfd, bfd_elf_set_group_contents, &failed);
-      if (failed)
-	return FALSE;
-    }
-
-  shstrtab_hdr = &elf_tdata (abfd)->shstrtab_hdr;
-  /* sh_name was set in init_file_header.  */
-  shstrtab_hdr->sh_type = SHT_STRTAB;
-  shstrtab_hdr->sh_flags = bed->elf_strtab_flags;
-  shstrtab_hdr->sh_addr = 0;
-  /* sh_size is set in _bfd_elf_assign_file_positions_for_non_load.  */
-  shstrtab_hdr->sh_entsize = 0;
-  shstrtab_hdr->sh_link = 0;
-  shstrtab_hdr->sh_info = 0;
-  /* sh_offset is set in _bfd_elf_assign_file_positions_for_non_load.  */
-  shstrtab_hdr->sh_addralign = 1;
-
-  if (!assign_file_positions_except_relocs (abfd, link_info))
-    return FALSE;
-
-  if (need_symtab)
-    {
-      file_ptr off;
-      Elf_Internal_Shdr *hdr;
-
-      off = elf_next_file_pos (abfd);
-
-      hdr = & elf_symtab_hdr (abfd);
-      off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
-
-      if (elf_symtab_shndx_list (abfd) != NULL)
-	{
-	  hdr = & elf_symtab_shndx_list (abfd)->hdr;
-	  if (hdr->sh_size != 0)
-	    off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
-	  /* FIXME: What about other symtab_shndx sections in the list ?  */
-	}
-
-      hdr = &elf_tdata (abfd)->strtab_hdr;
-      off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
-
-      elf_next_file_pos (abfd) = off;
-
-      /* Now that we know where the .strtab section goes, write it
-	 out.  */
-      if (bfd_seek (abfd, hdr->sh_offset, SEEK_SET) != 0
-	  || ! _bfd_elf_strtab_emit (abfd, strtab))
-	return FALSE;
-      _bfd_elf_strtab_free (strtab);
-    }
-
-  abfd->output_has_begun = TRUE;
-
-  return TRUE;
-}
-
-/* Make an initial estimate of the size of the program header.  If we
-   get the number wrong here, we'll redo section placement.  */
-
-static bfd_size_type
-get_program_header_size (bfd *abfd, struct bfd_link_info *info)
-{
-  size_t segs;
-  asection *s;
-  const struct elf_backend_data *bed;
-
-  /* Assume we will need exactly two PT_LOAD segments: one for text
-     and one for data.  */
-  segs = 2;
-
-  s = bfd_get_section_by_name (abfd, ".interp");
-  if (s != NULL && (s->flags & SEC_LOAD) != 0 && s->size != 0)
-    {
-      /* If we have a loadable interpreter section, we need a
-	 PT_INTERP segment.  In this case, assume we also need a
-	 PT_PHDR segment, although that may not be true for all
-	 targets.  */
-      segs += 2;
-    }
-
-  if (bfd_get_section_by_name (abfd, ".dynamic") != NULL)
-    {
-      /* We need a PT_DYNAMIC segment.  */
-      ++segs;
-    }
-
-  if (info != NULL && info->relro)
-    {
-      /* We need a PT_GNU_RELRO segment.  */
-      ++segs;
-    }
-
-  if (elf_eh_frame_hdr (abfd))
-    {
-      /* We need a PT_GNU_EH_FRAME segment.  */
-      ++segs;
-    }
-
-  if (elf_stack_flags (abfd))
-    {
-      /* We need a PT_GNU_STACK segment.  */
-      ++segs;
-    }
-
-  s = bfd_get_section_by_name (abfd,
-			       NOTE_GNU_PROPERTY_SECTION_NAME);
-  if (s != NULL && s->size != 0)
-    {
-      /* We need a PT_GNU_PROPERTY segment.  */
-      ++segs;
-    }
-
-  for (s = abfd->sections; s != NULL; s = s->next)
-    {
-      if ((s->flags & SEC_LOAD) != 0
-	  && elf_section_type (s) == SHT_NOTE)
-	{
-	  unsigned int alignment_power;
-	  /* We need a PT_NOTE segment.  */
-	  ++segs;
-	  /* Try to create just one PT_NOTE segment for all adjacent
-	     loadable SHT_NOTE sections.  gABI requires that within a
-	     PT_NOTE segment (and also inside of each SHT_NOTE section)
-	     each note should have the same alignment.  So we check
-	     whether the sections are correctly aligned.  */
-	  alignment_power = s->alignment_power;
-	  while (s->next != NULL
-		 && s->next->alignment_power == alignment_power
-		 && (s->next->flags & SEC_LOAD) != 0
-		 && elf_section_type (s->next) == SHT_NOTE)
-	    s = s->next;
-	}
-    }
-
-  for (s = abfd->sections; s != NULL; s = s->next)
-    {
-      if (s->flags & SEC_THREAD_LOCAL)
-	{
-	  /* We need a PT_TLS segment.  */
-	  ++segs;
-	  break;
-	}
-    }
-
-  bed = get_elf_backend_data (abfd);
-
-  if ((abfd->flags & D_PAGED) != 0
-      && (elf_tdata (abfd)->has_gnu_osabi & elf_gnu_osabi_mbind) != 0)
-    {
-      /* Add a PT_GNU_MBIND segment for each mbind section.  */
-      bfd_vma commonpagesize;
-      unsigned int page_align_power;
-
-      if (info != NULL)
-	commonpagesize = info->commonpagesize;
-      else
-	commonpagesize = bed->commonpagesize;
-      page_align_power = bfd_log2 (commonpagesize);
-      for (s = abfd->sections; s != NULL; s = s->next)
-	if (elf_section_flags (s) & SHF_GNU_MBIND)
-	  {
-	    if (elf_section_data (s)->this_hdr.sh_info > PT_GNU_MBIND_NUM)
-	      {
-		_bfd_error_handler
-		  /* xgettext:c-format */
-		  (_("%pB: GNU_MBIND section `%pA' has invalid "
-		     "sh_info field: %d"),
-		   abfd, s, elf_section_data (s)->this_hdr.sh_info);
-		continue;
-	      }
-	    /* Align mbind section to page size.  */
-	    if (s->alignment_power < page_align_power)
-	      s->alignment_power = page_align_power;
-	    segs ++;
-	  }
-    }
-
-  /* Let the backend count up any program headers it might need.  */
-  if (bed->elf_backend_additional_program_headers)
-    {
-      int a;
-
-      a = (*bed->elf_backend_additional_program_headers) (abfd, info);
-      if (a == -1)
-	abort ();
-      segs += a;
-    }
-
-  return segs * bed->s->sizeof_phdr;
-}
-
-/* Find the segment that contains the output_section of section.  */
-
-Elf_Internal_Phdr *
-_bfd_elf_find_segment_containing_section (bfd * abfd, asection * section)
-{
-  struct elf_segment_map *m;
-  Elf_Internal_Phdr *p;
-
-  for (m = elf_seg_map (abfd), p = elf_tdata (abfd)->phdr;
-       m != NULL;
-       m = m->next, p++)
-    {
-      int i;
-
-      for (i = m->count - 1; i >= 0; i--)
-	if (m->sections[i] == section)
-	  return p;
-    }
-
-  return NULL;
-}
-
-/* Create a mapping from a set of sections to a program segment.  */
-
-static struct elf_segment_map *
-make_mapping (bfd *abfd,
-	      asection **sections,
-	      unsigned int from,
-	      unsigned int to,
-	      bfd_boolean phdr)
-{
-  struct elf_segment_map *m;
-  unsigned int i;
-  asection **hdrpp;
-  size_t amt;
-
-  amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-  amt += (to - from) * sizeof (asection *);
-  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-  if (m == NULL)
-    return NULL;
-  m->next = NULL;
-  m->p_type = PT_LOAD;
-  for (i = from, hdrpp = sections + from; i < to; i++, hdrpp++)
-    m->sections[i - from] = *hdrpp;
-  m->count = to - from;
-
-  if (from == 0 && phdr)
-    {
-      /* Include the headers in the first PT_LOAD segment.  */
-      m->includes_filehdr = 1;
-      m->includes_phdrs = 1;
-    }
-
-  return m;
-}
-
-/* Create the PT_DYNAMIC segment, which includes DYNSEC.  Returns NULL
-   on failure.  */
-
-struct elf_segment_map *
-_bfd_elf_make_dynamic_segment (bfd *abfd, asection *dynsec)
-{
-  struct elf_segment_map *m;
-
-  m = (struct elf_segment_map *) bfd_zalloc (abfd,
-					     sizeof (struct elf_segment_map));
-  if (m == NULL)
-    return NULL;
-  m->next = NULL;
-  m->p_type = PT_DYNAMIC;
-  m->count = 1;
-  m->sections[0] = dynsec;
-
-  return m;
-}
-
-/* Possibly add or remove segments from the segment map.  */
-
-static bfd_boolean
-elf_modify_segment_map (bfd *abfd,
-			struct bfd_link_info *info,
-			bfd_boolean remove_empty_load)
-{
-  struct elf_segment_map **m;
-  const struct elf_backend_data *bed;
-
-  /* The placement algorithm assumes that non allocated sections are
-     not in PT_LOAD segments.  We ensure this here by removing such
-     sections from the segment map.  We also remove excluded
-     sections.  Finally, any PT_LOAD segment without sections is
-     removed.  */
-  m = &elf_seg_map (abfd);
-  while (*m)
-    {
-      unsigned int i, new_count;
-
-      for (new_count = 0, i = 0; i < (*m)->count; i++)
-	{
-	  if (((*m)->sections[i]->flags & SEC_EXCLUDE) == 0
-	      && (((*m)->sections[i]->flags & SEC_ALLOC) != 0
-		  || (*m)->p_type != PT_LOAD))
-	    {
-	      (*m)->sections[new_count] = (*m)->sections[i];
-	      new_count++;
-	    }
-	}
-      (*m)->count = new_count;
-
-      if (remove_empty_load
-	  && (*m)->p_type == PT_LOAD
-	  && (*m)->count == 0
-	  && !(*m)->includes_phdrs)
-	*m = (*m)->next;
-      else
-	m = &(*m)->next;
-    }
-
-  bed = get_elf_backend_data (abfd);
-  if (bed->elf_backend_modify_segment_map != NULL)
-    {
-      if (!(*bed->elf_backend_modify_segment_map) (abfd, info))
-	return FALSE;
-    }
-
-  return TRUE;
-}
-
-#define IS_TBSS(s) \
-  ((s->flags & (SEC_THREAD_LOCAL | SEC_LOAD)) == SEC_THREAD_LOCAL)
-
-/* Set up a mapping from BFD sections to program segments.  */
-
-bfd_boolean
-_bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
-{
-  unsigned int count;
-  struct elf_segment_map *m;
-  asection **sections = NULL;
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  bfd_boolean no_user_phdrs;
-
-  no_user_phdrs = elf_seg_map (abfd) == NULL;
-
-  if (info != NULL)
-    info->user_phdrs = !no_user_phdrs;
-
-  if (no_user_phdrs && bfd_count_sections (abfd) != 0)
-    {
-      asection *s;
-      unsigned int i;
-      struct elf_segment_map *mfirst;
-      struct elf_segment_map **pm;
-      asection *last_hdr;
-      bfd_vma last_size;
-      unsigned int hdr_index;
-      bfd_vma maxpagesize;
-      asection **hdrpp;
-      bfd_boolean phdr_in_segment;
-      bfd_boolean writable;
-      bfd_boolean executable;
-      unsigned int tls_count = 0;
-      asection *first_tls = NULL;
-      asection *first_mbind = NULL;
-      asection *dynsec, *eh_frame_hdr;
-      size_t amt;
-      bfd_vma addr_mask, wrap_to = 0;  /* Bytes.  */
-      bfd_size_type phdr_size;  /* Octets/bytes.  */
-      unsigned int opb = bfd_octets_per_byte (abfd, NULL);
-
-      /* Select the allocated sections, and sort them.  */
-
-      amt = bfd_count_sections (abfd) * sizeof (asection *);
-      sections = (asection **) bfd_malloc (amt);
-      if (sections == NULL)
-	goto error_return;
-
-      /* Calculate top address, avoiding undefined behaviour of shift
-	 left operator when shift count is equal to size of type
-	 being shifted.  */
-      addr_mask = ((bfd_vma) 1 << (bfd_arch_bits_per_address (abfd) - 1)) - 1;
-      addr_mask = (addr_mask << 1) + 1;
-
-      i = 0;
-      for (s = abfd->sections; s != NULL; s = s->next)
-	{
-	  if ((s->flags & SEC_ALLOC) != 0)
-	    {
-	      /* target_index is unused until bfd_elf_final_link
-		 starts output of section symbols.  Use it to make
-		 qsort stable.  */
-	      s->target_index = i;
-	      sections[i] = s;
-	      ++i;
-	      /* A wrapping section potentially clashes with header.  */
-	      if (((s->lma + s->size / opb) & addr_mask) < (s->lma & addr_mask))
-		wrap_to = (s->lma + s->size / opb) & addr_mask;
-	    }
-	}
-      BFD_ASSERT (i <= bfd_count_sections (abfd));
-      count = i;
-
-      qsort (sections, (size_t) count, sizeof (asection *), elf_sort_sections);
-
-      phdr_size = elf_program_header_size (abfd);
-      if (phdr_size == (bfd_size_type) -1)
-	phdr_size = get_program_header_size (abfd, info);
-      phdr_size += bed->s->sizeof_ehdr;
-      /* phdr_size is compared to LMA values which are in bytes.  */
-      phdr_size /= opb;
-      if (info != NULL)
-	maxpagesize = info->maxpagesize;
-      else
-	maxpagesize = bed->maxpagesize;
-      if (maxpagesize == 0)
-	maxpagesize = 1;
-      phdr_in_segment = info != NULL && info->load_phdrs;
-      if (count != 0
-	  && (((sections[0]->lma & addr_mask) & (maxpagesize - 1))
-	      >= (phdr_size & (maxpagesize - 1))))
-	/* For compatibility with old scripts that may not be using
-	   SIZEOF_HEADERS, add headers when it looks like space has
-	   been left for them.  */
-	phdr_in_segment = TRUE;
-
-      /* Build the mapping.  */
-      mfirst = NULL;
-      pm = &mfirst;
-
-      /* If we have a .interp section, then create a PT_PHDR segment for
-	 the program headers and a PT_INTERP segment for the .interp
-	 section.  */
-      s = bfd_get_section_by_name (abfd, ".interp");
-      if (s != NULL && (s->flags & SEC_LOAD) != 0 && s->size != 0)
-	{
-	  amt = sizeof (struct elf_segment_map);
-	  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_PHDR;
-	  m->p_flags = PF_R;
-	  m->p_flags_valid = 1;
-	  m->includes_phdrs = 1;
-	  phdr_in_segment = TRUE;
-	  *pm = m;
-	  pm = &m->next;
-
-	  amt = sizeof (struct elf_segment_map);
-	  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_INTERP;
-	  m->count = 1;
-	  m->sections[0] = s;
-
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      /* Look through the sections.  We put sections in the same program
-	 segment when the start of the second section can be placed within
-	 a few bytes of the end of the first section.  */
-      last_hdr = NULL;
-      last_size = 0;
-      hdr_index = 0;
-      writable = FALSE;
-      executable = FALSE;
-      dynsec = bfd_get_section_by_name (abfd, ".dynamic");
-      if (dynsec != NULL
-	  && (dynsec->flags & SEC_LOAD) == 0)
-	dynsec = NULL;
-
-      if ((abfd->flags & D_PAGED) == 0)
-	phdr_in_segment = FALSE;
-
-      /* Deal with -Ttext or something similar such that the first section
-	 is not adjacent to the program headers.  This is an
-	 approximation, since at this point we don't know exactly how many
-	 program headers we will need.  */
-      if (phdr_in_segment && count > 0)
-	{
-	  bfd_vma phdr_lma;  /* Bytes.  */
-	  bfd_boolean separate_phdr = FALSE;
-
-	  phdr_lma = (sections[0]->lma - phdr_size) & addr_mask & -maxpagesize;
-	  if (info != NULL
-	      && info->separate_code
-	      && (sections[0]->flags & SEC_CODE) != 0)
-	    {
-	      /* If data sections should be separate from code and
-		 thus not executable, and the first section is
-		 executable then put the file and program headers in
-		 their own PT_LOAD.  */
-	      separate_phdr = TRUE;
-	      if ((((phdr_lma + phdr_size - 1) & addr_mask & -maxpagesize)
-		   == (sections[0]->lma & addr_mask & -maxpagesize)))
-		{
-		  /* The file and program headers are currently on the
-		     same page as the first section.  Put them on the
-		     previous page if we can.  */
-		  if (phdr_lma >= maxpagesize)
-		    phdr_lma -= maxpagesize;
-		  else
-		    separate_phdr = FALSE;
-		}
-	    }
-	  if ((sections[0]->lma & addr_mask) < phdr_lma
-	      || (sections[0]->lma & addr_mask) < phdr_size)
-	    /* If file and program headers would be placed at the end
-	       of memory then it's probably better to omit them.  */
-	    phdr_in_segment = FALSE;
-	  else if (phdr_lma < wrap_to)
-	    /* If a section wraps around to where we'll be placing
-	       file and program headers, then the headers will be
-	       overwritten.  */
-	    phdr_in_segment = FALSE;
-	  else if (separate_phdr)
-	    {
-	      m = make_mapping (abfd, sections, 0, 0, phdr_in_segment);
-	      if (m == NULL)
-		goto error_return;
-	      m->p_paddr = phdr_lma * opb;
-	      m->p_vaddr_offset
-		= (sections[0]->vma - phdr_size) & addr_mask & -maxpagesize;
-	      m->p_paddr_valid = 1;
-	      *pm = m;
-	      pm = &m->next;
-	      phdr_in_segment = FALSE;
-	    }
-	}
-
-      for (i = 0, hdrpp = sections; i < count; i++, hdrpp++)
-	{
-	  asection *hdr;
-	  bfd_boolean new_segment;
-
-	  hdr = *hdrpp;
-
-	  /* See if this section and the last one will fit in the same
-	     segment.  */
-
-	  if (last_hdr == NULL)
-	    {
-	      /* If we don't have a segment yet, then we don't need a new
-		 one (we build the last one after this loop).  */
-	      new_segment = FALSE;
-	    }
-	  else if (last_hdr->lma - last_hdr->vma != hdr->lma - hdr->vma)
-	    {
-	      /* If this section has a different relation between the
-		 virtual address and the load address, then we need a new
-		 segment.  */
-	      new_segment = TRUE;
-	    }
-	  else if (hdr->lma < last_hdr->lma + last_size
-		   || last_hdr->lma + last_size < last_hdr->lma)
-	    {
-	      /* If this section has a load address that makes it overlap
-		 the previous section, then we need a new segment.  */
-	      new_segment = TRUE;
-	    }
-	  else if ((abfd->flags & D_PAGED) != 0
-		   && (((last_hdr->lma + last_size - 1) & -maxpagesize)
-		       == (hdr->lma & -maxpagesize)))
-	    {
-	      /* If we are demand paged then we can't map two disk
-		 pages onto the same memory page.  */
-	      new_segment = FALSE;
-	    }
-	  /* In the next test we have to be careful when last_hdr->lma is close
-	     to the end of the address space.  If the aligned address wraps
-	     around to the start of the address space, then there are no more
-	     pages left in memory and it is OK to assume that the current
-	     section can be included in the current segment.  */
-	  else if ((BFD_ALIGN (last_hdr->lma + last_size, maxpagesize)
-		    + maxpagesize > last_hdr->lma)
-		   && (BFD_ALIGN (last_hdr->lma + last_size, maxpagesize)
-		       + maxpagesize <= hdr->lma))
-	    {
-	      /* If putting this section in this segment would force us to
-		 skip a page in the segment, then we need a new segment.  */
-	      new_segment = TRUE;
-	    }
-	  else if ((last_hdr->flags & (SEC_LOAD | SEC_THREAD_LOCAL)) == 0
-		   && (hdr->flags & (SEC_LOAD | SEC_THREAD_LOCAL)) != 0)
-	    {
-	      /* We don't want to put a loaded section after a
-		 nonloaded (ie. bss style) section in the same segment
-		 as that will force the non-loaded section to be loaded.
-		 Consider .tbss sections as loaded for this purpose.  */
-	      new_segment = TRUE;
-	    }
-	  else if ((abfd->flags & D_PAGED) == 0)
-	    {
-	      /* If the file is not demand paged, which means that we
-		 don't require the sections to be correctly aligned in the
-		 file, then there is no other reason for a new segment.  */
-	      new_segment = FALSE;
-	    }
-	  else if (info != NULL
-		   && info->separate_code
-		   && executable != ((hdr->flags & SEC_CODE) != 0))
-	    {
-	      new_segment = TRUE;
-	    }
-	  else if (! writable
-		   && (hdr->flags & SEC_READONLY) == 0)
-	    {
-	      /* We don't want to put a writable section in a read only
-		 segment.  */
-	      new_segment = TRUE;
-	    }
-	  else
-	    {
-	      /* Otherwise, we can use the same segment.  */
-	      new_segment = FALSE;
-	    }
-
-	  /* Allow interested parties a chance to override our decision.  */
-	  if (last_hdr != NULL
-	      && info != NULL
-	      && info->callbacks->override_segment_assignment != NULL)
-	    new_segment
-	      = info->callbacks->override_segment_assignment (info, abfd, hdr,
-							      last_hdr,
-							      new_segment);
-
-	  if (! new_segment)
-	    {
-	      if ((hdr->flags & SEC_READONLY) == 0)
-		writable = TRUE;
-	      if ((hdr->flags & SEC_CODE) != 0)
-		executable = TRUE;
-	      last_hdr = hdr;
-	      /* .tbss sections effectively have zero size.  */
-	      last_size = (!IS_TBSS (hdr) ? hdr->size : 0) / opb;
-	      continue;
-	    }
-
-	  /* We need a new program segment.  We must create a new program
-	     header holding all the sections from hdr_index until hdr.  */
-
-	  m = make_mapping (abfd, sections, hdr_index, i, phdr_in_segment);
-	  if (m == NULL)
-	    goto error_return;
-
-	  *pm = m;
-	  pm = &m->next;
-
-	  if ((hdr->flags & SEC_READONLY) == 0)
-	    writable = TRUE;
-	  else
-	    writable = FALSE;
-
-	  if ((hdr->flags & SEC_CODE) == 0)
-	    executable = FALSE;
-	  else
-	    executable = TRUE;
-
-	  last_hdr = hdr;
-	  /* .tbss sections effectively have zero size.  */
-	  last_size = (!IS_TBSS (hdr) ? hdr->size : 0) / opb;
-	  hdr_index = i;
-	  phdr_in_segment = FALSE;
-	}
-
-      /* Create a final PT_LOAD program segment, but not if it's just
-	 for .tbss.  */
-      if (last_hdr != NULL
-	  && (i - hdr_index != 1
-	      || !IS_TBSS (last_hdr)))
-	{
-	  m = make_mapping (abfd, sections, hdr_index, i, phdr_in_segment);
-	  if (m == NULL)
-	    goto error_return;
-
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      /* If there is a .dynamic section, throw in a PT_DYNAMIC segment.  */
-      if (dynsec != NULL)
-	{
-	  m = _bfd_elf_make_dynamic_segment (abfd, dynsec);
-	  if (m == NULL)
-	    goto error_return;
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      /* For each batch of consecutive loadable SHT_NOTE  sections,
-	 add a PT_NOTE segment.  We don't use bfd_get_section_by_name,
-	 because if we link together nonloadable .note sections and
-	 loadable .note sections, we will generate two .note sections
-	 in the output file.  */
-      for (s = abfd->sections; s != NULL; s = s->next)
-	{
-	  if ((s->flags & SEC_LOAD) != 0
-	      && elf_section_type (s) == SHT_NOTE)
-	    {
-	      asection *s2;
-	      unsigned int alignment_power = s->alignment_power;
-
-	      count = 1;
-	      for (s2 = s; s2->next != NULL; s2 = s2->next)
-		{
-		  if (s2->next->alignment_power == alignment_power
-		      && (s2->next->flags & SEC_LOAD) != 0
-		      && elf_section_type (s2->next) == SHT_NOTE
-		      && align_power (s2->lma + s2->size / opb,
-				      alignment_power)
-		      == s2->next->lma)
-		    count++;
-		  else
-		    break;
-		}
-	      amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-	      amt += count * sizeof (asection *);
-	      m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	      if (m == NULL)
-		goto error_return;
-	      m->next = NULL;
-	      m->p_type = PT_NOTE;
-	      m->count = count;
-	      while (count > 1)
-		{
-		  m->sections[m->count - count--] = s;
-		  BFD_ASSERT ((s->flags & SEC_THREAD_LOCAL) == 0);
-		  s = s->next;
-		}
-	      m->sections[m->count - 1] = s;
-	      BFD_ASSERT ((s->flags & SEC_THREAD_LOCAL) == 0);
-	      *pm = m;
-	      pm = &m->next;
-	    }
-	  if (s->flags & SEC_THREAD_LOCAL)
-	    {
-	      if (! tls_count)
-		first_tls = s;
-	      tls_count++;
-	    }
-	  if (first_mbind == NULL
-	      && (elf_section_flags (s) & SHF_GNU_MBIND) != 0)
-	    first_mbind = s;
-	}
-
-      /* If there are any SHF_TLS output sections, add PT_TLS segment.  */
-      if (tls_count > 0)
-	{
-	  amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-	  amt += tls_count * sizeof (asection *);
-	  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_TLS;
-	  m->count = tls_count;
-	  /* Mandated PF_R.  */
-	  m->p_flags = PF_R;
-	  m->p_flags_valid = 1;
-	  s = first_tls;
-	  for (i = 0; i < tls_count; ++i)
-	    {
-	      if ((s->flags & SEC_THREAD_LOCAL) == 0)
-		{
-		  _bfd_error_handler
-		    (_("%pB: TLS sections are not adjacent:"), abfd);
-		  s = first_tls;
-		  i = 0;
-		  while (i < tls_count)
-		    {
-		      if ((s->flags & SEC_THREAD_LOCAL) != 0)
-			{
-			  _bfd_error_handler (_("	    TLS: %pA"), s);
-			  i++;
-			}
-		      else
-			_bfd_error_handler (_("	non-TLS: %pA"), s);
-		      s = s->next;
-		    }
-		  bfd_set_error (bfd_error_bad_value);
-		  goto error_return;
-		}
-	      m->sections[i] = s;
-	      s = s->next;
-	    }
-
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      if (first_mbind
-	  && (abfd->flags & D_PAGED) != 0
-	  && (elf_tdata (abfd)->has_gnu_osabi & elf_gnu_osabi_mbind) != 0)
-	for (s = first_mbind; s != NULL; s = s->next)
-	  if ((elf_section_flags (s) & SHF_GNU_MBIND) != 0
-	      && elf_section_data (s)->this_hdr.sh_info <= PT_GNU_MBIND_NUM)
-	    {
-	      /* Mandated PF_R.  */
-	      unsigned long p_flags = PF_R;
-	      if ((s->flags & SEC_READONLY) == 0)
-		p_flags |= PF_W;
-	      if ((s->flags & SEC_CODE) != 0)
-		p_flags |= PF_X;
-
-	      amt = sizeof (struct elf_segment_map) + sizeof (asection *);
-	      m = bfd_zalloc (abfd, amt);
-	      if (m == NULL)
-		goto error_return;
-	      m->next = NULL;
-	      m->p_type = (PT_GNU_MBIND_LO
-			   + elf_section_data (s)->this_hdr.sh_info);
-	      m->count = 1;
-	      m->p_flags_valid = 1;
-	      m->sections[0] = s;
-	      m->p_flags = p_flags;
-
-	      *pm = m;
-	      pm = &m->next;
-	    }
-
-      s = bfd_get_section_by_name (abfd,
-				   NOTE_GNU_PROPERTY_SECTION_NAME);
-      if (s != NULL && s->size != 0)
-	{
-	  amt = sizeof (struct elf_segment_map) + sizeof (asection *);
-	  m = bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_GNU_PROPERTY;
-	  m->count = 1;
-	  m->p_flags_valid = 1;
-	  m->sections[0] = s;
-	  m->p_flags = PF_R;
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      /* If there is a .eh_frame_hdr section, throw in a PT_GNU_EH_FRAME
-	 segment.  */
-      eh_frame_hdr = elf_eh_frame_hdr (abfd);
-      if (eh_frame_hdr != NULL
-	  && (eh_frame_hdr->output_section->flags & SEC_LOAD) != 0)
-	{
-	  amt = sizeof (struct elf_segment_map);
-	  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_GNU_EH_FRAME;
-	  m->count = 1;
-	  m->sections[0] = eh_frame_hdr->output_section;
-
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      if (elf_stack_flags (abfd))
-	{
-	  amt = sizeof (struct elf_segment_map);
-	  m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	  if (m == NULL)
-	    goto error_return;
-	  m->next = NULL;
-	  m->p_type = PT_GNU_STACK;
-	  m->p_flags = elf_stack_flags (abfd);
-	  m->p_align = bed->stack_align;
-	  m->p_flags_valid = 1;
-	  m->p_align_valid = m->p_align != 0;
-	  if (info->stacksize > 0)
-	    {
-	      m->p_size = info->stacksize;
-	      m->p_size_valid = 1;
-	    }
-
-	  *pm = m;
-	  pm = &m->next;
-	}
-
-      if (info != NULL && info->relro)
-	{
-	  for (m = mfirst; m != NULL; m = m->next)
-	    {
-	      if (m->p_type == PT_LOAD
-		  && m->count != 0
-		  && m->sections[0]->vma >= info->relro_start
-		  && m->sections[0]->vma < info->relro_end)
-		{
-		  i = m->count;
-		  while (--i != (unsigned) -1)
-		    {
-		      if (m->sections[i]->size > 0
-			  && (m->sections[i]->flags & (SEC_LOAD | SEC_HAS_CONTENTS))
-			  == (SEC_LOAD | SEC_HAS_CONTENTS))
-			break;
-		    }
-
-		  if (i != (unsigned) -1)
-		    break;
-		}
-	    }
-
-	  /* Make a PT_GNU_RELRO segment only when it isn't empty.  */
-	  if (m != NULL)
-	    {
-	      amt = sizeof (struct elf_segment_map);
-	      m = (struct elf_segment_map *) bfd_zalloc (abfd, amt);
-	      if (m == NULL)
-		goto error_return;
-	      m->next = NULL;
-	      m->p_type = PT_GNU_RELRO;
-	      *pm = m;
-	      pm = &m->next;
-	    }
-	}
-
-      free (sections);
-      elf_seg_map (abfd) = mfirst;
-    }
-
-  if (!elf_modify_segment_map (abfd, info, no_user_phdrs))
-    return FALSE;
-
-  for (count = 0, m = elf_seg_map (abfd); m != NULL; m = m->next)
-    ++count;
-  elf_program_header_size (abfd) = count * bed->s->sizeof_phdr;
-
-  return TRUE;
-
- error_return:
-  free (sections);
-  return FALSE;
-}
-
-/* Sort sections by address.  */
-
-static int
-elf_sort_sections (const void *arg1, const void *arg2)
-{
-  const asection *sec1 = *(const asection **) arg1;
-  const asection *sec2 = *(const asection **) arg2;
-  bfd_size_type size1, size2;
-
-  /* Sort by LMA first, since this is the address used to
-     place the section into a segment.  */
-  if (sec1->lma < sec2->lma)
-    return -1;
-  else if (sec1->lma > sec2->lma)
-    return 1;
-
-  /* Then sort by VMA.  Normally the LMA and the VMA will be
-     the same, and this will do nothing.  */
-  if (sec1->vma < sec2->vma)
-    return -1;
-  else if (sec1->vma > sec2->vma)
-    return 1;
-
-  /* Put !SEC_LOAD sections after SEC_LOAD ones.  */
-
-#define TOEND(x) (((x)->flags & (SEC_LOAD | SEC_THREAD_LOCAL)) == 0 \
-		  && (x)->size != 0)
-
-  if (TOEND (sec1))
-    {
-      if (!TOEND (sec2))
-	return 1;
-    }
-  else if (TOEND (sec2))
-    return -1;
-
-#undef TOEND
-
-  /* Sort by size, to put zero sized sections
-     before others at the same address.  */
-
-  size1 = (sec1->flags & SEC_LOAD) ? sec1->size : 0;
-  size2 = (sec2->flags & SEC_LOAD) ? sec2->size : 0;
-
-  if (size1 < size2)
-    return -1;
-  if (size1 > size2)
-    return 1;
-
-  return sec1->target_index - sec2->target_index;
-}
-
-/* This qsort comparison functions sorts PT_LOAD segments first and
-   by p_paddr, for assign_file_positions_for_load_sections.  */
-
-static int
-elf_sort_segments (const void *arg1, const void *arg2)
-{
-  const struct elf_segment_map *m1 = *(const struct elf_segment_map **) arg1;
-  const struct elf_segment_map *m2 = *(const struct elf_segment_map **) arg2;
-
-  if (m1->p_type != m2->p_type)
-    {
-      if (m1->p_type == PT_NULL)
-	return 1;
-      if (m2->p_type == PT_NULL)
-	return -1;
-      return m1->p_type < m2->p_type ? -1 : 1;
-    }
-  if (m1->includes_filehdr != m2->includes_filehdr)
-    return m1->includes_filehdr ? -1 : 1;
-  if (m1->no_sort_lma != m2->no_sort_lma)
-    return m1->no_sort_lma ? -1 : 1;
-  if (m1->p_type == PT_LOAD && !m1->no_sort_lma)
-    {
-      bfd_vma lma1, lma2;  /* Octets.  */
-      lma1 = 0;
-      if (m1->p_paddr_valid)
-	lma1 = m1->p_paddr;
-      else if (m1->count != 0)
-	{
-	  unsigned int opb = bfd_octets_per_byte (m1->sections[0]->owner,
-						  m1->sections[0]);
-	  lma1 = (m1->sections[0]->lma + m1->p_vaddr_offset) * opb;
-	}
-      lma2 = 0;
-      if (m2->p_paddr_valid)
-	lma2 = m2->p_paddr;
-      else if (m2->count != 0)
-	{
-	  unsigned int opb = bfd_octets_per_byte (m2->sections[0]->owner,
-						  m2->sections[0]);
-	  lma2 = (m2->sections[0]->lma + m2->p_vaddr_offset) * opb;
-	}
-      if (lma1 != lma2)
-	return lma1 < lma2 ? -1 : 1;
-    }
-  if (m1->idx != m2->idx)
-    return m1->idx < m2->idx ? -1 : 1;
-  return 0;
-}
-
-/* Ian Lance Taylor writes:
-
-   We shouldn't be using % with a negative signed number.  That's just
-   not good.  We have to make sure either that the number is not
-   negative, or that the number has an unsigned type.  When the types
-   are all the same size they wind up as unsigned.  When file_ptr is a
-   larger signed type, the arithmetic winds up as signed long long,
-   which is wrong.
-
-   What we're trying to say here is something like ``increase OFF by
-   the least amount that will cause it to be equal to the VMA modulo
-   the page size.''  */
-/* In other words, something like:
-
-   vma_offset = m->sections[0]->vma % bed->maxpagesize;
-   off_offset = off % bed->maxpagesize;
-   if (vma_offset < off_offset)
-     adjustment = vma_offset + bed->maxpagesize - off_offset;
-   else
-     adjustment = vma_offset - off_offset;
-
-   which can be collapsed into the expression below.  */
-
-static file_ptr
-vma_page_aligned_bias (bfd_vma vma, ufile_ptr off, bfd_vma maxpagesize)
-{
-  /* PR binutils/16199: Handle an alignment of zero.  */
-  if (maxpagesize == 0)
-    maxpagesize = 1;
-  return ((vma - off) % maxpagesize);
-}
-
-static void
-print_segment_map (const struct elf_segment_map *m)
-{
-  unsigned int j;
-  const char *pt = get_segment_type (m->p_type);
-  char buf[32];
-
-  if (pt == NULL)
-    {
-      if (m->p_type >= PT_LOPROC && m->p_type <= PT_HIPROC)
-	sprintf (buf, "LOPROC+%7.7x",
-		 (unsigned int) (m->p_type - PT_LOPROC));
-      else if (m->p_type >= PT_LOOS && m->p_type <= PT_HIOS)
-	sprintf (buf, "LOOS+%7.7x",
-		 (unsigned int) (m->p_type - PT_LOOS));
-      else
-	snprintf (buf, sizeof (buf), "%8.8x",
-		  (unsigned int) m->p_type);
-      pt = buf;
-    }
-  fflush (stdout);
-  fprintf (stderr, "%s:", pt);
-  for (j = 0; j < m->count; j++)
-    fprintf (stderr, " %s", m->sections [j]->name);
-  putc ('\n',stderr);
-  fflush (stderr);
-}
-
-static bfd_boolean
-write_zeros (bfd *abfd, file_ptr pos, bfd_size_type len)
-{
-  void *buf;
-  bfd_boolean ret;
-
-  if (bfd_seek (abfd, pos, SEEK_SET) != 0)
-    return FALSE;
-  buf = bfd_zmalloc (len);
-  if (buf == NULL)
-    return FALSE;
-  ret = bfd_bwrite (buf, len, abfd) == len;
-  free (buf);
-  return ret;
-}
-
-/* Assign file positions to the sections based on the mapping from
-   sections to segments.  This function also sets up some fields in
-   the file header.  */
-
-static bfd_boolean
-assign_file_positions_for_load_sections (bfd *abfd,
-					 struct bfd_link_info *link_info)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  struct elf_segment_map *m;
-  struct elf_segment_map *phdr_load_seg;
-  Elf_Internal_Phdr *phdrs;
-  Elf_Internal_Phdr *p;
-  file_ptr off;  /* Octets.  */
-  bfd_size_type maxpagesize;
-  unsigned int alloc, actual;
-  unsigned int i, j;
-  struct elf_segment_map **sorted_seg_map;
-  unsigned int opb = bfd_octets_per_byte (abfd, NULL);
-
-  if (link_info == NULL
-      && !_bfd_elf_map_sections_to_segments (abfd, link_info))
-    return FALSE;
-
-  alloc = 0;
-  for (m = elf_seg_map (abfd); m != NULL; m = m->next)
-    m->idx = alloc++;
-
-  if (alloc)
-    {
-      elf_elfheader (abfd)->e_phoff = bed->s->sizeof_ehdr;
-      elf_elfheader (abfd)->e_phentsize = bed->s->sizeof_phdr;
-    }
-  else
-    {
-      /* PR binutils/12467.  */
-      elf_elfheader (abfd)->e_phoff = 0;
-      elf_elfheader (abfd)->e_phentsize = 0;
-    }
-
-  elf_elfheader (abfd)->e_phnum = alloc;
-
-  if (elf_program_header_size (abfd) == (bfd_size_type) -1)
-    {
-      actual = alloc;
-      elf_program_header_size (abfd) = alloc * bed->s->sizeof_phdr;
-    }
-  else
-    {
-      actual = elf_program_header_size (abfd) / bed->s->sizeof_phdr;
-      BFD_ASSERT (elf_program_header_size (abfd)
-		  == actual * bed->s->sizeof_phdr);
-      BFD_ASSERT (actual >= alloc);
-    }
-
-  if (alloc == 0)
-    {
-      elf_next_file_pos (abfd) = bed->s->sizeof_ehdr;
-      return TRUE;
-    }
-
-  /* We're writing the size in elf_program_header_size (abfd),
-     see assign_file_positions_except_relocs, so make sure we have
-     that amount allocated, with trailing space cleared.
-     The variable alloc contains the computed need, while
-     elf_program_header_size (abfd) contains the size used for the
-     layout.
-     See ld/emultempl/elf-generic.em:gld${EMULATION_NAME}_map_segments
-     where the layout is forced to according to a larger size in the
-     last iterations for the testcase ld-elf/header.  */
-  phdrs = bfd_zalloc (abfd, (actual * sizeof (*phdrs)
-			     + alloc * sizeof (*sorted_seg_map)));
-  sorted_seg_map = (struct elf_segment_map **) (phdrs + actual);
-  elf_tdata (abfd)->phdr = phdrs;
-  if (phdrs == NULL)
-    return FALSE;
-
-  for (m = elf_seg_map (abfd), j = 0; m != NULL; m = m->next, j++)
-    {
-      sorted_seg_map[j] = m;
-      /* If elf_segment_map is not from map_sections_to_segments, the
-	 sections may not be correctly ordered.  NOTE: sorting should
-	 not be done to the PT_NOTE section of a corefile, which may
-	 contain several pseudo-sections artificially created by bfd.
-	 Sorting these pseudo-sections breaks things badly.  */
-      if (m->count > 1
-	  && !(elf_elfheader (abfd)->e_type == ET_CORE
-	       && m->p_type == PT_NOTE))
-	{
-	  for (i = 0; i < m->count; i++)
-	    m->sections[i]->target_index = i;
-	  qsort (m->sections, (size_t) m->count, sizeof (asection *),
-		 elf_sort_sections);
-	}
-    }
-  if (alloc > 1)
-    qsort (sorted_seg_map, alloc, sizeof (*sorted_seg_map),
-	   elf_sort_segments);
-
-  maxpagesize = 1;
-  if ((abfd->flags & D_PAGED) != 0)
-    {
-      if (link_info != NULL)
-	maxpagesize = link_info->maxpagesize;
-      else
-	maxpagesize = bed->maxpagesize;
-    }
-
-  /* Sections must map to file offsets past the ELF file header.  */
-  off = bed->s->sizeof_ehdr;
-  /* And if one of the PT_LOAD headers doesn't include the program
-     headers then we'll be mapping program headers in the usual
-     position after the ELF file header.  */
-  phdr_load_seg = NULL;
-  for (j = 0; j < alloc; j++)
-    {
-      m = sorted_seg_map[j];
-      if (m->p_type != PT_LOAD)
-	break;
-      if (m->includes_phdrs)
-	{
-	  phdr_load_seg = m;
-	  break;
-	}
-    }
-  if (phdr_load_seg == NULL)
-    off += actual * bed->s->sizeof_phdr;
-
-  for (j = 0; j < alloc; j++)
-    {
-      asection **secpp;
-      bfd_vma off_adjust;  /* Octets.  */
-      bfd_boolean no_contents;
-
-      /* An ELF segment (described by Elf_Internal_Phdr) may contain a
-	 number of sections with contents contributing to both p_filesz
-	 and p_memsz, followed by a number of sections with no contents
-	 that just contribute to p_memsz.  In this loop, OFF tracks next
-	 available file offset for PT_LOAD and PT_NOTE segments.  */
-      m = sorted_seg_map[j];
-      p = phdrs + m->idx;
-      p->p_type = m->p_type;
-      p->p_flags = m->p_flags;
-
-      if (m->count == 0)
-	p->p_vaddr = m->p_vaddr_offset * opb;
-      else
-	p->p_vaddr = (m->sections[0]->vma + m->p_vaddr_offset) * opb;
-
-      if (m->p_paddr_valid)
-	p->p_paddr = m->p_paddr;
-      else if (m->count == 0)
-	p->p_paddr = 0;
-      else
-	p->p_paddr = (m->sections[0]->lma + m->p_vaddr_offset) * opb;
-
-      if (p->p_type == PT_LOAD
-	  && (abfd->flags & D_PAGED) != 0)
-	{
-	  /* p_align in demand paged PT_LOAD segments effectively stores
-	     the maximum page size.  When copying an executable with
-	     objcopy, we set m->p_align from the input file.  Use this
-	     value for maxpagesize rather than bed->maxpagesize, which
-	     may be different.  Note that we use maxpagesize for PT_TLS
-	     segment alignment later in this function, so we are relying
-	     on at least one PT_LOAD segment appearing before a PT_TLS
-	     segment.  */
-	  if (m->p_align_valid)
-	    maxpagesize = m->p_align;
-
-	  p->p_align = maxpagesize;
-	}
-      else if (m->p_align_valid)
-	p->p_align = m->p_align;
-      else if (m->count == 0)
-	p->p_align = 1 << bed->s->log_file_align;
-
-      if (m == phdr_load_seg)
-	{
-	  if (!m->includes_filehdr)
-	    p->p_offset = off;
-	  off += actual * bed->s->sizeof_phdr;
-	}
-
-      no_contents = FALSE;
-      off_adjust = 0;
-      if (p->p_type == PT_LOAD
-	  && m->count > 0)
-	{
-	  bfd_size_type align;  /* Bytes.  */
-	  unsigned int align_power = 0;
-
-	  if (m->p_align_valid)
-	    align = p->p_align;
-	  else
-	    {
-	      for (i = 0, secpp = m->sections; i < m->count; i++, secpp++)
-		{
-		  unsigned int secalign;
-
-		  secalign = bfd_section_alignment (*secpp);
-		  if (secalign > align_power)
-		    align_power = secalign;
-		}
-	      align = (bfd_size_type) 1 << align_power;
-	      if (align < maxpagesize)
-		align = maxpagesize;
-	    }
-
-	  for (i = 0; i < m->count; i++)
-	    if ((m->sections[i]->flags & (SEC_LOAD | SEC_HAS_CONTENTS)) == 0)
-	      /* If we aren't making room for this section, then
-		 it must be SHT_NOBITS regardless of what we've
-		 set via struct bfd_elf_special_section.  */
-	      elf_section_type (m->sections[i]) = SHT_NOBITS;
-
-	  /* Find out whether this segment contains any loadable
-	     sections.  */
-	  no_contents = TRUE;
-	  for (i = 0; i < m->count; i++)
-	    if (elf_section_type (m->sections[i]) != SHT_NOBITS)
-	      {
-		no_contents = FALSE;
-		break;
-	      }
-
-	  off_adjust = vma_page_aligned_bias (p->p_vaddr, off, align * opb);
-
-	  /* Broken hardware and/or kernel require that files do not
-	     map the same page with different permissions on some hppa
-	     processors.  */
-	  if (j != 0
-	      && (abfd->flags & D_PAGED) != 0
-	      && bed->no_page_alias
-	      && (off & (maxpagesize - 1)) != 0
-	      && ((off & -maxpagesize)
-		  == ((off + off_adjust) & -maxpagesize)))
-	    off_adjust += maxpagesize;
-	  off += off_adjust;
-	  if (no_contents)
-	    {
-	      /* We shouldn't need to align the segment on disk since
-		 the segment doesn't need file space, but the gABI
-		 arguably requires the alignment and glibc ld.so
-		 checks it.  So to comply with the alignment
-		 requirement but not waste file space, we adjust
-		 p_offset for just this segment.  (OFF_ADJUST is
-		 subtracted from OFF later.)  This may put p_offset
-		 past the end of file, but that shouldn't matter.  */
-	    }
-	  else
-	    off_adjust = 0;
-	}
-      /* Make sure the .dynamic section is the first section in the
-	 PT_DYNAMIC segment.  */
-      else if (p->p_type == PT_DYNAMIC
-	       && m->count > 1
-	       && strcmp (m->sections[0]->name, ".dynamic") != 0)
-	{
-	  _bfd_error_handler
-	    (_("%pB: The first section in the PT_DYNAMIC segment"
-	       " is not the .dynamic section"),
-	     abfd);
-	  bfd_set_error (bfd_error_bad_value);
-	  return FALSE;
-	}
-      /* Set the note section type to SHT_NOTE.  */
-      else if (p->p_type == PT_NOTE)
-	for (i = 0; i < m->count; i++)
-	  elf_section_type (m->sections[i]) = SHT_NOTE;
-
-      if (m->includes_filehdr)
-	{
-	  if (!m->p_flags_valid)
-	    p->p_flags |= PF_R;
-	  p->p_filesz = bed->s->sizeof_ehdr;
-	  p->p_memsz = bed->s->sizeof_ehdr;
-	  if (p->p_type == PT_LOAD)
-	    {
-	      if (m->count > 0)
-		{
-		  if (p->p_vaddr < (bfd_vma) off
-		      || (!m->p_paddr_valid
-			  && p->p_paddr < (bfd_vma) off))
-		    {
-		      _bfd_error_handler
-			(_("%pB: not enough room for program headers,"
-			   " try linking with -N"),
-			 abfd);
-		      bfd_set_error (bfd_error_bad_value);
-		      return FALSE;
-		    }
-		  p->p_vaddr -= off;
-		  if (!m->p_paddr_valid)
-		    p->p_paddr -= off;
-		}
-	    }
-	  else if (sorted_seg_map[0]->includes_filehdr)
-	    {
-	      Elf_Internal_Phdr *filehdr = phdrs + sorted_seg_map[0]->idx;
-	      p->p_vaddr = filehdr->p_vaddr;
-	      if (!m->p_paddr_valid)
-		p->p_paddr = filehdr->p_paddr;
-	    }
-	}
-
-      if (m->includes_phdrs)
-	{
-	  if (!m->p_flags_valid)
-	    p->p_flags |= PF_R;
-	  p->p_filesz += actual * bed->s->sizeof_phdr;
-	  p->p_memsz += actual * bed->s->sizeof_phdr;
-	  if (!m->includes_filehdr)
-	    {
-	      if (p->p_type == PT_LOAD)
-		{
-		  elf_elfheader (abfd)->e_phoff = p->p_offset;
-		  if (m->count > 0)
-		    {
-		      p->p_vaddr -= off - p->p_offset;
-		      if (!m->p_paddr_valid)
-			p->p_paddr -= off - p->p_offset;
-		    }
-		}
-	      else if (phdr_load_seg != NULL)
-		{
-		  Elf_Internal_Phdr *phdr = phdrs + phdr_load_seg->idx;
-		  bfd_vma phdr_off = 0;  /* Octets.  */
-		  if (phdr_load_seg->includes_filehdr)
-		    phdr_off = bed->s->sizeof_ehdr;
-		  p->p_vaddr = phdr->p_vaddr + phdr_off;
-		  if (!m->p_paddr_valid)
-		    p->p_paddr = phdr->p_paddr + phdr_off;
-		  p->p_offset = phdr->p_offset + phdr_off;
-		}
-	      else
-		p->p_offset = bed->s->sizeof_ehdr;
-	    }
-	}
-
-      if (p->p_type == PT_LOAD
-	  || (p->p_type == PT_NOTE && bfd_get_format (abfd) == bfd_core))
-	{
-	  if (!m->includes_filehdr && !m->includes_phdrs)
-	    {
-	      p->p_offset = off;
-	      if (no_contents)
-		{
-		  /* Put meaningless p_offset for PT_LOAD segments
-		     without file contents somewhere within the first
-		     page, in an attempt to not point past EOF.  */
-		  bfd_size_type align = maxpagesize;
-		  if (align < p->p_align)
-		    align = p->p_align;
-		  if (align < 1)
-		    align = 1;
-		  p->p_offset = off % align;
-		}
-	    }
-	  else
-	    {
-	      file_ptr adjust;  /* Octets.  */
-
-	      adjust = off - (p->p_offset + p->p_filesz);
-	      if (!no_contents)
-		p->p_filesz += adjust;
-	      p->p_memsz += adjust;
-	    }
-	}
-
-      /* Set up p_filesz, p_memsz, p_align and p_flags from the section
-	 maps.  Set filepos for sections in PT_LOAD segments, and in
-	 core files, for sections in PT_NOTE segments.
-	 assign_file_positions_for_non_load_sections will set filepos
-	 for other sections and update p_filesz for other segments.  */
-      for (i = 0, secpp = m->sections; i < m->count; i++, secpp++)
-	{
-	  asection *sec;
-	  bfd_size_type align;
-	  Elf_Internal_Shdr *this_hdr;
-
-	  sec = *secpp;
-	  this_hdr = &elf_section_data (sec)->this_hdr;
-	  align = (bfd_size_type) 1 << bfd_section_alignment (sec);
-
-	  if ((p->p_type == PT_LOAD
-	       || p->p_type == PT_TLS)
-	      && (this_hdr->sh_type != SHT_NOBITS
-		  || ((this_hdr->sh_flags & SHF_ALLOC) != 0
-		      && ((this_hdr->sh_flags & SHF_TLS) == 0
-			  || p->p_type == PT_TLS))))
-	    {
-	      bfd_vma p_start = p->p_paddr;                /* Octets.  */
-	      bfd_vma p_end = p_start + p->p_memsz;        /* Octets.  */
-	      bfd_vma s_start = sec->lma * opb;            /* Octets.  */
-	      bfd_vma adjust = s_start - p_end;            /* Octets.  */
-
-	      if (adjust != 0
-		  && (s_start < p_end
-		      || p_end < p_start))
-		{
-		  _bfd_error_handler
-		    /* xgettext:c-format */
-		    (_("%pB: section %pA lma %#" PRIx64 " adjusted to %#" PRIx64),
-		     abfd, sec, (uint64_t) s_start / opb,
-		     (uint64_t) p_end / opb);
-		  adjust = 0;
-		  sec->lma = p_end / opb;
-		}
-	      p->p_memsz += adjust;
-
-	      if (p->p_type == PT_LOAD)
-		{
-		  if (this_hdr->sh_type != SHT_NOBITS)
-		    {
-		      off_adjust = 0;
-		      if (p->p_filesz + adjust < p->p_memsz)
-			{
-			  /* We have a PROGBITS section following NOBITS ones.
-			     Allocate file space for the NOBITS section(s) and
-			     zero it.  */
-			  adjust = p->p_memsz - p->p_filesz;
-			  if (!write_zeros (abfd, off, adjust))
-			    return FALSE;
-			}
-		    }
-		  /* We only adjust sh_offset in SHT_NOBITS sections
-		     as would seem proper for their address when the
-		     section is first in the segment.  sh_offset
-		     doesn't really have any significance for
-		     SHT_NOBITS anyway, apart from a notional position
-		     relative to other sections.  Historically we
-		     didn't bother with adjusting sh_offset and some
-		     programs depend on it not being adjusted.  See
-		     pr12921 and pr25662.  */
-		  if (this_hdr->sh_type != SHT_NOBITS || i == 0)
-		    {
-		      off += adjust;
-		      if (this_hdr->sh_type == SHT_NOBITS)
-			off_adjust += adjust;
-		    }
-		}
-	      if (this_hdr->sh_type != SHT_NOBITS)
-		p->p_filesz += adjust;
-	    }
-
-	  if (p->p_type == PT_NOTE && bfd_get_format (abfd) == bfd_core)
-	    {
-	      /* The section at i == 0 is the one that actually contains
-		 everything.  */
-	      if (i == 0)
-		{
-		  this_hdr->sh_offset = sec->filepos = off;
-		  off += this_hdr->sh_size;
-		  p->p_filesz = this_hdr->sh_size;
-		  p->p_memsz = 0;
-		  p->p_align = 1;
-		}
-	      else
-		{
-		  /* The rest are fake sections that shouldn't be written.  */
-		  sec->filepos = 0;
-		  sec->size = 0;
-		  sec->flags = 0;
-		  continue;
-		}
-	    }
-	  else
-	    {
-	      if (p->p_type == PT_LOAD)
-		{
-		  this_hdr->sh_offset = sec->filepos = off;
-		  if (this_hdr->sh_type != SHT_NOBITS)
-		    off += this_hdr->sh_size;
-		}
-	      else if (this_hdr->sh_type == SHT_NOBITS
-		       && (this_hdr->sh_flags & SHF_TLS) != 0
-		       && this_hdr->sh_offset == 0)
-		{
-		  /* This is a .tbss section that didn't get a PT_LOAD.
-		     (See _bfd_elf_map_sections_to_segments "Create a
-		     final PT_LOAD".)  Set sh_offset to the value it
-		     would have if we had created a zero p_filesz and
-		     p_memsz PT_LOAD header for the section.  This
-		     also makes the PT_TLS header have the same
-		     p_offset value.  */
-		  bfd_vma adjust = vma_page_aligned_bias (this_hdr->sh_addr,
-							  off, align);
-		  this_hdr->sh_offset = sec->filepos = off + adjust;
-		}
-
-	      if (this_hdr->sh_type != SHT_NOBITS)
-		{
-		  p->p_filesz += this_hdr->sh_size;
-		  /* A load section without SHF_ALLOC is something like
-		     a note section in a PT_NOTE segment.  These take
-		     file space but are not loaded into memory.  */
-		  if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
-		    p->p_memsz += this_hdr->sh_size;
-		}
-	      else if ((this_hdr->sh_flags & SHF_ALLOC) != 0)
-		{
-		  if (p->p_type == PT_TLS)
-		    p->p_memsz += this_hdr->sh_size;
-
-		  /* .tbss is special.  It doesn't contribute to p_memsz of
-		     normal segments.  */
-		  else if ((this_hdr->sh_flags & SHF_TLS) == 0)
-		    p->p_memsz += this_hdr->sh_size;
-		}
-
-	      if (align > p->p_align
-		  && !m->p_align_valid
-		  && (p->p_type != PT_LOAD
-		      || (abfd->flags & D_PAGED) == 0))
-		p->p_align = align;
-	    }
-
-	  if (!m->p_flags_valid)
-	    {
-	      p->p_flags |= PF_R;
-	      if ((this_hdr->sh_flags & SHF_EXECINSTR) != 0)
-		p->p_flags |= PF_X;
-	      if ((this_hdr->sh_flags & SHF_WRITE) != 0)
-		p->p_flags |= PF_W;
-	    }
-	}
-
-      off -= off_adjust;
-
-      /* PR ld/20815 - Check that the program header segment, if
-	 present, will be loaded into memory.  */
-      if (p->p_type == PT_PHDR
-	  && phdr_load_seg == NULL
-	  && !(bed->elf_backend_allow_non_load_phdr != NULL
-	       && bed->elf_backend_allow_non_load_phdr (abfd, phdrs, alloc)))
-	{
-	  /* The fix for this error is usually to edit the linker script being
-	     used and set up the program headers manually.  Either that or
-	     leave room for the headers at the start of the SECTIONS.  */
-	  _bfd_error_handler (_("%pB: error: PHDR segment not covered"
-				" by LOAD segment"),
-			      abfd);
-	  if (link_info == NULL)
-	    return FALSE;
-	  /* Arrange for the linker to exit with an error, deleting
-	     the output file unless --noinhibit-exec is given.  */
-	  link_info->callbacks->info ("%X");
-	}
-
-      /* Check that all sections are in a PT_LOAD segment.
-	 Don't check funky gdb generated core files.  */
-      if (p->p_type == PT_LOAD && bfd_get_format (abfd) != bfd_core)
-	{
-	  bfd_boolean check_vma = TRUE;
-
-	  for (i = 1; i < m->count; i++)
-	    if (m->sections[i]->vma == m->sections[i - 1]->vma
-		&& ELF_SECTION_SIZE (&(elf_section_data (m->sections[i])
-				       ->this_hdr), p) != 0
-		&& ELF_SECTION_SIZE (&(elf_section_data (m->sections[i - 1])
-				       ->this_hdr), p) != 0)
-	      {
-		/* Looks like we have overlays packed into the segment.  */
-		check_vma = FALSE;
-		break;
-	      }
-
-	  for (i = 0; i < m->count; i++)
-	    {
-	      Elf_Internal_Shdr *this_hdr;
-	      asection *sec;
-
-	      sec = m->sections[i];
-	      this_hdr = &(elf_section_data(sec)->this_hdr);
-	      if (!ELF_SECTION_IN_SEGMENT_1 (this_hdr, p, check_vma, 0)
-		  && !ELF_TBSS_SPECIAL (this_hdr, p))
-		{
-		  _bfd_error_handler
-		    /* xgettext:c-format */
-		    (_("%pB: section `%pA' can't be allocated in segment %d"),
-		     abfd, sec, j);
-		  print_segment_map (m);
-		}
-	    }
-	}
-    }
-
-  elf_next_file_pos (abfd) = off;
-
-  if (link_info != NULL
-      && phdr_load_seg != NULL
-      && phdr_load_seg->includes_filehdr)
-    {
-      /* There is a segment that contains both the file headers and the
-	 program headers, so provide a symbol __ehdr_start pointing there.
-	 A program can use this to examine itself robustly.  */
-
-      struct elf_link_hash_entry *hash
-	= elf_link_hash_lookup (elf_hash_table (link_info), "__ehdr_start",
-				FALSE, FALSE, TRUE);
-      /* If the symbol was referenced and not defined, define it.  */
-      if (hash != NULL
-	  && (hash->root.type == bfd_link_hash_new
-	      || hash->root.type == bfd_link_hash_undefined
-	      || hash->root.type == bfd_link_hash_undefweak
-	      || hash->root.type == bfd_link_hash_common))
-	{
-	  asection *s = NULL;
-	  bfd_vma filehdr_vaddr = phdrs[phdr_load_seg->idx].p_vaddr / opb;
-
-	  if (phdr_load_seg->count != 0)
-	    /* The segment contains sections, so use the first one.  */
-	    s = phdr_load_seg->sections[0];
-	  else
-	    /* Use the first (i.e. lowest-addressed) section in any segment.  */
-	    for (m = elf_seg_map (abfd); m != NULL; m = m->next)
-	      if (m->p_type == PT_LOAD && m->count != 0)
-		{
-		  s = m->sections[0];
-		  break;
-		}
-
-	  if (s != NULL)
-	    {
-	      hash->root.u.def.value = filehdr_vaddr - s->vma;
-	      hash->root.u.def.section = s;
-	    }
-	  else
-	    {
-	      hash->root.u.def.value = filehdr_vaddr;
-	      hash->root.u.def.section = bfd_abs_section_ptr;
-	    }
-
-	  hash->root.type = bfd_link_hash_defined;
-	  hash->def_regular = 1;
-	  hash->non_elf = 0;
-	}
-    }
-
-  return TRUE;
-}
-
-/* Determine if a bfd is a debuginfo file.  Unfortunately there
-   is no defined method for detecting such files, so we have to
-   use heuristics instead.  */
-
-bfd_boolean
-is_debuginfo_file (bfd *abfd)
-{
-  if (abfd == NULL || bfd_get_flavour (abfd) != bfd_target_elf_flavour)
-    return FALSE;
-
-  Elf_Internal_Shdr **start_headers = elf_elfsections (abfd);
-  Elf_Internal_Shdr **end_headers = start_headers + elf_numsections (abfd);
-  Elf_Internal_Shdr **headerp;
-
-  for (headerp = start_headers; headerp < end_headers; headerp ++)
-    {
-      Elf_Internal_Shdr *header = * headerp;
-
-      /* Debuginfo files do not have any allocated SHT_PROGBITS sections.
-	 The only allocated sections are SHT_NOBITS or SHT_NOTES.  */
-      if ((header->sh_flags & SHF_ALLOC) == SHF_ALLOC
-	  && header->sh_type != SHT_NOBITS
-	  && header->sh_type != SHT_NOTE)
-	return FALSE;
-    }
-
-  return TRUE;
-}
-
-/* Assign file positions for the other sections, except for compressed debugging
-   and other sections assigned in _bfd_elf_assign_file_positions_for_non_load().  */
-
-static bfd_boolean
-assign_file_positions_for_non_load_sections (bfd *abfd,
-					     struct bfd_link_info *link_info)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  Elf_Internal_Shdr **i_shdrpp;
-  Elf_Internal_Shdr **hdrpp, **end_hdrpp;
-  Elf_Internal_Phdr *phdrs;
-  Elf_Internal_Phdr *p;
-  struct elf_segment_map *m;
-  file_ptr off;
-  unsigned int opb = bfd_octets_per_byte (abfd, NULL);
-  bfd_vma maxpagesize;
-
-  if (link_info != NULL)
-    maxpagesize = link_info->maxpagesize;
-  else
-    maxpagesize = bed->maxpagesize;
-  i_shdrpp = elf_elfsections (abfd);
-  end_hdrpp = i_shdrpp + elf_numsections (abfd);
-  off = elf_next_file_pos (abfd);
-  for (hdrpp = i_shdrpp + 1; hdrpp < end_hdrpp; hdrpp++)
-    {
-      Elf_Internal_Shdr *hdr;
-
-      hdr = *hdrpp;
-      if (hdr->bfd_section != NULL
-	  && (hdr->bfd_section->filepos != 0
-	      || (hdr->sh_type == SHT_NOBITS
-		  && hdr->contents == NULL)))
-	BFD_ASSERT (hdr->sh_offset == hdr->bfd_section->filepos);
-      else if ((hdr->sh_flags & SHF_ALLOC) != 0)
-	{
-	  if (hdr->sh_size != 0
-	      /* PR 24717 - debuginfo files are known to be not strictly
-		 compliant with the ELF standard.  In particular they often
-		 have .note.gnu.property sections that are outside of any
-		 loadable segment.  This is not a problem for such files,
-		 so do not warn about them.  */
-	      && ! is_debuginfo_file (abfd))
-	    _bfd_error_handler
-	      /* xgettext:c-format */
-	      (_("%pB: warning: allocated section `%s' not in segment"),
-	       abfd,
-	       (hdr->bfd_section == NULL
-		? "*unknown*"
-		: hdr->bfd_section->name));
-	  /* We don't need to page align empty sections.  */
-	  if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0)
-	    off += vma_page_aligned_bias (hdr->sh_addr, off,
-					  maxpagesize);
-	  else
-	    off += vma_page_aligned_bias (hdr->sh_addr, off,
-					  hdr->sh_addralign);
-	  off = _bfd_elf_assign_file_position_for_section (hdr, off,
-							   FALSE);
-	}
-      else if (((hdr->sh_type == SHT_REL || hdr->sh_type == SHT_RELA)
-		&& hdr->bfd_section == NULL)
-	       /* We don't know the offset of these sections yet: their size has
-		  not been decided.  */
-	       || (hdr->bfd_section != NULL
-		   && (hdr->bfd_section->flags & SEC_ELF_COMPRESS
-		       || (bfd_section_is_ctf (hdr->bfd_section)
-			   && abfd->is_linker_output)))
-	       || hdr == i_shdrpp[elf_onesymtab (abfd)]
-	       || (elf_symtab_shndx_list (abfd) != NULL
-		   && hdr == i_shdrpp[elf_symtab_shndx_list (abfd)->ndx])
-	       || hdr == i_shdrpp[elf_strtab_sec (abfd)]
-	       || hdr == i_shdrpp[elf_shstrtab_sec (abfd)])
-	hdr->sh_offset = -1;
-      else
-	off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
-    }
-  elf_next_file_pos (abfd) = off;
-
-  /* Now that we have set the section file positions, we can set up
-     the file positions for the non PT_LOAD segments.  */
-  phdrs = elf_tdata (abfd)->phdr;
-  for (m = elf_seg_map (abfd), p = phdrs; m != NULL; m = m->next, p++)
-    {
-      if (p->p_type == PT_GNU_RELRO)
-	{
-	  bfd_vma start, end;  /* Bytes.  */
-	  bfd_boolean ok;
-
-	  if (link_info != NULL)
-	    {
-	      /* During linking the range of the RELRO segment is passed
-		 in link_info.  Note that there may be padding between
-		 relro_start and the first RELRO section.  */
-	      start = link_info->relro_start;
-	      end = link_info->relro_end;
-	    }
-	  else if (m->count != 0)
-	    {
-	      if (!m->p_size_valid)
-		abort ();
-	      start = m->sections[0]->vma;
-	      end = start + m->p_size / opb;
-	    }
-	  else
-	    {
-	      start = 0;
-	      end = 0;
-	    }
-
-	  ok = FALSE;
-	  if (start < end)
-	    {
-	      struct elf_segment_map *lm;
-	      const Elf_Internal_Phdr *lp;
-	      unsigned int i;
-
-	      /* Find a LOAD segment containing a section in the RELRO
-		 segment.  */
-	      for (lm = elf_seg_map (abfd), lp = phdrs;
-		   lm != NULL;
-		   lm = lm->next, lp++)
-		{
-		  if (lp->p_type == PT_LOAD
-		      && lm->count != 0
-		      && (lm->sections[lm->count - 1]->vma
-			  + (!IS_TBSS (lm->sections[lm->count - 1])
-			     ? lm->sections[lm->count - 1]->size / opb
-			     : 0)) > start
-		      && lm->sections[0]->vma < end)
-		    break;
-		}
-
-	      if (lm != NULL)
-		{
-		  /* Find the section starting the RELRO segment.  */
-		  for (i = 0; i < lm->count; i++)
-		    {
-		      asection *s = lm->sections[i];
-		      if (s->vma >= start
-			  && s->vma < end
-			  && s->size != 0)
-			break;
-		    }
-
-		  if (i < lm->count)
-		    {
-		      p->p_vaddr = lm->sections[i]->vma * opb;
-		      p->p_paddr = lm->sections[i]->lma * opb;
-		      p->p_offset = lm->sections[i]->filepos;
-		      p->p_memsz = end * opb - p->p_vaddr;
-		      p->p_filesz = p->p_memsz;
-
-		      /* The RELRO segment typically ends a few bytes
-			 into .got.plt but other layouts are possible.
-			 In cases where the end does not match any
-			 loaded section (for instance is in file
-			 padding), trim p_filesz back to correspond to
-			 the end of loaded section contents.  */
-		      if (p->p_filesz > lp->p_vaddr + lp->p_filesz - p->p_vaddr)
-			p->p_filesz = lp->p_vaddr + lp->p_filesz - p->p_vaddr;
-
-		      /* Preserve the alignment and flags if they are
-			 valid.  The gold linker generates RW/4 for
-			 the PT_GNU_RELRO section.  It is better for
-			 objcopy/strip to honor these attributes
-			 otherwise gdb will choke when using separate
-			 debug files.  */
-		      if (!m->p_align_valid)
-			p->p_align = 1;
-		      if (!m->p_flags_valid)
-			p->p_flags = PF_R;
-		      ok = TRUE;
-		    }
-		}
-	    }
-	  if (link_info != NULL)
-	    BFD_ASSERT (ok);
-	  if (!ok)
-	    memset (p, 0, sizeof *p);
-	}
-      else if (p->p_type == PT_GNU_STACK)
-	{
-	  if (m->p_size_valid)
-	    p->p_memsz = m->p_size;
-	}
-      else if (m->count != 0)
-	{
-	  unsigned int i;
-
-	  if (p->p_type != PT_LOAD
-	      && (p->p_type != PT_NOTE
-		  || bfd_get_format (abfd) != bfd_core))
-	    {
-	      /* A user specified segment layout may include a PHDR
-		 segment that overlaps with a LOAD segment...  */
-	      if (p->p_type == PT_PHDR)
-		{
-		  m->count = 0;
-		  continue;
-		}
-
-	      if (m->includes_filehdr || m->includes_phdrs)
-		{
-		  /* PR 17512: file: 2195325e.  */
-		  _bfd_error_handler
-		    (_("%pB: error: non-load segment %d includes file header "
-		       "and/or program header"),
-		     abfd, (int) (p - phdrs));
-		  return FALSE;
-		}
-
-	      p->p_filesz = 0;
-	      p->p_offset = m->sections[0]->filepos;
-	      for (i = m->count; i-- != 0;)
-		{
-		  asection *sect = m->sections[i];
-		  Elf_Internal_Shdr *hdr = &elf_section_data (sect)->this_hdr;
-		  if (hdr->sh_type != SHT_NOBITS)
-		    {
-		      p->p_filesz = (sect->filepos - m->sections[0]->filepos
-				     + hdr->sh_size);
-		      break;
-		    }
-		}
-	    }
-	}
-    }
-
-  return TRUE;
-}
-
-static elf_section_list *
-find_section_in_list (unsigned int i, elf_section_list * list)
-{
-  for (;list != NULL; list = list->next)
-    if (list->ndx == i)
-      break;
-  return list;
-}
-
-/* Work out the file positions of all the sections.  This is called by
-   _bfd_elf_compute_section_file_positions.  All the section sizes and
-   VMAs must be known before this is called.
-
-   Reloc sections come in two flavours: Those processed specially as
-   "side-channel" data attached to a section to which they apply, and those that
-   bfd doesn't process as relocations.  The latter sort are stored in a normal
-   bfd section by bfd_section_from_shdr.  We don't consider the former sort
-   here, unless they form part of the loadable image.  Reloc sections not
-   assigned here (and compressed debugging sections and CTF sections which
-   nothing else in the file can rely upon) will be handled later by
-   assign_file_positions_for_relocs.
-
-   We also don't set the positions of the .symtab and .strtab here.  */
-
-static bfd_boolean
-assign_file_positions_except_relocs (bfd *abfd,
-				     struct bfd_link_info *link_info)
-{
-  struct elf_obj_tdata *tdata = elf_tdata (abfd);
-  Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd);
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  unsigned int alloc;
-
-  if ((abfd->flags & (EXEC_P | DYNAMIC)) == 0
-      && bfd_get_format (abfd) != bfd_core)
-    {
-      Elf_Internal_Shdr ** const i_shdrpp = elf_elfsections (abfd);
-      unsigned int num_sec = elf_numsections (abfd);
-      Elf_Internal_Shdr **hdrpp;
-      unsigned int i;
-      file_ptr off;
-
-      /* Start after the ELF header.  */
-      off = i_ehdrp->e_ehsize;
-
-      /* We are not creating an executable, which means that we are
-	 not creating a program header, and that the actual order of
-	 the sections in the file is unimportant.  */
-      for (i = 1, hdrpp = i_shdrpp + 1; i < num_sec; i++, hdrpp++)
-	{
-	  Elf_Internal_Shdr *hdr;
-
-	  hdr = *hdrpp;
-	  if (((hdr->sh_type == SHT_REL || hdr->sh_type == SHT_RELA)
-	       && hdr->bfd_section == NULL)
-	      /* Do not assign offsets for these sections yet: we don't know
-		 their sizes.  */
-	      || (hdr->bfd_section != NULL
-		  && (hdr->bfd_section->flags & SEC_ELF_COMPRESS
-		      || (bfd_section_is_ctf (hdr->bfd_section)
-			  && abfd->is_linker_output)))
-	      || i == elf_onesymtab (abfd)
-	      || (elf_symtab_shndx_list (abfd) != NULL
-		  && hdr == i_shdrpp[elf_symtab_shndx_list (abfd)->ndx])
-	      || i == elf_strtab_sec (abfd)
-	      || i == elf_shstrtab_sec (abfd))
-	    {
-	      hdr->sh_offset = -1;
-	    }
-	  else
-	    off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
-	}
-
-      elf_next_file_pos (abfd) = off;
-      elf_program_header_size (abfd) = 0;
-    }
-  else
-    {
-      /* Assign file positions for the loaded sections based on the
-	 assignment of sections to segments.  */
-      if (!assign_file_positions_for_load_sections (abfd, link_info))
-	return FALSE;
-
-      /* And for non-load sections.  */
-      if (!assign_file_positions_for_non_load_sections (abfd, link_info))
-	return FALSE;
-    }
-
-  if (!(*bed->elf_backend_modify_headers) (abfd, link_info))
-    return FALSE;
-
-  /* Write out the program headers.  */
-  alloc = i_ehdrp->e_phnum;
-  if (alloc != 0)
-    {
-      if (bfd_seek (abfd, i_ehdrp->e_phoff, SEEK_SET) != 0
-	  || bed->s->write_out_phdrs (abfd, tdata->phdr, alloc) != 0)
-	return FALSE;
-    }
-
-  return TRUE;
-}
-
-bfd_boolean
-_bfd_elf_init_file_header (bfd *abfd,
-			   struct bfd_link_info *info ATTRIBUTE_UNUSED)
-{
-  Elf_Internal_Ehdr *i_ehdrp;	/* Elf file header, internal form.  */
-  struct elf_strtab_hash *shstrtab;
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-
-  i_ehdrp = elf_elfheader (abfd);
-
-  shstrtab = _bfd_elf_strtab_init ();
-  if (shstrtab == NULL)
-    return FALSE;
-
-  elf_shstrtab (abfd) = shstrtab;
-
-  i_ehdrp->e_ident[EI_MAG0] = ELFMAG0;
-  i_ehdrp->e_ident[EI_MAG1] = ELFMAG1;
-  i_ehdrp->e_ident[EI_MAG2] = ELFMAG2;
-  i_ehdrp->e_ident[EI_MAG3] = ELFMAG3;
-
-  i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass;
-  i_ehdrp->e_ident[EI_DATA] =
-    bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB;
-  i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current;
-
-  if ((abfd->flags & DYNAMIC) != 0)
-    i_ehdrp->e_type = ET_DYN;
-  else if ((abfd->flags & EXEC_P) != 0)
-    i_ehdrp->e_type = ET_EXEC;
-  else if (bfd_get_format (abfd) == bfd_core)
-    i_ehdrp->e_type = ET_CORE;
-  else
-    i_ehdrp->e_type = ET_REL;
-
-  switch (bfd_get_arch (abfd))
-    {
-    case bfd_arch_unknown:
-      i_ehdrp->e_machine = EM_NONE;
-      break;
-
-      /* There used to be a long list of cases here, each one setting
-	 e_machine to the same EM_* macro #defined as ELF_MACHINE_CODE
-	 in the corresponding bfd definition.  To avoid duplication,
-	 the switch was removed.  Machines that need special handling
-	 can generally do it in elf_backend_final_write_processing(),
-	 unless they need the information earlier than the final write.
-	 Such need can generally be supplied by replacing the tests for
-	 e_machine with the conditions used to determine it.  */
-    default:
-      i_ehdrp->e_machine = bed->elf_machine_code;
-    }
-
-  i_ehdrp->e_version = bed->s->ev_current;
-  i_ehdrp->e_ehsize = bed->s->sizeof_ehdr;
-
-  /* No program header, for now.  */
-  i_ehdrp->e_phoff = 0;
-  i_ehdrp->e_phentsize = 0;
-  i_ehdrp->e_phnum = 0;
-
-  /* Each bfd section is section header entry.  */
-  i_ehdrp->e_entry = bfd_get_start_address (abfd);
-  i_ehdrp->e_shentsize = bed->s->sizeof_shdr;
-
-  elf_tdata (abfd)->symtab_hdr.sh_name =
-    (unsigned int) _bfd_elf_strtab_add (shstrtab, ".symtab", FALSE);
-  elf_tdata (abfd)->strtab_hdr.sh_name =
-    (unsigned int) _bfd_elf_strtab_add (shstrtab, ".strtab", FALSE);
-  elf_tdata (abfd)->shstrtab_hdr.sh_name =
-    (unsigned int) _bfd_elf_strtab_add (shstrtab, ".shstrtab", FALSE);
-  if (elf_tdata (abfd)->symtab_hdr.sh_name == (unsigned int) -1
-      || elf_tdata (abfd)->strtab_hdr.sh_name == (unsigned int) -1
-      || elf_tdata (abfd)->shstrtab_hdr.sh_name == (unsigned int) -1)
-    return FALSE;
-
-  return TRUE;
-}
-
-/* Set e_type in ELF header to ET_EXEC for -pie -Ttext-segment=.
-
-   FIXME: We used to have code here to sort the PT_LOAD segments into
-   ascending order, as per the ELF spec.  But this breaks some programs,
-   including the Linux kernel.  But really either the spec should be
-   changed or the programs updated.  */
-
-bfd_boolean
-_bfd_elf_modify_headers (bfd *obfd, struct bfd_link_info *link_info)
-{
-  if (link_info != NULL && bfd_link_pie (link_info))
-    {
-      Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (obfd);
-      unsigned int num_segments = i_ehdrp->e_phnum;
-      struct elf_obj_tdata *tdata = elf_tdata (obfd);
-      Elf_Internal_Phdr *segment = tdata->phdr;
-      Elf_Internal_Phdr *end_segment = &segment[num_segments];
-
-      /* Find the lowest p_vaddr in PT_LOAD segments.  */
-      bfd_vma p_vaddr = (bfd_vma) -1;
-      for (; segment < end_segment; segment++)
-	if (segment->p_type == PT_LOAD && p_vaddr > segment->p_vaddr)
-	  p_vaddr = segment->p_vaddr;
-
-      /* Set e_type to ET_EXEC if the lowest p_vaddr in PT_LOAD
-	 segments is non-zero.  */
-      if (p_vaddr)
-	i_ehdrp->e_type = ET_EXEC;
-    }
-  return TRUE;
-}
-
-/* Assign file positions for all the reloc sections which are not part
-   of the loadable file image, and the file position of section headers.  */
-
-static bfd_boolean
-_bfd_elf_assign_file_positions_for_non_load (bfd *abfd)
-{
-  file_ptr off;
-  Elf_Internal_Shdr **shdrpp, **end_shdrpp;
-  Elf_Internal_Shdr *shdrp;
-  Elf_Internal_Ehdr *i_ehdrp;
-  const struct elf_backend_data *bed;
-
-  off = elf_next_file_pos (abfd);
-
-  shdrpp = elf_elfsections (abfd);
-  end_shdrpp = shdrpp + elf_numsections (abfd);
-  for (shdrpp++; shdrpp < end_shdrpp; shdrpp++)
-    {
-      shdrp = *shdrpp;
-      if (shdrp->sh_offset == -1)
-	{
-	  asection *sec = shdrp->bfd_section;
-	  bfd_boolean is_rel = (shdrp->sh_type == SHT_REL
-				|| shdrp->sh_type == SHT_RELA);
-	  bfd_boolean is_ctf = sec && bfd_section_is_ctf (sec);
-	  if (is_rel
-	      || is_ctf
-	      || (sec != NULL && (sec->flags & SEC_ELF_COMPRESS)))
-	    {
-	      if (!is_rel && !is_ctf)
-		{
-		  const char *name = sec->name;
-		  struct bfd_elf_section_data *d;
-
-		  /* Compress DWARF debug sections.  */
-		  if (!bfd_compress_section (abfd, sec,
-					     shdrp->contents))
-		    return FALSE;
-
-		  if (sec->compress_status == COMPRESS_SECTION_DONE
-		      && (abfd->flags & BFD_COMPRESS_GABI) == 0)
-		    {
-		      /* If section is compressed with zlib-gnu, convert
-			 section name from .debug_* to .zdebug_*.  */
-		      char *new_name
-			= convert_debug_to_zdebug (abfd, name);
-		      if (new_name == NULL)
-			return FALSE;
-		      name = new_name;
-		    }
-		  /* Add section name to section name section.  */
-		  if (shdrp->sh_name != (unsigned int) -1)
-		    abort ();
-		  shdrp->sh_name
-		    = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
-							  name, FALSE);
-		  d = elf_section_data (sec);
-
-		  /* Add reloc section name to section name section.  */
-		  if (d->rel.hdr
-		      && !_bfd_elf_set_reloc_sh_name (abfd,
-						      d->rel.hdr,
-						      name, FALSE))
-		    return FALSE;
-		  if (d->rela.hdr
-		      && !_bfd_elf_set_reloc_sh_name (abfd,
-						      d->rela.hdr,
-						      name, TRUE))
-		    return FALSE;
-
-		  /* Update section size and contents.  */
-		  shdrp->sh_size = sec->size;
-		  shdrp->contents = sec->contents;
-		  shdrp->bfd_section->contents = NULL;
-		}
-	      else if (is_ctf)
-		{
-		  /* Update section size and contents.	*/
-		  shdrp->sh_size = sec->size;
-		  shdrp->contents = sec->contents;
-		}
-
-	      off = _bfd_elf_assign_file_position_for_section (shdrp,
-							       off,
-							       TRUE);
-	    }
-	}
-    }
-
-  /* Place section name section after DWARF debug sections have been
-     compressed.  */
-  _bfd_elf_strtab_finalize (elf_shstrtab (abfd));
-  shdrp = &elf_tdata (abfd)->shstrtab_hdr;
-  shdrp->sh_size = _bfd_elf_strtab_size (elf_shstrtab (abfd));
-  off = _bfd_elf_assign_file_position_for_section (shdrp, off, TRUE);
-
-  /* Place the section headers.  */
-  i_ehdrp = elf_elfheader (abfd);
-  bed = get_elf_backend_data (abfd);
-  off = align_file_position (off, 1 << bed->s->log_file_align);
-  i_ehdrp->e_shoff = off;
-  off += i_ehdrp->e_shnum * i_ehdrp->e_shentsize;
-  elf_next_file_pos (abfd) = off;
-
-  return TRUE;
-}
-
-bfd_boolean
-_bfd_elf_write_object_contents (bfd *abfd)
-{
-  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
-  Elf_Internal_Shdr **i_shdrp;
-  bfd_boolean failed;
-  unsigned int count, num_sec;
-  struct elf_obj_tdata *t;
-
-  if (! abfd->output_has_begun
-      && ! _bfd_elf_compute_section_file_positions (abfd, NULL))
-    return FALSE;
-  /* Do not rewrite ELF data when the BFD has been opened for update.
-     abfd->output_has_begun was set to TRUE on opening, so creation of new
-     sections, and modification of existing section sizes was restricted.
-     This means the ELF header, program headers and section headers can't have
-     changed.
-     If the contents of any sections has been modified, then those changes have
-     already been written to the BFD.  */
-  else if (abfd->direction == both_direction)
-    {
-      BFD_ASSERT (abfd->output_has_begun);
-      return TRUE;
-    }
-
-  i_shdrp = elf_elfsections (abfd);
-
-  failed = FALSE;
-  bfd_map_over_sections (abfd, bed->s->write_relocs, &failed);
-  if (failed)
-    return FALSE;
-
-  if (!_bfd_elf_assign_file_positions_for_non_load (abfd))
-    return FALSE;
-
-  /* After writing the headers, we need to write the sections too...  */
-  num_sec = elf_numsections (abfd);
-  for (count = 1; count < num_sec; count++)
-    {
-      i_shdrp[count]->sh_name
-	= _bfd_elf_strtab_offset (elf_shstrtab (abfd),
-				  i_shdrp[count]->sh_name);
-      if (bed->elf_backend_section_processing)
-	if (!(*bed->elf_backend_section_processing) (abfd, i_shdrp[count]))
-	  return FALSE;
-      if (i_shdrp[count]->contents)
-	{
-	  bfd_size_type amt = i_shdrp[count]->sh_size;
-
-	  if (bfd_seek (abfd, i_shdrp[count]->sh_offset, SEEK_SET) != 0
-	      || bfd_bwrite (i_shdrp[count]->contents, amt, abfd) != amt)
-	    return FALSE;
-	}
-    }
-
-  /* Write out the section header names.  */
-  t = elf_tdata (abfd);
-  if (elf_shstrtab (abfd) != NULL
-      && (bfd_seek (abfd, t->shstrtab_hdr.sh_offset, SEEK_SET) != 0
-	  || !_bfd_elf_strtab_emit (abfd, elf_shstrtab (abfd))))
-    return FALSE;
-
-  if (!(*bed->elf_backend_final_write_processing) (abfd))
-    return FALSE;
-
-  if (!bed->s->write_shdrs_and_ehdr (abfd))
-    return FALSE;
-
-  /* This is last since write_shdrs_and_ehdr can touch i_shdrp[0].  */
-  if (t->o->build_id.after_write_object_contents != NULL)
-    return (*t->o->build_id.after_write_object_contents) (abfd);
-
-  return TRUE;
-}
-
-bfd_boolean
-_bfd_elf_write_corefile_contents (bfd *abfd)
-{
-  /* Hopefully this can be done just like an object file.  */
-  return _bfd_elf_write_object_contents (abfd);
-}
-
-/* Given a section, search the header to find them.  */
-
-unsigned int
-_bfd_elf_section_from_bfd_section (bfd *abfd, struct bfd_section *asect)
-{
-  const struct elf_backend_data *bed;
-  unsigned int sec_index;
-
-  if (elf_section_data (asect) != NULL
-      && elf_section_data (asect)->this_idx != 0)
-    return elf_section_data (asect)->this_idx;
-
-  if (bfd_is_abs_section (asect))
-    sec_index = SHN_ABS;
-  else if (bfd_is_com_section (asect))
-    sec_index = SHN_COMMON;
-  else if (bfd_is_und_section (asect))
-    sec_index = SHN_UNDEF;
-  else
-    sec_index = SHN_BAD;
-
-  bed = get_elf_backend_data (abfd);
-  if (bed->elf_backend_section_from_bfd_section)
-    {
-      int retval = sec_index;
-
-      if ((*bed->elf_backend_section_from_bfd_section) (abfd, asect, &retval))
-	return retval;
-    }
-
-  if (sec_index == SHN_BAD)
-    bfd_set_error (bfd_error_nonrepresentable_section);
-
-  return sec_index;
-}
-
-/* Given a BFD symbol, return the index in the ELF symbol table, or -1
-   on error.  */
-
-int
-_bfd_elf_symbol_from_bfd_symbol (bfd *abfd, asymbol **asym_ptr_ptr)
-{
-  asymbol *asym_ptr = *asym_ptr_ptr;
-  int idx;
-  flagword flags = asym_ptr->flags;
-
-  /* When gas creates relocations against local labels, it creates its
-     own symbol for the section, but does put the symbol into the
-     symbol chain, so udata is 0.  When the linker is generating
-     relocatable output, this section symbol may be for one of the
-     input sections rather than the output section.  */
-  if (asym_ptr->udata.i == 0
-      && (flags & BSF_SECTION_SYM)
-      && asym_ptr->section)
-    {
-      asection *sec;
-      int indx;
-
-      sec = asym_ptr->section;
-      if (sec->owner != abfd && sec->output_section != NULL)
-	sec = sec->output_section;
-      if (sec->owner == abfd
-	  && (indx = sec->index) < elf_num_section_syms (abfd)
-	  && elf_section_syms (abfd)[indx] != NULL)
-	asym_ptr->udata.i = elf_section_syms (abfd)[indx]->udata.i;
-    }
-
-  idx = asym_ptr->udata.i;
-
-  if (idx == 0)
-    {
-      /* This case can occur when using --strip-symbol on a symbol
-	 which is used in a relocation entry.  */
-      _bfd_error_handler
-	/* xgettext:c-format */
-	(_("%pB: symbol `%s' required but not present"),
-	 abfd, bfd_asymbol_name (asym_ptr));
-      bfd_set_error (bfd_error_no_symbols);
-      return -1;
-    }
-
-#if DEBUG & 4
-  {
-    fprintf (stderr,
-	     "elf_symbol_from_bfd_symbol 0x%.8lx, name = %s, sym num = %d, flags = 0x%.8x\n",
-	     (long) asym_ptr, asym_ptr->name, idx, flags);
-    fflush (stderr);
-  }
-#endif
-
-  return idx;
-}
-
-/* Rewrite program header information.  */
-
-static bfd_boolean
-rewrite_elf_program_header (bfd *ibfd, bfd *obfd, bfd_vma maxpagesize)
-{
-  Elf_Internal_Ehdr *iehdr;
-  struct elf_segment_map *map;
-  struct elf_segment_map *map_first;
-  struct elf_segment_map **pointer_to_map;
-  Elf_Internal_Phdr *segment;
-  asection *section;
-  unsigned int i;
-  unsigned int num_segments;
-  bfd_boolean phdr_included = FALSE;
-  bfd_boolean p_paddr_valid;
-  struct elf_segment_map *phdr_adjust_seg = NULL;
-  unsigned int phdr_adjust_num = 0;
-  const struct elf_backend_data *bed;
-  unsigned int opb = bfd_octets_per_byte (ibfd, NULL);
-
-  bed = get_elf_backend_data (ibfd);
-  iehdr = elf_elfheader (ibfd);
-
-  map_first = NULL;
-  pointer_to_map = &map_first;
-
-  num_segments = elf_elfheader (ibfd)->e_phnum;
-
-  /* Returns the end address of the segment + 1.  */
-#define SEGMENT_END(segment, start)					\
-  (start + (segment->p_memsz > segment->p_filesz			\
-	    ? segment->p_memsz : segment->p_filesz))
-
-#define SECTION_SIZE(section, segment)					\
-  (((section->flags & (SEC_HAS_CONTENTS | SEC_THREAD_LOCAL))		\
-    != SEC_THREAD_LOCAL || segment->p_type == PT_TLS)			\
-   ? section->size : 0)
-
-  /* Returns TRUE if the given section is contained within
-     the given segment.  VMA addresses are compared.  */
-#define IS_CONTAINED_BY_VMA(section, segment, opb)			\
-  (section->vma * (opb) >= segment->p_vaddr				\
-   && (section->vma * (opb) + SECTION_SIZE (section, segment)		\
-       <= (SEGMENT_END (segment, segment->p_vaddr))))
-
-  /* Returns TRUE if the given section is contained within
-     the given segment.  LMA addresses are compared.  */
-#define IS_CONTAINED_BY_LMA(section, segment, base, opb)		\
-  (section->lma * (opb) >= base						\
-   && (section->lma + SECTION_SIZE (section, segment) / (opb) >= section->lma) \
-   && (section->lma * (opb) + SECTION_SIZE (section, segment)		\
-       <= SEGMENT_END (segment, base)))
-
-  /* Handle PT_NOTE segment.  */
-#define IS_NOTE(p, s)							\
-  (p->p_type == PT_NOTE							\
-   && elf_section_type (s) == SHT_NOTE					\
-   && (bfd_vma) s->filepos >= p->p_offset				\
-   && ((bfd_vma) s->filepos + s->size					\
-       <= p->p_offset + p->p_filesz))
-
-  /* Special case: corefile "NOTE" section containing regs, prpsinfo
-     etc.  */
-#define IS_COREFILE_NOTE(p, s)						\
-  (IS_NOTE (p, s)							\
-   && bfd_get_format (ibfd) == bfd_core					\
-   && s->vma == 0							\
-   && s->lma == 0)
-
-  /* The complicated case when p_vaddr is 0 is to handle the Solaris
-     linker, which generates a PT_INTERP section with p_vaddr and
-     p_memsz set to 0.  */
-#define IS_SOLARIS_PT_INTERP(p, s)					\
-  (p->p_vaddr == 0							\
-   && p->p_paddr == 0							\
-   && p->p_memsz == 0							\
-   && p->p_filesz > 0							\
-   && (s->flags & SEC_HAS_CONTENTS) != 0				\
-   && s->size > 0							\
-   && (bfd_vma) s->filepos >= p->p_offset				\
-   && ((bfd_vma) s->filepos + s->size					\
-       <= p->p_offset + p->p_filesz))
-
-  /* Decide if the given section should be included in the given segment.
-     A section will be included if:
-       1. It is within the address space of the segment -- we use the LMA
-	  if that is set for the segment and the VMA otherwise,
-       2. It is an allocated section or a NOTE section in a PT_NOTE
-	  segment.
-       3. There is an output section associated with it,
-       4. The section has not already been allocated to a previous segment.
-       5. PT_GNU_STACK segments do not include any sections.
-       6. PT_TLS segment includes only SHF_TLS sections.
-       7. SHF_TLS sections are only in PT_TLS or PT_LOAD segments.
-       8. PT_DYNAMIC should not contain empty sections at the beginning
-	  (with the possible exception of .dynamic).  */
-#define IS_SECTION_IN_INPUT_SEGMENT(section, segment, bed, opb)		\
-  ((((segment->p_paddr							\
-      ? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr, opb)	\
-      : IS_CONTAINED_BY_VMA (section, segment, opb))			\
-     && (section->flags & SEC_ALLOC) != 0)				\
-    || IS_NOTE (segment, section))					\
-   && segment->p_type != PT_GNU_STACK					\
-   && (segment->p_type != PT_TLS					\
-       || (section->flags & SEC_THREAD_LOCAL))				\
-   && (segment->p_type == PT_LOAD					\
-       || segment->p_type == PT_TLS					\
-       || (section->flags & SEC_THREAD_LOCAL) == 0)			\
-   && (segment->p_type != PT_DYNAMIC					\
-       || SECTION_SIZE (section, segment) > 0				\
-       || (segment->p_paddr						\
-	   ? segment->p_paddr != section->lma * (opb)			\
-	   : segment->p_vaddr != section->vma * (opb))			\
-       || (strcmp (bfd_section_name (section), ".dynamic") == 0))	\
-   && (segment->p_type != PT_LOAD || !section->segment_mark))
-
-/* If the output section of a section in the input segment is NULL,
-   it is removed from the corresponding output segment.   */
-#define INCLUDE_SECTION_IN_SEGMENT(section, segment, bed, opb)		\
-  (IS_SECTION_IN_INPUT_SEGMENT (section, segment, bed, opb)		\
-   && section->output_section != NULL)
-
-  /* Returns TRUE iff seg1 starts after the end of seg2.  */
-#define SEGMENT_AFTER_SEGMENT(seg1, seg2, field)			\
-  (seg1->field >= SEGMENT_END (seg2, seg2->field))
-
-  /* Returns TRUE iff seg1 and seg2 overlap. Segments overlap iff both
-     their VMA address ranges and their LMA address ranges overlap.
-     It is possible to have overlapping VMA ranges without overlapping LMA
-     ranges.  RedBoot images for example can have both .data and .bss mapped
-     to the same VMA range, but with the .data section mapped to a different
-     LMA.  */
-#define SEGMENT_OVERLAPS(seg1, seg2)					\
-  (   !(SEGMENT_AFTER_SEGMENT (seg1, seg2, p_vaddr)			\
-	|| SEGMENT_AFTER_SEGMENT (seg2, seg1, p_vaddr))			\
-   && !(SEGMENT_AFTER_SEGMENT (seg1, seg2, p_paddr)			\
-	|| SEGMENT_AFTER_SEGMENT (seg2, seg1, p_paddr)))
-
-  /* Initialise the segment mark field.  */
-  for (section = ibfd->sections; section != NULL; section = section->next)
-    section->segment_mark = FALSE;
-
-  /* The Solaris linker creates program headers in which all the
-     p_paddr fields are zero.  When we try to objcopy or strip such a
-     file, we get confused.  Check for this case, and if we find it
-     don't set the p_paddr_valid fields.  */
-  p_paddr_valid = FALSE;
-  for (i = 0, segment = elf_tdata (ibfd)->phdr;
-       i < num_segments;
-       i++, segment++)
-    if (segment->p_paddr != 0)
-      {
-	p_paddr_valid = TRUE;
-	break;
-      }
-
-  /* Scan through the segments specified in the program header
-     of the input BFD.  For this first scan we look for overlaps
-     in the loadable segments.  These can be created by weird
-     parameters to objcopy.  Also, fix some solaris weirdness.  */
-  for (i = 0, segment = elf_tdata (ibfd)->phdr;
-       i < num_segments;
-       i++, segment++)
-    {
-      unsigned int j;
-      Elf_Internal_Phdr *segment2;
-
-      if (segment->p_type == PT_INTERP)
-	for (section = ibfd->sections; section; section = section->next)
-	  if (IS_SOLARIS_PT_INTERP (segment, section))
-	    {
-	      /* Mininal change so that the normal section to segment
-		 assignment code will work.  */
-	      segment->p_vaddr = section->vma * opb;
-	      break;
-	    }
-
-      if (segment->p_type != PT_LOAD)
-	{
-	  /* Remove PT_GNU_RELRO segment.  */
-	  if (segment->p_type == PT_GNU_RELRO)
-	    segment->p_type = PT_NULL;
-	  continue;
-	}
-
-      /* Determine if this segment overlaps any previous segments.  */
-      for (j = 0, segment2 = elf_tdata (ibfd)->phdr; j < i; j++, segment2++)
-	{
-	  bfd_signed_vma extra_length;
-
-	  if (segment2->p_type != PT_LOAD
-	      || !SEGMENT_OVERLAPS (segment, segment2))
-	    continue;
-
-	  /* Merge the two segments together.  */
-	  if (segment2->p_vaddr < segment->p_vaddr)
-	    {
-	      /* Extend SEGMENT2 to include SEGMENT and then delete
-		 SEGMENT.  */
-	      extra_length = (SEGMENT_END (segment, segment->p_vaddr)
-			      - SEGMENT_END (segment2, segment2->p_vaddr));
-
-	      if (extra_length > 0)
-		{
-		  segment2->p_memsz += extra_length;
-		  segment2->p_filesz += extra_length;
-		}
-
-	      segment->p_type = PT_NULL;
-
-	      /* Since we have deleted P we must restart the outer loop.  */
-	      i = 0;
-	      segment = elf_tdata (ibfd)->phdr;
-	      break;
-	    }
-	  else
-	    {
-	      /* Extend SEGMENT to include SEGMENT2 and then delete
-		 SEGMENT2.  */
-	      extra_length = (SEGMENT_END (segment2, segment2->p_vaddr)
-			      - SEGMENT_END (segment, segment->p_vaddr));
-
-	      if (extra_length > 0)
-		{
-		  segment->p_memsz += extra_length;
-		  segment->p_filesz += extra_length;
-		}
-
-	      segment2->p_type = PT_NULL;
-	    }
-	}
-    }
-
-  /* The second scan attempts to assign sections to segments.  */
-  for (i = 0, segment = elf_tdata (ibfd)->phdr;
-       i < num_segments;
-       i++, segment++)
-    {
-      unsigned int section_count;
-      asection **sections;
-      asection *output_section;
-      unsigned int isec;
-      asection *matching_lma;
-      asection *suggested_lma;
-      unsigned int j;
-      size_t amt;
-      asection *first_section;
-
-      if (segment->p_type == PT_NULL)
-	continue;
-
-      first_section = NULL;
-      /* Compute how many sections might be placed into this segment.  */
-      for (section = ibfd->sections, section_count = 0;
-	   section != NULL;
-	   section = section->next)
-	{
-	  /* Find the first section in the input segment, which may be
-	     removed from the corresponding output segment.   */
-	  if (IS_SECTION_IN_INPUT_SEGMENT (section, segment, bed, opb))
-	    {
-	      if (first_section == NULL)
-		first_section = section;
-	      if (section->output_section != NULL)
-		++section_count;
-	    }
-	}
-
-      /* Allocate a segment map big enough to contain
-	 all of the sections we have selected.  */
-      amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-      amt += section_count * sizeof (asection *);
-      map = (struct elf_segment_map *) bfd_zalloc (obfd, amt);
-      if (map == NULL)
-	return FALSE;
-
-      /* Initialise the fields of the segment map.  Default to
-	 using the physical address of the segment in the input BFD.  */
-      map->next = NULL;
-      map->p_type = segment->p_type;
-      map->p_flags = segment->p_flags;
-      map->p_flags_valid = 1;
-
-      if (map->p_type == PT_LOAD
-	  && (ibfd->flags & D_PAGED) != 0
-	  && maxpagesize > 1
-	  && segment->p_align > 1)
-	{
-	  map->p_align = segment->p_align;
-	  if (segment->p_align > maxpagesize)
-	    map->p_align = maxpagesize;
-	  map->p_align_valid = 1;
-	}
-
-      /* If the first section in the input segment is removed, there is
-	 no need to preserve segment physical address in the corresponding
-	 output segment.  */
-      if (!first_section || first_section->output_section != NULL)
-	{
-	  map->p_paddr = segment->p_paddr;
-	  map->p_paddr_valid = p_paddr_valid;
-	}
-
-      /* Determine if this segment contains the ELF file header
-	 and if it contains the program headers themselves.  */
-      map->includes_filehdr = (segment->p_offset == 0
-			       && segment->p_filesz >= iehdr->e_ehsize);
-      map->includes_phdrs = 0;
-
-      if (!phdr_included || segment->p_type != PT_LOAD)
-	{
-	  map->includes_phdrs =
-	    (segment->p_offset <= (bfd_vma) iehdr->e_phoff
-	     && (segment->p_offset + segment->p_filesz
-		 >= ((bfd_vma) iehdr->e_phoff
-		     + iehdr->e_phnum * iehdr->e_phentsize)));
-
-	  if (segment->p_type == PT_LOAD && map->includes_phdrs)
-	    phdr_included = TRUE;
-	}
-
-      if (section_count == 0)
-	{
-	  /* Special segments, such as the PT_PHDR segment, may contain
-	     no sections, but ordinary, loadable segments should contain
-	     something.  They are allowed by the ELF spec however, so only
-	     a warning is produced.
-	     There is however the valid use case of embedded systems which
-	     have segments with p_filesz of 0 and a p_memsz > 0 to initialize
-	     flash memory with zeros.  No warning is shown for that case.  */
-	  if (segment->p_type == PT_LOAD
-	      && (segment->p_filesz > 0 || segment->p_memsz == 0))
-	    /* xgettext:c-format */
-	    _bfd_error_handler
-	      (_("%pB: warning: empty loadable segment detected"
-		 " at vaddr=%#" PRIx64 ", is this intentional?"),
-	       ibfd, (uint64_t) segment->p_vaddr);
-
-	  map->p_vaddr_offset = segment->p_vaddr / opb;
-	  map->count = 0;
-	  *pointer_to_map = map;
-	  pointer_to_map = &map->next;
-
-	  continue;
-	}
-
-      /* Now scan the sections in the input BFD again and attempt
-	 to add their corresponding output sections to the segment map.
-	 The problem here is how to handle an output section which has
-	 been moved (ie had its LMA changed).  There are four possibilities:
-
-	 1. None of the sections have been moved.
-	    In this case we can continue to use the segment LMA from the
-	    input BFD.
-
-	 2. All of the sections have been moved by the same amount.
-	    In this case we can change the segment's LMA to match the LMA
-	    of the first section.
-
-	 3. Some of the sections have been moved, others have not.
-	    In this case those sections which have not been moved can be
-	    placed in the current segment which will have to have its size,
-	    and possibly its LMA changed, and a new segment or segments will
-	    have to be created to contain the other sections.
-
-	 4. The sections have been moved, but not by the same amount.
-	    In this case we can change the segment's LMA to match the LMA
-	    of the first section and we will have to create a new segment
-	    or segments to contain the other sections.
-
-	 In order to save time, we allocate an array to hold the section
-	 pointers that we are interested in.  As these sections get assigned
-	 to a segment, they are removed from this array.  */
-
-      amt = section_count * sizeof (asection *);
-      sections = (asection **) bfd_malloc (amt);
-      if (sections == NULL)
-	return FALSE;
-
-      /* Step One: Scan for segment vs section LMA conflicts.
-	 Also add the sections to the section array allocated above.
-	 Also add the sections to the current segment.  In the common
-	 case, where the sections have not been moved, this means that
-	 we have completely filled the segment, and there is nothing
-	 more to do.  */
-      isec = 0;
-      matching_lma = NULL;
-      suggested_lma = NULL;
-
-      for (section = first_section, j = 0;
-	   section != NULL;
-	   section = section->next)
-	{
-	  if (INCLUDE_SECTION_IN_SEGMENT (section, segment, bed, opb))
-	    {
-	      output_section = section->output_section;
-
-	      sections[j++] = section;
-
-	      /* The Solaris native linker always sets p_paddr to 0.
-		 We try to catch that case here, and set it to the
-		 correct value.  Note - some backends require that
-		 p_paddr be left as zero.  */
-	      if (!p_paddr_valid
-		  && segment->p_vaddr != 0
-		  && !bed->want_p_paddr_set_to_zero
-		  && isec == 0
-		  && output_section->lma != 0
-		  && (align_power (segment->p_vaddr
-				   + (map->includes_filehdr
-				      ? iehdr->e_ehsize : 0)
-				   + (map->includes_phdrs
-				      ? iehdr->e_phnum * iehdr->e_phentsize
-				      : 0),
-				   output_section->alignment_power * opb)
-		      == (output_section->vma * opb)))
-		map->p_paddr = segment->p_vaddr;
-
-	      /* Match up the physical address of the segment with the
-		 LMA address of the output section.  */
-	      if (IS_CONTAINED_BY_LMA (output_section, segment, map->p_paddr,
-				       opb)
-		  || IS_COREFILE_NOTE (segment, section)
-		  || (bed->want_p_paddr_set_to_zero
-		      && IS_CONTAINED_BY_VMA (output_section, segment, opb)))
-		{
-		  if (matching_lma == NULL
-		      || output_section->lma < matching_lma->lma)
-		    matching_lma = output_section;
-
-		  /* We assume that if the section fits within the segment
-		     then it does not overlap any other section within that
-		     segment.  */
-		  map->sections[isec++] = output_section;
-		}
-	      else if (suggested_lma == NULL)
-		suggested_lma = output_section;
-
-	      if (j == section_count)
-		break;
-	    }
-	}
-
-      BFD_ASSERT (j == section_count);
-
-      /* Step Two: Adjust the physical address of the current segment,
-	 if necessary.  */
-      if (isec == section_count)
-	{
-	  /* All of the sections fitted within the segment as currently
-	     specified.  This is the default case.  Add the segment to
-	     the list of built segments and carry on to process the next
-	     program header in the input BFD.  */
-	  map->count = section_count;
-	  *pointer_to_map = map;
-	  pointer_to_map = &map->next;
-
-	  if (p_paddr_valid
-	      && !bed->want_p_paddr_set_to_zero)
-	    {
-	      bfd_vma hdr_size = 0;
-	      if (map->includes_filehdr)
-		hdr_size = iehdr->e_ehsize;
-	      if (map->includes_phdrs)
-		hdr_size += iehdr->e_phnum * iehdr->e_phentsize;
-
-	      /* Account for padding before the first section in the
-		 segment.  */
-	      map->p_vaddr_offset = ((map->p_paddr + hdr_size) / opb
-				     - matching_lma->lma);
-	    }
-
-	  free (sections);
-	  continue;
-	}
-      else
-	{
-	  /* Change the current segment's physical address to match
-	     the LMA of the first section that fitted, or if no
-	     section fitted, the first section.  */
-	  if (matching_lma == NULL)
-	    matching_lma = suggested_lma;
-
-	  map->p_paddr = matching_lma->lma * opb;
-
-	  /* Offset the segment physical address from the lma
-	     to allow for space taken up by elf headers.  */
-	  if (map->includes_phdrs)
-	    {
-	      map->p_paddr -= iehdr->e_phnum * iehdr->e_phentsize;
-
-	      /* iehdr->e_phnum is just an estimate of the number
-		 of program headers that we will need.  Make a note
-		 here of the number we used and the segment we chose
-		 to hold these headers, so that we can adjust the
-		 offset when we know the correct value.  */
-	      phdr_adjust_num = iehdr->e_phnum;
-	      phdr_adjust_seg = map;
-	    }
-
-	  if (map->includes_filehdr)
-	    {
-	      bfd_vma align = (bfd_vma) 1 << matching_lma->alignment_power;
-	      map->p_paddr -= iehdr->e_ehsize;
-	      /* We've subtracted off the size of headers from the
-		 first section lma, but there may have been some
-		 alignment padding before that section too.  Try to
-		 account for that by adjusting the segment lma down to
-		 the same alignment.  */
-	      if (segment->p_align != 0 && segment->p_align < align)
-		align = segment->p_align;
-	      map->p_paddr &= -(align * opb);
-	    }
-	}
-
-      /* Step Three: Loop over the sections again, this time assigning
-	 those that fit to the current segment and removing them from the
-	 sections array; but making sure not to leave large gaps.  Once all
-	 possible sections have been assigned to the current segment it is
-	 added to the list of built segments and if sections still remain
-	 to be assigned, a new segment is constructed before repeating
-	 the loop.  */
-      isec = 0;
-      do
-	{
-	  map->count = 0;
-	  suggested_lma = NULL;
-
-	  /* Fill the current segment with sections that fit.  */
-	  for (j = 0; j < section_count; j++)
-	    {
-	      section = sections[j];
-
-	      if (section == NULL)
-		continue;
-
-	      output_section = section->output_section;
-
-	      BFD_ASSERT (output_section != NULL);
-
-	      if (IS_CONTAINED_BY_LMA (output_section, segment, map->p_paddr,
-				       opb)
-		  || IS_COREFILE_NOTE (segment, section))
-		{
-		  if (map->count == 0)
-		    {
-		      /* If the first section in a segment does not start at
-			 the beginning of the segment, then something is
-			 wrong.  */
-		      if (align_power (map->p_paddr
-				       + (map->includes_filehdr
-					  ? iehdr->e_ehsize : 0)
-				       + (map->includes_phdrs
-					  ? iehdr->e_phnum * iehdr->e_phentsize
-					  : 0),
-				       output_section->alignment_power * opb)
-			  != output_section->lma * opb)
-			goto sorry;
-		    }
-		  else
-		    {
-		      asection *prev_sec;
-
-		      prev_sec = map->sections[map->count - 1];
-
-		      /* If the gap between the end of the previous section
-			 and the start of this section is more than
-			 maxpagesize then we need to start a new segment.  */
-		      if ((BFD_ALIGN (prev_sec->lma + prev_sec->size,
-				      maxpagesize)
-			   < BFD_ALIGN (output_section->lma, maxpagesize))
-			  || (prev_sec->lma + prev_sec->size
-			      > output_section->lma))
-			{
-			  if (suggested_lma == NULL)
-			    suggested_lma = output_section;
-
-			  continue;
-			}
-		    }
-
-		  map->sections[map->count++] = output_section;
-		  ++isec;
-		  sections[j] = NULL;
-		  if (segment->p_type == PT_LOAD)
-		    section->segment_mark = TRUE;
-		}
-	      else if (suggested_lma == NULL)
-		suggested_lma = output_section;
-	    }
-
-	  /* PR 23932.  A corrupt input file may contain sections that cannot
-	     be assigned to any segment - because for example they have a
-	     negative size - or segments that do not contain any sections.
-	     But there are also valid reasons why a segment can be empty.
-	     So allow a count of zero.  */
-
-	  /* Add the current segment to the list of built segments.  */
-	  *pointer_to_map = map;
-	  pointer_to_map = &map->next;
-
-	  if (isec < section_count)
-	    {
-	      /* We still have not allocated all of the sections to
-		 segments.  Create a new segment here, initialise it
-		 and carry on looping.  */
-	      amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-	      amt += section_count * sizeof (asection *);
-	      map = (struct elf_segment_map *) bfd_zalloc (obfd, amt);
-	      if (map == NULL)
-		{
-		  free (sections);
-		  return FALSE;
-		}
-
-	      /* Initialise the fields of the segment map.  Set the physical
-		 physical address to the LMA of the first section that has
-		 not yet been assigned.  */
-	      map->next = NULL;
-	      map->p_type = segment->p_type;
-	      map->p_flags = segment->p_flags;
-	      map->p_flags_valid = 1;
-	      map->p_paddr = suggested_lma->lma * opb;
-	      map->p_paddr_valid = p_paddr_valid;
-	      map->includes_filehdr = 0;
-	      map->includes_phdrs = 0;
-	    }
-
-	  continue;
-	sorry:
-	  bfd_set_error (bfd_error_sorry);
-	  free (sections);
-	  return FALSE;
-	}
-      while (isec < section_count);
-
-      free (sections);
-    }
-
-  elf_seg_map (obfd) = map_first;
-
-  /* If we had to estimate the number of program headers that were
-     going to be needed, then check our estimate now and adjust
-     the offset if necessary.  */
-  if (phdr_adjust_seg != NULL)
-    {
-      unsigned int count;
-
-      for (count = 0, map = map_first; map != NULL; map = map->next)
-	count++;
-
-      if (count > phdr_adjust_num)
-	phdr_adjust_seg->p_paddr
-	  -= (count - phdr_adjust_num) * iehdr->e_phentsize;
-
-      for (map = map_first; map != NULL; map = map->next)
-	if (map->p_type == PT_PHDR)
-	  {
-	    bfd_vma adjust
-	      = phdr_adjust_seg->includes_filehdr ? iehdr->e_ehsize : 0;
-	    map->p_paddr = phdr_adjust_seg->p_paddr + adjust;
-	    break;
-	  }
-    }
-
-#undef SEGMENT_END
-#undef SECTION_SIZE
-#undef IS_CONTAINED_BY_VMA
-#undef IS_CONTAINED_BY_LMA
-#undef IS_NOTE
-#undef IS_COREFILE_NOTE
-#undef IS_SOLARIS_PT_INTERP
-#undef IS_SECTION_IN_INPUT_SEGMENT
-#undef INCLUDE_SECTION_IN_SEGMENT
-#undef SEGMENT_AFTER_SEGMENT
-#undef SEGMENT_OVERLAPS
-  return TRUE;
-}
-
-/* Copy ELF program header information.  */
-
-static bfd_boolean
-copy_elf_program_header (bfd *ibfd, bfd *obfd)
-{
-  Elf_Internal_Ehdr *iehdr;
-  struct elf_segment_map *map;
-  struct elf_segment_map *map_first;
-  struct elf_segment_map **pointer_to_map;
-  Elf_Internal_Phdr *segment;
-  unsigned int i;
-  unsigned int num_segments;
-  bfd_boolean phdr_included = FALSE;
-  bfd_boolean p_paddr_valid;
-  unsigned int opb = bfd_octets_per_byte (ibfd, NULL);
-
-  iehdr = elf_elfheader (ibfd);
-
-  map_first = NULL;
-  pointer_to_map = &map_first;
-
-  /* If all the segment p_paddr fields are zero, don't set
-     map->p_paddr_valid.  */
-  p_paddr_valid = FALSE;
-  num_segments = elf_elfheader (ibfd)->e_phnum;
-  for (i = 0, segment = elf_tdata (ibfd)->phdr;
-       i < num_segments;
-       i++, segment++)
-    if (segment->p_paddr != 0)
-      {
-	p_paddr_valid = TRUE;
-	break;
-      }
-
-  for (i = 0, segment = elf_tdata (ibfd)->phdr;
-       i < num_segments;
-       i++, segment++)
-    {
-      asection *section;
-      unsigned int section_count;
-      size_t amt;
-      Elf_Internal_Shdr *this_hdr;
-      asection *first_section = NULL;
-      asection *lowest_section;
-
-      /* Compute how many sections are in this segment.  */
-      for (section = ibfd->sections, section_count = 0;
-	   section != NULL;
-	   section = section->next)
-	{
-	  this_hdr = &(elf_section_data(section)->this_hdr);
-	  if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
-	    {
-	      if (first_section == NULL)
-		first_section = section;
-	      section_count++;
-	    }
-	}
-
-      /* Allocate a segment map big enough to contain
-	 all of the sections we have selected.  */
-      amt = sizeof (struct elf_segment_map) - sizeof (asection *);
-      amt += section_count * sizeof (asection *);
-      map = (struct elf_segment_map *) bfd_zalloc (obfd, amt);
-      if (map == NULL)
-	return FALSE;
-
-      /* Initialize the fields of the output segment map with the
-	 input segment.  */
-      map->next = NULL;
-      map->p_type = segment->p_type;
-      map->p_flags = segment->p_flags;
-      map->p_flags_valid = 1;
-      map->p_paddr = segment->p_paddr;
-      map->p_paddr_valid = p_paddr_valid;
-      map->p_align = segment->p_align;
-      map->p_align_valid = 1;
-      map->p_vaddr_offset = 0;
-
-      if (map->p_type == PT_GNU_RELRO
-	  || map->p_type == PT_GNU_STACK)
-	{
-	  /* The PT_GNU_RELRO segment may contain the first a few
-	     bytes in the .got.plt section even if the whole .got.plt
-	     section isn't in the PT_GNU_RELRO segment.  We won't
-	     change the size of the PT_GNU_RELRO segment.
-	     Similarly, PT_GNU_STACK size is significant on uclinux
-	     systems.    */
-	  map->p_size = segment->p_memsz;
-	  map->p_size_valid = 1;
-	}
-
-      /* Determine if this segment contains the ELF file header
-	 and if it contains the program headers themselves.  */
-      map->includes_filehdr = (segment->p_offset == 0
-			       && segment->p_filesz >= iehdr->e_ehsize);
-
-      map->includes_phdrs = 0;
-      if (! phdr_included || segment->p_type != PT_LOAD)
-	{
-	  map->includes_phdrs =
-	    (segment->p_offset <= (bfd_vma) iehdr->e_phoff
-	     && (segment->p_offset + segment->p_filesz
-		 >= ((bfd_vma) iehdr->e_phoff
-		     + iehdr->e_phnum * iehdr->e_phentsize)));
-
-	  if (segment->p_type == PT_LOAD && map->includes_phdrs)
-	    phdr_included = TRUE;
-	}
-
-      lowest_section = NULL;
-      if (section_count != 0)
-	{
-	  unsigned int isec = 0;
-
-	  for (section = first_section;
-	       section != NULL;
-	       section = section->next)
-	    {
-	      this_hdr = &(elf_section_data(section)->this_hdr);
-	      if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
-		{
-		  map->sections[isec++] = section->output_section;
-		  if ((section->flags & SEC_ALLOC) != 0)
-		    {
-		      bfd_vma seg_off;
-
-		      if (lowest_section == NULL
-			  || section->lma < lowest_section->lma)
-			lowest_section = section;
-
-		      /* Section lmas are set up from PT_LOAD header
-			 p_paddr in _bfd_elf_make_section_from_shdr.
-			 If this header has a p_paddr that disagrees
-			 with the section lma, flag the p_paddr as
-			 invalid.  */
-		      if ((section->flags & SEC_LOAD) != 0)
-			seg_off = this_hdr->sh_offset - segment->p_offset;
-		      else
-			seg_off = this_hdr->sh_addr - segment->p_vaddr;
-		      if (section->lma * opb - segment->p_paddr != seg_off)
-			map->p_paddr_valid = FALSE;
-		    }
-		  if (isec == section_count)
-		    break;
-		}
-	    }
-	}
-
-      if (section_count == 0)
-	map->p_vaddr_offset = segment->p_vaddr / opb;
-      else if (map->p_paddr_valid)
-	{
-	  /* Account for padding before the first section in the segment.  */
-	  bfd_vma hdr_size = 0;
-	  if (map->includes_filehdr)
-	    hdr_size = iehdr->e_ehsize;
-	  if (map->includes_phdrs)
-	    hdr_size += iehdr->e_phnum * iehdr->e_phentsize;
-
-	  map->p_vaddr_offset = ((map->p_paddr + hdr_size) / opb
-				 - (lowest_section ? lowest_section->lma : 0));
-	}
-
-      map->count = section_count;
-      *pointer_to_map = map;
-      pointer_to_map = &map->next;
-    }
-
-  elf_seg_map (obfd) = map_first;
-  return TRUE;
-}
-
-/* Copy private BFD data.  This copies or rewrites ELF program header
-   information.  */
-
-static bfd_boolean
-copy_private_bfd_data (bfd *ibfd, bfd *obfd)
-{
-  bfd_vma maxpagesize;
-
-  if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
-      || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
-    return TRUE;
-
-  if (elf_tdata (ibfd)->phdr == NULL)
-    return TRUE;
-
-  if (ibfd->xvec == obfd->xvec)
-    {
-      /* Check to see if any sections in the input BFD
-	 covered by ELF program header have changed.  */
-      Elf_Internal_Phdr *segment;
-      asection *section, *osec;
-      unsigned int i, num_segments;
-      Elf_Internal_Shdr *this_hdr;
-      const struct elf_backend_data *bed;
-
-      bed = get_elf_backend_data (ibfd);
-
-      /* Regenerate the segment map if p_paddr is set to 0.  */
-      if (bed->want_p_paddr_set_to_zero)
-	goto rewrite;
-
-      /* Initialize the segment mark field.  */
-      for (section = obfd->sections; section != NULL;
-	   section = section->next)
-	section->segment_mark = FALSE;
-
-      num_segments = elf_elfheader (ibfd)->e_phnum;
-      for (i = 0, segment = elf_tdata (ibfd)->phdr;
-	   i < num_segments;
-	   i++, segment++)
-	{
-	  /* PR binutils/3535.  The Solaris linker always sets the p_paddr
-	     and p_memsz fields of special segments (DYNAMIC, INTERP) to 0
-	     which severly confuses things, so always regenerate the segment
-	     map in this case.  */
-	  if (segment->p_paddr == 0
-	      && segment->p_memsz == 0
-	      && (segment->p_type == PT_INTERP || segment->p_type == PT_DYNAMIC))
-	    goto rewrite;
-
-	  for (section = ibfd->sections;
-	       section != NULL; section = section->next)
-	    {
-	      /* We mark the output section so that we know it comes
-		 from the input BFD.  */
-	      osec = section->output_section;
-	      if (osec)
-		osec->segment_mark = TRUE;
-
-	      /* Check if this section is covered by the segment.  */
-	      this_hdr = &(elf_section_data(section)->this_hdr);
-	      if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
-		{
-		  /* FIXME: Check if its output section is changed or
-		     removed.  What else do we need to check?  */
-		  if (osec == NULL
-		      || section->flags != osec->flags
-		      || section->lma != osec->lma
-		      || section->vma != osec->vma
-		      || section->size != osec->size
-		      || section->rawsize != osec->rawsize
-		      || section->alignment_power != osec->alignment_power)
-		    goto rewrite;
-		}
-	    }
-	}
-
-      /* Check to see if any output section do not come from the
-	 input BFD.  */
-      for (section = obfd->sections; section != NULL;
-	   section = section->next)
-	{
-	  if (!section->segment_mark)
-	    goto rewrite;
-	  else
-	    section->segment_mark = FALSE;
-	}
-
-      return copy_elf_program_header (ibfd, obfd);
-    }
-
- rewrite:
-  maxpagesize = 0;
-  if (ibfd->xvec == obfd->xvec)
-    {
-      /* When rewriting program header, set the output maxpagesize to
-	 the maximum alignment of input PT_LOAD segments.  */
-      Elf_Internal_Phdr *segment;
-      unsigned int i;
-      unsigned int num_segments = elf_elfheader (ibfd)->e_phnum;
-
-      for (i = 0, segment = elf_tdata (ibfd)->phdr;
-	   i < num_segments;
-	   i++, segment++)
-	if (segment->p_type == PT_LOAD
-	    && maxpagesize < segment->p_align)
-	  {
-	    /* PR 17512: file: f17299af.  */
-	    if (segment->p_align > (bfd_vma) 1 << ((sizeof (bfd_vma) * 8) - 2))
-	      /* xgettext:c-format */
-	      _bfd_error_handler (_("%pB: warning: segment alignment of %#"
-				    PRIx64 " is too large"),
-				  ibfd, (uint64_t) segment->p_align);
-	    else
-	      maxpagesize = segment->p_align;
-	  }
-    }
-  if (maxpagesize == 0)
-    maxpagesize = get_elf_backend_data (obfd)->maxpagesize;
-
-  return rewrite_elf_program_header (ibfd, obfd, maxpagesize);
-}
-
-/* Initialize private output section information from input section.  */
-
-bfd_boolean
-_bfd_elf_init_private_section_data (bfd *ibfd,
-				    asection *isec,
-				    bfd *obfd,
-				    asection *osec,
-				    struct bfd_link_info *link_info)
-
-{
-  Elf_Internal_Shdr *ihdr, *ohdr;
-  bfd_boolean final_link = (link_info != NULL
-			    && !bfd_link_relocatable (link_info));
-
-  if (ibfd->xvec->flavour != bfd_target_elf_flavour
-      || obfd->xvec->flavour != bfd_target_elf_flavour)
-    return TRUE;
-
-  BFD_ASSERT (elf_section_data (osec) != NULL);
-
-  /* If this is a known ABI section, ELF section type and flags may
-     have been set up when OSEC was created.  For normal sections we
-     allow the user to override the type and flags other than
-     SHF_MASKOS and SHF_MASKPROC.  */
-  if (elf_section_type (osec) == SHT_PROGBITS
-      || elf_section_type (osec) == SHT_NOTE
-      || elf_section_type (osec) == SHT_NOBITS)
-    elf_section_type (osec) = SHT_NULL;
-  /* For objcopy and relocatable link, copy the ELF section type from
-     the input file if the BFD section flags are the same.  (If they
-     are different the user may be doing something like
-     "objcopy --set-section-flags .text=alloc,data".)  For a final
-     link allow some flags that the linker clears to differ.  */
-  if (elf_section_type (osec) == SHT_NULL
-      && (osec->flags == isec->flags
-	  || (final_link
-	      && ((osec->flags ^ isec->flags)
-		  & ~(SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_RELOC)) == 0)))
-    elf_section_type (osec) = elf_section_type (isec);
-
-  /* FIXME: Is this correct for all OS/PROC specific flags?  */
-  elf_section_flags (osec) = (elf_section_flags (isec)
-			      & (SHF_MASKOS | SHF_MASKPROC));
-
-  /* Copy sh_info from input for mbind section.  */
-  if ((elf_tdata (ibfd)->has_gnu_osabi & elf_gnu_osabi_mbind) != 0
-      && elf_section_flags (isec) & SHF_GNU_MBIND)
-    elf_section_data (osec)->this_hdr.sh_info
-      = elf_section_data (isec)->this_hdr.sh_info;
-
-  /* Set things up for objcopy and relocatable link.  The output
-     SHT_GROUP section will have its elf_next_in_group pointing back
-     to the input group members.  Ignore linker created group section.
-     See elfNN_ia64_object_p in elfxx-ia64.c.  */
-  if ((link_info == NULL
-       || !link_info->resolve_section_groups)
-      && (elf_sec_group (isec) == NULL
-	  || (elf_sec_group (isec)->flags & SEC_LINKER_CREATED) == 0))
-    {
-      if (elf_section_flags (isec) & SHF_GROUP)
-	elf_section_flags (osec) |= SHF_GROUP;
-      elf_next_in_group (osec) = elf_next_in_group (isec);
-      elf_section_data (osec)->group = elf_section_data (isec)->group;
-    }
-
-  /* If not decompress, preserve SHF_COMPRESSED.  */
-  if (!final_link && (ibfd->flags & BFD_DECOMPRESS) == 0)
-    elf_section_flags (osec) |= (elf_section_flags (isec)
-				 & SHF_COMPRESSED);
-
-  ihdr = &elf_section_data (isec)->this_hdr;
-
-  /* We need to handle elf_linked_to_section for SHF_LINK_ORDER. We
-     don't use the output section of the linked-to section since it
-     may be NULL at this point.  */
-  if ((ihdr->sh_flags & SHF_LINK_ORDER) != 0)
-    {
-      ohdr = &elf_section_data (osec)->this_hdr;
-      ohdr->sh_flags |= SHF_LINK_ORDER;
-      elf_linked_to_section (osec) = elf_linked_to_section (isec);
-    }
-
-  osec->use_rela_p = isec->use_rela_p;
-
-  return TRUE;
-}
-
-/* Copy private section information.  This copies over the entsize
-   field, and sometimes the info field.  */
-
-bfd_boolean
-_bfd_elf_copy_private_section_data (bfd *ibfd,
-				    asection *isec,
-				    bfd *obfd,
-				    asection *osec)
-{
-  Elf_Internal_Shdr *ihdr, *ohdr;
-
-  if (ibfd->xvec->flavour != bfd_target_elf_flavour
-      || obfd->xvec->flavour != bfd_target_elf_flavour)
-    return TRUE;
-
-  ihdr = &elf_section_data (isec)->this_hdr;
-  ohdr = &elf_section_data (osec)->this_hdr;
-
-  ohdr->sh_entsize = ihdr->sh_entsize;
-
-  if (ihdr->sh_type == SHT_SYMTAB
-      || ihdr->sh_type == SHT_DYNSYM
-      || ihdr->sh_type == SHT_GNU_verneed
-      || ihdr->sh_type == SHT_GNU_verdef)
-    ohdr->sh_info = ihdr->sh_info;
-
-  return _bfd_elf_init_private_section_data (ibfd, isec, obfd, osec,
-					     NULL);
-}
-
-/* Look at all the SHT_GROUP sections in IBFD, making any adjustments
-   necessary if we are removing either the SHT_GROUP section or any of
-   the group member sections.  DISCARDED is the value that a section's
-   output_section has if the section will be discarded, NULL when this
-   function is called from objcopy, bfd_abs_section_ptr when called
-   from the linker.  */
-
-bfd_boolean
-_bfd_elf_fixup_group_sections (bfd *ibfd, asection *discarded)
-{
-  asection *isec;
-
-  for (isec = ibfd->sections; isec != NULL; isec = isec->next)
-    if (elf_section_type (isec) == SHT_GROUP)
-      {
-	asection *first = elf_next_in_group (isec);
-	asection *s = first;
-	bfd_size_type removed = 0;
-
-	while (s != NULL)
-	  {
-	    /* If this member section is being output but the
-	       SHT_GROUP section is not, then clear the group info
-	       set up by _bfd_elf_copy_private_section_data.  */
-	    if (s->output_section != discarded
-		&& isec->output_section == discarded)
-	      {
-		elf_section_flags (s->output_section) &= ~SHF_GROUP;
-		elf_group_name (s->output_section) = NULL;
-	      }
-	    else
-	      {
-		struct bfd_elf_section_data *elf_sec = elf_section_data (s);
-		if (s->output_section == discarded
-		    && isec->output_section != discarded)
-		  {
-		    /* Conversely, if the member section is not being
-		       output but the SHT_GROUP section is, then adjust
-		       its size.  */
-		    removed += 4;
-		    if (elf_sec->rel.hdr != NULL
-			&& (elf_sec->rel.hdr->sh_flags & SHF_GROUP) != 0)
-		      removed += 4;
-		    if (elf_sec->rela.hdr != NULL
-			&& (elf_sec->rela.hdr->sh_flags & SHF_GROUP) != 0)
-		      removed += 4;
-		  }
-		else
-		  {
-		    /* Also adjust for zero-sized relocation member
-		       section.  */
-		    if (elf_sec->rel.hdr != NULL
-			&& elf_sec->rel.hdr->sh_size == 0)
-		      removed += 4;
-		    if (elf_sec->rela.hdr != NULL
-			&& elf_sec->rela.hdr->sh_size == 0)
-		      removed += 4;
-		  }
-	      }
-	    s = elf_next_in_group (s);
-	    if (s == first)
-	      break;
-	  }
-	if (removed != 0)
-	  {
-	    if (discarded != NULL)
-	      {
-		/* If we've been called for ld -r, then we need to
-		   adjust the input section size.  */
-		if (isec->rawsize == 0)
-		  isec->rawsize = isec->size;
-		isec->size = isec->rawsize - removed;
-		if (isec->size <= 4)
-		  {
-		    isec->size = 0;
-		    isec->flags |= SEC_EXCLUDE;
-		  }
-	      }
-	    else
-	      {
-		/* Adjust the output section size when called from
-		   objcopy. */
-		isec->output_section->size -= removed;
-		if (isec->output_section->size <= 4)
-		  {
-		    isec->output_section->size = 0;
-		    isec->output_section->flags |= SEC_EXCLUDE;
-		  }
-	      }
-	  }
-      }
-
-  return TRUE;
-}
-
-/* Copy private header information.  */
-
-bfd_boolean
-_bfd_elf_copy_private_header_data (bfd *ibfd, bfd *obfd)
-{
-  if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
-      || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
-    return TRUE;
-
-  /* Copy over private BFD data if it has not already been copied.
-     This must be done here, rather than in the copy_private_bfd_data
-     entry point, because the latter is called after the section
-     contents have been set, which means that the program headers have
-     already been worked out.  */
-  if (elf_seg_map (obfd) == NULL && elf_tdata (ibfd)->phdr != NULL)
-    {
-      if (! copy_private_bfd_data (ibfd, obfd))
-	return FALSE;
-    }
-
-  return _bfd_elf_fixup_group_sections (ibfd, NULL);
-}
-
-/* Copy private symbol information.  If this symbol is in a section
-   which we did not map into a BFD section, try to map the section
-   index correctly.  We use special macro definitions for the mapped
-   section indices; these definitions are interpreted by the
-   swap_out_syms function.  */
-
-#define MAP_ONESYMTAB (SHN_HIOS + 1)
-#define MAP_DYNSYMTAB (SHN_HIOS + 2)
-#define MAP_STRTAB    (SHN_HIOS + 3)
-#define MAP_SHSTRTAB  (SHN_HIOS + 4)
-#define MAP_SYM_SHNDX (SHN_HIOS + 5)
-
-bfd_boolean
-_bfd_elf_copy_private_symbol_data (bfd *ibfd,
-				   asymbol *isymarg,
-				   bfd *obfd,
-				   asymbol *osymarg)
-{
-  elf_symbol_type *isym, *osym;
-
-  if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
-      || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
-    return TRUE;
-
-  isym = elf_symbol_from (isymarg);
-  osym = elf_symbol_from (osymarg);
-
-  if (isym != NULL
-      && isym->internal_elf_sym.st_shndx != 0
-      && osym != NULL
-      && bfd_is_abs_section (isym->symbol.section))
-    {
-      unsigned int shndx;
-
-      shndx = isym->internal_elf_sym.st_shndx;
-      if (shndx == elf_onesymtab (ibfd))
-	shndx = MAP_ONESYMTAB;
-      else if (shndx == elf_dynsymtab (ibfd))
-	shndx = MAP_DYNSYMTAB;
-      else if (shndx == elf_strtab_sec (ibfd))
-	shndx = MAP_STRTAB;
-      else if (shndx == elf_shstrtab_sec (ibfd))
-	shndx = MAP_SHSTRTAB;
-      else if (find_section_in_list (shndx, elf_symtab_shndx_list (ibfd)))
-	shndx = MAP_SYM_SHNDX;
-      osym->internal_elf_sym.st_shndx = shndx;
-    }
-
-  return TRUE;
-}
-
-/* Swap out the symbols.  */
-
-static bfd_boolean
-swap_out_syms (bfd *abfd,
-	       struct elf_strtab_hash **sttp,
-	       int relocatable_p,
-	       struct bfd_link_info *info)
-{
-  const struct elf_backend_data *bed;
-  unsigned int symcount;
-  asymbol **syms;
-  struct elf_strtab_hash *stt;
-  Elf_Internal_Shdr *symtab_hdr;
-  Elf_Internal_Shdr *symtab_shndx_hdr;
-  Elf_Internal_Shdr *symstrtab_hdr;
-  struct elf_sym_strtab *symstrtab;
-  bfd_byte *outbound_syms;
-  bfd_byte *outbound_shndx;
-  unsigned long outbound_syms_index;
-  unsigned long outbound_shndx_index;
-  unsigned int idx;
-  unsigned int num_locals;
-  size_t amt;
-  bfd_boolean name_local_sections;
-
-  if (!elf_map_symbols (abfd, &num_locals))
-    return FALSE;
-
-  /* Dump out the symtabs.  */
-  stt = _bfd_elf_strtab_init ();
-  if (stt == NULL)
-    return FALSE;
-
-  bed = get_elf_backend_data (abfd);
-  symcount = bfd_get_symcount (abfd);
-  symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
-  symtab_hdr->sh_type = SHT_SYMTAB;
-  symtab_hdr->sh_entsize = bed->s->sizeof_sym;
-  symtab_hdr->sh_size = symtab_hdr->sh_entsize * (symcount + 1);
-  symtab_hdr->sh_info = num_locals + 1;
-  symtab_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align;
-
-  symstrtab_hdr = &elf_tdata (abfd)->strtab_hdr;
-  symstrtab_hdr->sh_type = SHT_STRTAB;
-
-  /* Allocate buffer to swap out the .strtab section.  */
-  if (_bfd_mul_overflow (symcount + 1, sizeof (*symstrtab), &amt)
-      || (symstrtab = (struct elf_sym_strtab *) bfd_malloc (amt)) == NULL)
-    {
-      bfd_set_error (bfd_error_no_memory);
-      _bfd_elf_strtab_free (stt);
-      return FALSE;
-    }
-
-  if (_bfd_mul_overflow (symcount + 1, bed->s->sizeof_sym, &amt)
-      || (outbound_syms = (bfd_byte *) bfd_alloc (abfd, amt)) == NULL)
-    {
-    error_no_mem:
-      bfd_set_error (bfd_error_no_memory);
-    error_return:
-      free (symstrtab);
-      _bfd_elf_strtab_free (stt);
-      return FALSE;
-    }
-  symtab_hdr->contents = outbound_syms;
-  outbound_syms_index = 0;
-
-  outbound_shndx = NULL;
-  outbound_shndx_index = 0;
-
-  if (elf_symtab_shndx_list (abfd))
-    {
-      symtab_shndx_hdr = & elf_symtab_shndx_list (abfd)->hdr;
-      if (symtab_shndx_hdr->sh_name != 0)
-	{
-	  if (_bfd_mul_overflow (symcount + 1,
-				 sizeof (Elf_External_Sym_Shndx), &amt))
-	    goto error_no_mem;
-	  outbound_shndx =  (bfd_byte *) bfd_zalloc (abfd, amt);
-	  if (outbound_shndx == NULL)
-	    goto error_return;
-
-	  symtab_shndx_hdr->contents = outbound_shndx;
-	  symtab_shndx_hdr->sh_type = SHT_SYMTAB_SHNDX;
-	  symtab_shndx_hdr->sh_size = amt;
-	  symtab_shndx_hdr->sh_addralign = sizeof (Elf_External_Sym_Shndx);
-	  symtab_shndx_hdr->sh_entsize = sizeof (Elf_External_Sym_Shndx);
-	}
-      /* FIXME: What about any other headers in the list ?  */
-    }
-
-  /* Now generate the data (for "contents").  */
-  {
-    /* Fill in zeroth symbol and swap it out.  */
-    Elf_Internal_Sym sym;
-    sym.st_name = 0;
-    sym.st_value = 0;
-    sym.st_size = 0;
-    sym.st_info = 0;
-    sym.st_other = 0;
-    sym.st_shndx = SHN_UNDEF;
-    sym.st_target_internal = 0;
-    symstrtab[0].sym = sym;
-    symstrtab[0].dest_index = outbound_syms_index;
-    symstrtab[0].destshndx_index = outbound_shndx_index;
-    outbound_syms_index++;
-    if (outbound_shndx != NULL)
-      outbound