[1] xtensa: sqlite requires special compiler option

Submitted by Chris Zankel on Jan. 22, 2013, 8:33 p.m.

Details

Message ID 50fef791.c587440a.325a.2b65@mx.google.com
State Accepted
Commit 6a30cd3fb30b8057ddde2c72a88c0bb6ad7d1761
Headers show

Commit Message

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(+)

Comments

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 hide | download patch | download mbox

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 = \