Skip to contentSkip to conversation

arch: drop now useless support for FDPIC

PATCH New Yann E. MORIN 4 participants 6 messages May 21, 2018 – Jul 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>
---
 arch/Config.in           | 14 --------------
 package/uclibc/uclibc.mk |  8 --------
 2 files changed, 22 deletions(-)
arch/Config.in +0 -14
index a66ea0d03b..96d1ab1220 100644
@@ -15,9 +15,6 @@ config BR2_ARCH_HAS_MMU_MANDATORY
 config BR2_ARCH_HAS_MMU_OPTIONAL
 	bool
 
-config BR2_ARCH_HAS_FDPIC_SUPPORT
-	bool
-
 choice
 	prompt "Target Architecture"
 	default BR2_i386
@@ -340,7 +337,6 @@ config BR2_READELF_ARCH_NAME
 choice
 	prompt "Target Binary Format"
 	default BR2_BINFMT_ELF if BR2_USE_MMU
-	default BR2_BINFMT_FDPIC if BR2_ARCH_HAS_FDPIC_SUPPORT
 	default BR2_BINFMT_FLAT
 
 config BR2_BINFMT_ELF
@@ -352,16 +348,6 @@ config BR2_BINFMT_ELF
 	  and executables used across different architectures and
 	  operating systems.
 
-config BR2_BINFMT_FDPIC
-	bool "FDPIC"
-	depends on BR2_ARCH_HAS_FDPIC_SUPPORT
-	select BR2_BINFMT_SUPPORTS_SHARED
-	help
-	  ELF FDPIC binaries are based on ELF, but allow the individual
-	  load segments of a binary to be located in memory
-	  independently of each other. This makes this format ideal for
-	  use in environments where no MMU is available.
-
 config BR2_BINFMT_FLAT
 	bool "FLAT"
 	depends on !BR2_USE_MMU
package/uclibc/uclibc.mk +0 -8
index 7de9219873..d61e3e89ae 100644
@@ -52,14 +52,6 @@ UCLIBC_LOCALES = \
 endif
 
 # noMMU binary formats
-ifeq ($(BR2_BINFMT_FDPIC),y)
-define UCLIBC_BINFMT_CONFIG
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT_SEP_DATA,$(@D)/.config)
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_SHARED_FLAT,$(@D)/.config)
-	$(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FDPIC_ELF,$(@D)/.config)
-endef
-endif
 ifeq ($(BR2_BINFMT_FLAT_ONE),y)
 define UCLIBC_BINFMT_CONFIG
 	$(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

Hi Yann,

Quoted 9 lines · Yann E. MORIN

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>

---

[snip]

package/uclibc/uclibc.mk UCLIBC_LOCALES = \ · line 60

Quoted 7 lines

# noMMU binary formats

package/uclibc/uclibc.mk +0 -6
-ifeq ($(BR2_BINFMT_FDPIC),y)
-define UCLIBC_BINFMT_CONFIG
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT_SEP_DATA,$(@D)/.config)
-	$(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_SHARED_FLAT,$(@D)/.config)
-	$(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FDPIC_ELF,$(@D)/.config)

Maybe also remove disable of UCLIBC_FORMAT_FDPIC_ELF below? This uClibc config symbol depends on bfin or frv. Both are not supported in Buildroot.

package/uclibc/uclibc.mk UCLIBC_LOCALES = \ · line 57

Quoted 5 lines
package/uclibc/uclibc.mk +0 -2
-endef
-endif
 ifeq ($(BR2_BINFMT_FLAT_ONE),y)
 define UCLIBC_BINFMT_CONFIG
 	$(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

Hi,
there might be support for sh2 or arm fdpic in the future. Does it harm to keep it?

Binutils arm fdpic is upstream now.

best regards
Waldemar

Quoted 45 lines

Am 21.05.2018 um 18:33 schrieb Baruch Siach <[email protected]>:

Hi Yann,

Quoted 10 lines · Yann E. MORIN

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>

---

[snip]

package/uclibc/uclibc.mk UCLIBC_LOCALES = \ · line 60

Quoted 7 lines

# noMMU binary formats

package/uclibc/uclibc.mk +0 -6
-ifeq ($(BR2_BINFMT_FDPIC),y)
-define UCLIBC_BINFMT_CONFIG
-    $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)
-    $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT_SEP_DATA,$(@D)/.config)
-    $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_SHARED_FLAT,$(@D)/.config)
-    $(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FDPIC_ELF,$(@D)/.config)

Maybe also remove disable of UCLIBC_FORMAT_FDPIC_ELF below? This uClibc config symbol depends on bfin or frv. Both are not supported in Buildroot.

Quoted 5 lines
package/uclibc/uclibc.mk +0 -2
-endef
-endif

ifeq ($(BR2_BINFMT_FLAT_ONE),y)
define UCLIBC_BINFMT_CONFIG
$(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config)

baruch

Signature · 7 lines
    http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
  - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
#3 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

In reply to Yann E. MORIN

Hello,

Quoted 8 lines · Yann E. MORIN

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>

When I dropped Blackfin support, I wondered about dropping FDPIC support. But I know people are working on FDPIC support on ARM, so I wasn't sure it was useful to drop it now, and re-add it later on.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

Thomas, All,

On 2018-05-21 21:58 +0200, Thomas Petazzoni spake thusly:

Quoted 5 lines · Yann E. MORIN
Quoted 4 lines

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Quoted 8 lines
Quoted 4 lines

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>

When I dropped Blackfin support, I wondered about dropping FDPIC support. But I know people are working on FDPIC support on ARM, so I wasn't sure it was useful to drop it now, and re-add it later on.

Oh, well, I was just "Eh, this is dead code, it's gonna birot. Better burry it now sit does not stink too much yet..." ;-)

But we can always git-revert that code later when/if FDPIC gets resurected for another arch...

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/1 arch: drop now useless support for FDPIC

In reply to Yann E. MORIN

Hello,

Quoted 4 lines · Yann E. MORIN

Now that we dropped support for blackfin, we no longer have any architecture that supports FDPIC, so BR2_ARCH_HAS_FDPIC_SUPPORT is never selected, so we can't select BR2_BINFMT_FDPIC.

Quoted 8 lines

Drop all of that now.

Cc Thomas Petazzoni <[email protected]>
---
 arch/Config.in           | 14 --------------
 package/uclibc/uclibc.mk |  8 --------
 2 files changed, 22 deletions(-)

Applied to master, thanks. We can indeed revert this commit when/if we bring back FDPIC support for another architecture in the future.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com