fix firmware/sections.lds section size alignment on 4 bytes

This commit is contained in:
Yanghao Hua 2019-04-27 12:37:35 +02:00
parent 507f49d086
commit d60ffd8eea
2 changed files with 4 additions and 2 deletions

View File

@ -1,13 +1,14 @@
RISCV_PATH = /opt/riscv32i/bin
RISCV_GNU_TOOLCHAIN_GIT_REVISION = 411d134 RISCV_GNU_TOOLCHAIN_GIT_REVISION = 411d134
RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX = /opt/riscv32 RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX = $(RISCV_PATH)
SHELL = bash SHELL = bash
TEST_OBJS = $(addsuffix .o,$(basename $(wildcard tests/*.S))) TEST_OBJS = $(addsuffix .o,$(basename $(wildcard tests/*.S)))
FIRMWARE_OBJS = firmware/start.o firmware/irq.o firmware/print.o firmware/sieve.o firmware/multest.o firmware/stats.o FIRMWARE_OBJS = firmware/start.o firmware/irq.o firmware/print.o firmware/sieve.o firmware/multest.o firmware/stats.o
GCC_WARNS = -Werror -Wall -Wextra -Wshadow -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings GCC_WARNS = -Werror -Wall -Wextra -Wshadow -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
GCC_WARNS += -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -pedantic # -Wconversion GCC_WARNS += -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -pedantic # -Wconversion
TOOLCHAIN_PREFIX = $(RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX)i/bin/riscv32-unknown-elf- TOOLCHAIN_PREFIX = $(RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX)/riscv32-unknown-elf-
COMPRESSED_ISA = C COMPRESSED_ISA = C
# Add things like "export http_proxy=... https_proxy=..." here # Add things like "export http_proxy=... https_proxy=..." here

View File

@ -20,5 +20,6 @@ SECTIONS {
*(.text); *(.text);
*(*); *(*);
end = .; end = .;
. = ALIGN(4);
} > mem } > mem
} }