[binutils-gdb] gas: drop config/obj-fdpicelf.[ch]

Jan Beulich jbeulich@sourceware.org
Fri Sep 4 09:48:35 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c3b5ee37517525f1542896a6411dd4ac7f1c421a

commit c3b5ee37517525f1542896a6411dd4ac7f1c421a
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Sep 4 11:43:18 2026 +0200

    gas: drop config/obj-fdpicelf.[ch]
    
    It wasn't really appropriate to create these, just to inject a #define.
    That's supposed to be done via a config/te-*.h.
    
    While adding the new header to po/POTFILES.in, also add te-linux.h.

Diff:
---
 gas/config/obj-fdpicelf.c   | 20 --------------------
 gas/config/obj-fdpicelf.h   | 21 ---------------------
 gas/config/tc-bfin.c        |  2 +-
 gas/config/te-linux-fdpic.h | 21 +++++++++++++++++++++
 gas/configure.tgt           |  4 ++--
 gas/po/POTFILES.in          |  4 ++--
 6 files changed, 26 insertions(+), 46 deletions(-)

diff --git a/gas/config/obj-fdpicelf.c b/gas/config/obj-fdpicelf.c
deleted file mode 100644
index 53f97a2156c..00000000000
--- a/gas/config/obj-fdpicelf.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright (C) 2012-2026 Free Software Foundation, Inc.
-
-   This file is part of GAS, the GNU Assembler.
-
-   GAS 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, or (at your option)
-   any later version.
-
-   GAS 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 GAS; see the file COPYING.  If not, write to the Free
-   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
-   02110-1301, USA.  */
-
-#include "obj-elf.c"
diff --git a/gas/config/obj-fdpicelf.h b/gas/config/obj-fdpicelf.h
deleted file mode 100644
index fb4ac141f6a..00000000000
--- a/gas/config/obj-fdpicelf.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2012-2026 Free Software Foundation, Inc.
-
-   This file is part of GAS, the GNU Assembler.
-
-   GAS 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, or (at your option)
-   any later version.
-
-   GAS 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 GAS; see the file COPYING.  If not, write to the Free
-   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
-   02110-1301, USA.  */
-
-#define OBJ_FDPIC_ELF 1
-#include "obj-elf.h"
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index 1c6b7339ab8..5227b60827a 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -45,7 +45,7 @@ FILE *errorf;
 /* Flags to set in the elf header */
 #define DEFAULT_FLAGS 0
 
-#ifdef OBJ_FDPIC_ELF
+#ifdef TE_LINUX_FDPIC
 # define DEFAULT_FDPIC EF_BFIN_FDPIC
 #else
 # define DEFAULT_FDPIC 0
diff --git a/gas/config/te-linux-fdpic.h b/gas/config/te-linux-fdpic.h
new file mode 100644
index 00000000000..462edb3fcfd
--- /dev/null
+++ b/gas/config/te-linux-fdpic.h
@@ -0,0 +1,21 @@
+/* Copyright (C) 2026 Free Software Foundation, Inc.
+
+   This file is part of GAS, the GNU Assembler.
+
+   GAS 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,
+   or (at your option) any later version.
+
+   GAS 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 GAS; see the file COPYING.  If not, write to the Free
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+#define TE_LINUX_FDPIC 1
+#include "te-linux.h"
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 072b8a47fb4..ba3d1194ae9 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -172,7 +172,7 @@ case ${generic_target} in
 
   avr-*-*)				fmt=elf bfd_gas=yes ;;
 
-  bfin-*-linux-uclibc)			fmt=fdpicelf em=linux ;;
+  bfin-*-linux-uclibc)			fmt=elf em=linux-fdpic ;;
   bfin-*-uclinux*)			fmt=elf em=linux ;;
   bfin-*elf)				fmt=elf ;;
 
@@ -455,7 +455,7 @@ case ${cpu_type} in
     ;;
 esac
 case ${fmt} in
-  elf | ecoff | fdpicelf | multi | som)
+  elf | ecoff | multi | som)
     bfd_gas=yes
     ;;
 esac
diff --git a/gas/po/POTFILES.in b/gas/po/POTFILES.in
index c0ce266129e..b78f61370fd 100644
--- a/gas/po/POTFILES.in
+++ b/gas/po/POTFILES.in
@@ -32,8 +32,6 @@ config/obj-elf.c
 config/obj-elf.h
 config/obj-evax.c
 config/obj-evax.h
-config/obj-fdpicelf.c
-config/obj-fdpicelf.h
 config/obj-macho.c
 config/obj-macho.h
 config/obj-multi.c
@@ -202,6 +200,8 @@ config/te-hppa.h
 config/te-hppa64.h
 config/te-hppalinux64.h
 config/te-interix.h
+config/te-linux-fdpic.h
+config/te-linux.h
 config/te-lynx.h
 config/te-macos.h
 config/te-nbsd.h


More information about the Binutils-cvs mailing list