xtensa: sqlite requires special compiler option
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.
Signed-off-by Chris Zankel <[email protected]>
--- package/sqlite/sqlite.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/sqlite/sqlite.mk +4 -0
@@ -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
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