From 3fcc2d265f1521c2dcae0734de355962cc6cd7a0 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Mon, 21 Oct 2019 00:22:00 +0200 Subject: More work on GNU as generation On _gas_mapping, label definitions do not allow "::". ":" must be used instead. gasOutput is now part of "options". Unneeded sections, such as HOME/GSINIT/etc., are no longer declared and/or defined. GNU as just does not need them. Startup function name must equal "_start" for GNU ld. The value of some macros, such as CODE_NAME or DATA_NAME, must change according to options.gasOutput, as "CODE" or "DATA" (among many others) are not understood by GNU as. STM8 port now selects GNU as format on --gas switch enabled. --- src/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 692ac7e..8604fee 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,12 +15,12 @@ PORTS = $(shell cat ../ports.build) ALLPORTS = $(shell cat ../ports.all) PORT_LIBS = $(PORTS:%=%/port.a) -LIBS = -lm +LIBS = -lm -CFLAGS = -pipe -ggdb -g -O2 -Wall -Wno-parentheses -CXXFLAGS = -pipe -ggdb -g -O2 -Wall -Wno-parentheses +CFLAGS = -pipe -ggdb -g -Og -Wall -Wno-parentheses +CXXFLAGS = -pipe -ggdb -g -Og -Wall -Wno-parentheses CPPFLAGS += -I$(srcdir) -LDFLAGS = +LDFLAGS = ifdef SDCC_SUB_VERSION CFLAGS += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\" -- cgit v1.2.3