* [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI
@ 2014-03-30 17:57 Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 01/10] uclibc: add missing .literal_position directives Max Filippov
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
Hi Thomas,
this series is the second part of fixes for building huge sources, like
wireshark or mplayer: adding trampolines support to binutils allows
assembling of such files, but with literals placed into separate section
build fails at the linking step.
First patch allows building uclibc with -mtext-section-literals, it is
posted to the uclibc list, but not reviewed/checked in yet.
Second patch adds -mtext-section-literals flag to xtensa ABI.
Remaining patches revert -mtext-section-literals additions to individual
packages.
Changes v2 -> v3:
- drop patch 3 and revert individual commits that added
-mtext-section-literals flag instead
Changes v1 -> v2:
- add comment to XTENSA_ABI variable explaining -mtext-section-literals usage
- remove -mtext-section-literals from individual package *.mk's
Max Filippov (10):
uclibc: add missing .literal_position directives
Makefile.in: add -mtext-section-literals to xtensa ABI
Revert "civetweb: fix build for xtensa"
Revert "ffmpeg: fix build for xtensa"
Revert "gst-ffmpeg: fix build for xtensa"
Revert "gst1-libav: fix build for xtensa"
Revert "lmbench: fix build for xtensa"
Revert "php: fix build for xtensa"
Revert "sqlcipher: fix build for xtensa"
Revert "xtensa: sqlite requires special compiler option"
package/Makefile.in | 11 +++-
package/civetweb/civetweb.mk | 3 --
package/ffmpeg/ffmpeg.mk | 8 ---
package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk | 8 ---
package/gstreamer1/gst1-libav/gst1-libav.mk | 8 ---
package/lmbench/lmbench.mk | 4 --
package/php/php.mk | 4 --
package/sqlcipher/sqlcipher.mk | 4 --
package/sqlite/sqlite.mk | 4 --
...-add-missing-.literal_position-directives.patch | 62 ++++++++++++++++++++++
10 files changed, 72 insertions(+), 44 deletions(-)
create mode 100644 package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch
--
1.8.1.4
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 01/10] uclibc: add missing .literal_position directives
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 02/10] Makefile.in: add -mtext-section-literals to xtensa ABI Max Filippov
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This allows building uclibc with -mtext-section-literals flag.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
...-add-missing-.literal_position-directives.patch | 62 ++++++++++++++++++++++
1 file changed, 62 insertions(+)
create mode 100644 package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch
diff --git a/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch b/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch
new file mode 100644
index 0000000..f5577c6
--- /dev/null
+++ b/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch
@@ -0,0 +1,62 @@
+From 04d7bd868b300c8150231d7a37e62150eaf810d0 Mon Sep 17 00:00:00 2001
+From: Max Filippov <jcmvbkbc@gmail.com>
+Date: Mon, 24 Mar 2014 01:06:35 +0400
+Subject: [PATCH] xtensa: add missing .literal_position directives
+
+This addition allows building uClibc with -mtext-section-literals
+
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+---
+ ldso/ldso/xtensa/dl-startup.h | 1 +
+ ldso/ldso/xtensa/resolve.S | 1 +
+ libc/string/xtensa/strcmp.S | 5 +++--
+ 3 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/ldso/ldso/xtensa/dl-startup.h b/ldso/ldso/xtensa/dl-startup.h
+index 45af82d..b135a4c 100644
+--- a/ldso/ldso/xtensa/dl-startup.h
++++ b/ldso/ldso/xtensa/dl-startup.h
+@@ -11,6 +11,7 @@
+ __asm__ (
+ " .text\n"
+ " .align 4\n"
++ " .literal_position\n"
+ " .global _start\n"
+ " .type _start, @function\n"
+ " .hidden _start\n"
+diff --git a/ldso/ldso/xtensa/resolve.S b/ldso/ldso/xtensa/resolve.S
+index 61c2c5d..d1ae8aa 100644
+--- a/ldso/ldso/xtensa/resolve.S
++++ b/ldso/ldso/xtensa/resolve.S
+@@ -27,6 +27,7 @@
+
+ .text
+ .align 4
++ .literal_position
+ .global _dl_linux_resolve
+ .type _dl_linux_resolve, @function
+ _dl_linux_resolve:
+diff --git a/libc/string/xtensa/strcmp.S b/libc/string/xtensa/strcmp.S
+index d3d72e0..8ed1ed0 100644
+--- a/libc/string/xtensa/strcmp.S
++++ b/libc/string/xtensa/strcmp.S
+@@ -34,13 +34,14 @@
+
+ #define MASK4 0x40404040
+
++ .text
++ .align 4
++ .literal_position
+ .literal .Lmask0, MASK0
+ .literal .Lmask1, MASK1
+ .literal .Lmask2, MASK2
+ .literal .Lmask3, MASK3
+ .literal .Lmask4, MASK4
+-
+- .text
+ ENTRY (strcmp)
+ /* a2 = s1, a3 = s2 */
+
+--
+1.8.1.4
+
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 02/10] Makefile.in: add -mtext-section-literals to xtensa ABI
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 01/10] uclibc: add missing .literal_position directives Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 03/10] Revert "civetweb: fix build for xtensa" Max Filippov
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
Collecting literals into separate section can be advantageous if that
section is placed into DTCM at link time. This is applicable for code
running on bare metal, but makes no sense under linux, where userspace
is isolated from the physical memory details. OTOH placing literals into
separate section breaks build of huge source files, because l32r
instruction can only access literals in 256 KBytes range.
Add -mtext-section-literals into xtensa ABI to fix build issues of
packages with huge sources.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v1 -> v2:
- add comment to XTENSA_ABI variable explaining -mtext-section-literals usage
package/Makefile.in | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index eea7043..a70e538 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -72,8 +72,17 @@ endif
# and is required for some packages. While this option can degrade both
# code size and performance, the linker can usually optimize away the
# overhead when a call ends up within a certain range.
+#
+# Use text-section-literals for Xtensa globally.
+# Collecting literals into separate section can be advantageous if that
+# section is placed into DTCM at link time. This is applicable for code
+# running on bare metal, but makes no sense under linux, where userspace
+# is isolated from the physical memory details. OTOH placing literals into
+# separate section breaks build of huge source files, because l32r
+# instruction can only access literals in 256 KBytes range.
+#
ifeq ($(BR2_xtensa),y)
-TARGET_ABI += -mlongcalls
+TARGET_ABI += -mlongcalls -mtext-section-literals
endif
STAGING_SUBDIR = usr/$(GNU_TARGET_NAME)/sysroot
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 03/10] Revert "civetweb: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 01/10] uclibc: add missing .literal_position directives Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 02/10] Makefile.in: add -mtext-section-literals to xtensa ABI Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 04/10] Revert "ffmpeg: " Max Filippov
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 37084ead509fa42db39637fcb837e7a99197c6c9.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/civetweb/civetweb.mk | 3 ---
1 file changed, 3 deletions(-)
diff --git a/package/civetweb/civetweb.mk b/package/civetweb/civetweb.mk
index be7620a..4b73a5e 100644
--- a/package/civetweb/civetweb.mk
+++ b/package/civetweb/civetweb.mk
@@ -25,9 +25,6 @@ endif
ifeq ($(BR2_CIVETWEB_WITH_LUA),y)
CIVETWEB_CONF_OPT += WITH_LUA=1
-ifeq ($(BR2_xtensa),y)
- CIVETWEB_COPT += -mtext-section-literals
-endif
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 04/10] Revert "ffmpeg: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (2 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 03/10] Revert "civetweb: fix build for xtensa" Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 05/10] Revert "gst-ffmpeg: " Max Filippov
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 4ec35e76b8a31810a0b8955a6dee787cefa013bc.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/ffmpeg/ffmpeg.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index a067fe6..fae558a 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -73,14 +73,6 @@ FFMPEG_CONF_OPT = \
FFMPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
-FFMPEG_CFLAGS = $(TARGET_CFLAGS)
-
-ifeq ($(BR2_xtensa),y)
-FFMPEG_CFLAGS += -mtext-section-literals
-endif
-
-FFMPEG_CONF_ENV = CFLAGS="$(FFMPEG_CFLAGS)"
-
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
FFMPEG_CONF_OPT += --enable-gpl
else
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 05/10] Revert "gst-ffmpeg: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (3 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 04/10] Revert "ffmpeg: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 06/10] Revert "gst1-libav: " Max Filippov
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 7e558aa0d87d86be1bbc91b284acd0d11378ee4e.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk b/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
index eb7389f..6534f93 100644
--- a/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
+++ b/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
@@ -14,14 +14,6 @@ GST_FFMPEG_CONF_EXTRA_OPT = \
--cross-prefix=$(TARGET_CROSS) \
--target-os=linux
-GST_FFMPEG_CFLAGS = $(TARGET_CFLAGS)
-
-ifeq ($(BR2_xtensa),y)
-GST_FFMPEG_CFLAGS += -mtext-section-literals
-endif
-
-GST_FFMPEG_CONF_ENV = CFLAGS="$(GST_FFMPEG_CFLAGS)"
-
ifeq ($(BR2_PACKAGE_ZLIB),y)
GST_FFMPEG_CONF_EXTRA_OPT += --enable-zlib
GST_FFMPEG_DEPENDENCIES += zlib
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 06/10] Revert "gst1-libav: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (4 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 05/10] Revert "gst-ffmpeg: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 07/10] Revert "lmbench: " Max Filippov
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit ae3298d7d489f5ee465ff4ce83494de527d0ac73.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/gstreamer1/gst1-libav/gst1-libav.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/package/gstreamer1/gst1-libav/gst1-libav.mk b/package/gstreamer1/gst1-libav/gst1-libav.mk
index a0a536e..1c45acc 100644
--- a/package/gstreamer1/gst1-libav/gst1-libav.mk
+++ b/package/gstreamer1/gst1-libav/gst1-libav.mk
@@ -83,12 +83,4 @@ endif
GST1_LIBAV_CONF_OPT = \
--with-libav-extra-configure="$(GST1_LIBAV_CONF_EXTRA_OPT)"
-GST1_LIBAV_CFLAGS = $(TARGET_CFLAGS)
-
-ifeq ($(BR2_xtensa),y)
-GST1_LIBAV_CFLAGS += -mtext-section-literals
-endif
-
-GST1_LIBAV_CONF_ENV += CFLAGS="$(GST1_LIBAV_CFLAGS)"
-
$(eval $(autotools-package))
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 07/10] Revert "lmbench: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (5 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 06/10] Revert "gst1-libav: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 08/10] Revert "php: " Max Filippov
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 7c04932603476f3adf474f3bc47c35bdb59d947a.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/lmbench/lmbench.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index 529026f..c3a6c09 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -19,10 +19,6 @@ LMBENCH_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
LMBENCH_LDFLAGS += -ltirpc
endif
-ifeq ($(BR2_xtensa),y)
-LMBENCH_CFLAGS += -mtext-section-literals
-endif
-
define LMBENCH_CONFIGURE_CMDS
$(call CONFIG_UPDATE,$(@D))
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 08/10] Revert "php: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (6 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 07/10] Revert "lmbench: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 09/10] Revert "sqlcipher: " Max Filippov
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 410c3cf7ebe69016e73bbe63d1ba4b0a251b5c9a.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/php/php.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/package/php/php.mk b/package/php/php.mk
index de02f4b..5797758 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -35,10 +35,6 @@ ifneq ($(BR2_INET_IPV6),y)
endif
endif
-ifeq ($(BR2_xtensa),y)
-PHP_CFLAGS += -mtext-section-literals
-endif
-
PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_CLI),,--disable-cli)
PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_CGI),,--disable-cgi)
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 09/10] Revert "sqlcipher: fix build for xtensa"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (7 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 08/10] Revert "php: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 10/10] Revert "xtensa: sqlite requires special compiler option" Max Filippov
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 43d8dc3a392dcb769075cf1b076376a280c15c99.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/sqlcipher/sqlcipher.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/package/sqlcipher/sqlcipher.mk b/package/sqlcipher/sqlcipher.mk
index ace5ce8..6130870 100644
--- a/package/sqlcipher/sqlcipher.mk
+++ b/package/sqlcipher/sqlcipher.mk
@@ -32,10 +32,6 @@ ifeq ($(BR2_PACKAGE_SQLCIPHER_STAT3),y)
SQLCIPHER_CFLAGS += -DSQLITE_ENABLE_STAT3
endif
-ifeq ($(BR2_xtensa),y)
-SQLCIPHER_CFLAGS += -mtext-section-literals
-endif
-
ifeq ($(BR2_PACKAGE_SQLCIPHER_READLINE),y)
SQLCIPHER_DEPENDENCIES += ncurses readline
SQLCIPHER_CONF_OPT += --with-readline-inc="-I$(STAGING_DIR)/usr/include"
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 10/10] Revert "xtensa: sqlite requires special compiler option"
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (8 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 09/10] Revert "sqlcipher: " Max Filippov
@ 2014-03-30 17:57 ` Max Filippov
2014-03-31 3:26 ` [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Baruch Siach
2014-04-03 19:39 ` Thomas Petazzoni
11 siblings, 0 replies; 13+ messages in thread
From: Max Filippov @ 2014-03-30 17:57 UTC (permalink / raw)
To: buildroot
This reverts commit 6a30cd3fb30b8057ddde2c72a88c0bb6ad7d1761.
Now that -mtext-section-literals is specified in the xtensa ABI this fix
is no longer needed.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v2 -> v3:
- new patch
package/sqlite/sqlite.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk
index b27eb58..6493a29 100644
--- a/package/sqlite/sqlite.mk
+++ b/package/sqlite/sqlite.mk
@@ -33,10 +33,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y)
SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
endif
-ifeq ($(BR2_xtensa),y)
-SQLITE_CFLAGS += -mtext-section-literals
-endif
-
SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
SQLITE_CONF_OPT = \
--
1.8.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (9 preceding siblings ...)
2014-03-30 17:57 ` [Buildroot] [PATCH v3 10/10] Revert "xtensa: sqlite requires special compiler option" Max Filippov
@ 2014-03-31 3:26 ` Baruch Siach
2014-04-03 19:39 ` Thomas Petazzoni
11 siblings, 0 replies; 13+ messages in thread
From: Baruch Siach @ 2014-03-31 3:26 UTC (permalink / raw)
To: buildroot
Hi Max,
On Sun, Mar 30, 2014 at 09:57:44PM +0400, Max Filippov wrote:
> Hi Thomas,
>
> this series is the second part of fixes for building huge sources, like
> wireshark or mplayer: adding trampolines support to binutils allows
> assembling of such files, but with literals placed into separate section
> build fails at the linking step.
>
> First patch allows building uclibc with -mtext-section-literals, it is
> posted to the uclibc list, but not reviewed/checked in yet.
> Second patch adds -mtext-section-literals flag to xtensa ABI.
> Remaining patches revert -mtext-section-literals additions to individual
> packages.
For patches 2-10:
Reviewed-by: Baruch Siach <baruch@tkos.co.il>
baruch
> Changes v2 -> v3:
> - drop patch 3 and revert individual commits that added
> -mtext-section-literals flag instead
>
> Changes v1 -> v2:
> - add comment to XTENSA_ABI variable explaining -mtext-section-literals usage
> - remove -mtext-section-literals from individual package *.mk's
>
> Max Filippov (10):
> uclibc: add missing .literal_position directives
> Makefile.in: add -mtext-section-literals to xtensa ABI
> Revert "civetweb: fix build for xtensa"
> Revert "ffmpeg: fix build for xtensa"
> Revert "gst-ffmpeg: fix build for xtensa"
> Revert "gst1-libav: fix build for xtensa"
> Revert "lmbench: fix build for xtensa"
> Revert "php: fix build for xtensa"
> Revert "sqlcipher: fix build for xtensa"
> Revert "xtensa: sqlite requires special compiler option"
>
> package/Makefile.in | 11 +++-
> package/civetweb/civetweb.mk | 3 --
> package/ffmpeg/ffmpeg.mk | 8 ---
> package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk | 8 ---
> package/gstreamer1/gst1-libav/gst1-libav.mk | 8 ---
> package/lmbench/lmbench.mk | 4 --
> package/php/php.mk | 4 --
> package/sqlcipher/sqlcipher.mk | 4 --
> package/sqlite/sqlite.mk | 4 --
> ...-add-missing-.literal_position-directives.patch | 62 ++++++++++++++++++++++
> 10 files changed, 72 insertions(+), 44 deletions(-)
> create mode 100644 package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/uclibc-0001-xtensa-add-missing-.literal_position-directives.patch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
` (10 preceding siblings ...)
2014-03-31 3:26 ` [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Baruch Siach
@ 2014-04-03 19:39 ` Thomas Petazzoni
11 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2014-04-03 19:39 UTC (permalink / raw)
To: buildroot
Dear Max Filippov,
On Sun, 30 Mar 2014 21:57:44 +0400, Max Filippov wrote:
> this series is the second part of fixes for building huge sources, like
> wireshark or mplayer: adding trampolines support to binutils allows
> assembling of such files, but with literals placed into separate section
> build fails at the linking step.
>
> First patch allows building uclibc with -mtext-section-literals, it is
> posted to the uclibc list, but not reviewed/checked in yet.
> Second patch adds -mtext-section-literals flag to xtensa ABI.
> Remaining patches revert -mtext-section-literals additions to individual
> packages.
Series applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-04-03 19:39 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 17:57 [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 01/10] uclibc: add missing .literal_position directives Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 02/10] Makefile.in: add -mtext-section-literals to xtensa ABI Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 03/10] Revert "civetweb: fix build for xtensa" Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 04/10] Revert "ffmpeg: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 05/10] Revert "gst-ffmpeg: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 06/10] Revert "gst1-libav: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 07/10] Revert "lmbench: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 08/10] Revert "php: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 09/10] Revert "sqlcipher: " Max Filippov
2014-03-30 17:57 ` [Buildroot] [PATCH v3 10/10] Revert "xtensa: sqlite requires special compiler option" Max Filippov
2014-03-31 3:26 ` [Buildroot] [PATCH v3 00/10] xtensa: add -mtext-section-literals to xtensa ABI Baruch Siach
2014-04-03 19:39 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox