Skip to contentSkip to conversation

xtensa: sqlite requires special compiler option

PATCH New Chris Zankel 2 participants 2 messages Jan 22, 2013 – Jan 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa: sqlite requires special compiler option

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.

---
 package/sqlite/sqlite.mk |    4 ++++
 1 file changed, 4 insertions(+)
package/sqlite/sqlite.mk +4 -0
index bf4b921..8eb6b2f 100644
@@ -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 = \
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 xtensa: sqlite requires special compiler option

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Chris" == Chris Zankel <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard