Patchwork [1] xtensa: sqlite requires special compiler option

login
register
mail settings
Submitter Chris Zankel
Date Jan. 22, 2013, 8:33 p.m.
Message ID <50fef791.c587440a.325a.2b65@mx.google.com>
Download mbox | patch
Permalink /patch/214645/
State Accepted
Commit 6a30cd3fb30b8057ddde2c72a88c0bb6ad7d1761
Headers show

Comments

Chris Zankel - Jan. 22, 2013, 8:33 p.m.
Some of the generated object files are too large for PC-relative addressing,
so use the --test-section-literals to move symbols closer to the code.

Signed-off-by: Chris Zankel <chris@zankel.net>
---
 package/sqlite/sqlite.mk |    4 ++++
 1 file changed, 4 insertions(+)
Peter Korsgaard - Jan. 29, 2013, 11:20 p.m.
>>>>> "Chris" == Chris Zankel <chris@zankel.net> writes:

 Chris> Some of the generated object files are too large for PC-relative addressing,
 Chris> so use the --test-section-literals to move symbols closer to the code.

The option seems to be -mtext-section-literals.

Committed with the commit message corrected, thanks.

Patch

diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk
index bf4b921..8eb6b2f 100644
--- a/package/sqlite/sqlite.mk
+++ b/package/sqlite/sqlite.mk
@@ -33,6 +33,10 @@  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 = \