Ticket #1840: 0001-xtensa-text-section-literals.patch

File 0001-xtensa-text-section-literals.patch, 753 bytes (added by Woodrow E Douglass, 4 months ago)

A patch that resolves the xtensa build failure

  • Makefile.linux

    From e8d177f4d4e1c6bc41787ea1621e323ff4ad493e Mon Sep 17 00:00:00 2001
    From: Woodrow Douglass <wdouglass@carnegierobotics.com>
    Date: Mon, 22 Jul 2024 08:50:37 -0400
    Subject: [PATCH] Move literals into text section for xtensa architecture
    
    Signed-off-by: Woodrow Douglass <wdouglass@carnegierobotics.com>
    ---
     Makefile.linux | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/Makefile.linux b/Makefile.linux
    index b628cda4..e97c2b94 100644
    a b USES_SONAME = yes 
    5252
    5353# architectures
    5454
     55ifeq ($(ARCH),xtensa)
     56C_COMPILER_OPTIONS += -mtext-section-literals
     57LINKER_OPTIONS += -mtext-section-literals
     58endif
     59
    5560ifeq ($(ARCH),x32)
    5661C_COMPILER_OPTIONS += -mx32
    5762LINKER_OPTIONS += -mx32