mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
remove section version_information for client
This commit is contained in:
parent
577380ae48
commit
e2a20631c7
5 changed files with 22 additions and 5 deletions
|
@ -20,7 +20,6 @@ endif
|
||||||
#in the next section to remove that particular feature from compilation.
|
#in the next section to remove that particular feature from compilation.
|
||||||
# NO space,TABs after the "\" sign.
|
# NO space,TABs after the "\" sign.
|
||||||
APP_CFLAGS = $(PLATFORM_DEFS) \
|
APP_CFLAGS = $(PLATFORM_DEFS) \
|
||||||
-DON_DEVICE \
|
|
||||||
-fno-strict-aliasing -ffunction-sections -fdata-sections
|
-fno-strict-aliasing -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c lfadc.c
|
SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c lfadc.c
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
/* This is the default version.c file that Makefile.common falls back to if neither sh nor perl are available */
|
/* This is the default version.c file that Makefile.common falls back to if neither sh nor perl are available */
|
||||||
const struct version_information __attribute__((section(".version_information"))) version_information = {
|
#ifndef ON_DEVICE
|
||||||
|
#define SECTVERSINFO
|
||||||
|
#else
|
||||||
|
#define SECTVERSINFO __attribute__((section(".version_information")))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const struct version_information SECTVERSINFO version_information = {
|
||||||
VERSION_INFORMATION_MAGIC,
|
VERSION_INFORMATION_MAGIC,
|
||||||
1, /* version 1 */
|
1, /* version 1 */
|
||||||
0, /* version information not present */
|
0, /* version information not present */
|
||||||
|
|
|
@ -90,7 +90,7 @@ ifeq ($(NOERROR),1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS ?= $(DEFCFLAGS)
|
CFLAGS ?= $(DEFCFLAGS)
|
||||||
CFLAGS += $(ARMCFLAGS) -c $(INCLUDE) -std=c99 $(APP_CFLAGS)
|
CFLAGS += $(ARMCFLAGS) -c $(INCLUDE) -std=c99 -DON_DEVICE $(APP_CFLAGS)
|
||||||
|
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs -Wl,-gc-sections -Wl,--build-id=none -n
|
LDFLAGS += -nostartfiles -nodefaultlibs -Wl,-gc-sections -Wl,--build-id=none -n
|
||||||
LIBS = -lgcc
|
LIBS = -lgcc
|
||||||
|
|
|
@ -66,7 +66,13 @@ $fullgitinfo = substr $fullgitinfo, 0, 49;
|
||||||
print <<EOF
|
print <<EOF
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
/* Generated file, do not edit */
|
/* Generated file, do not edit */
|
||||||
const struct version_information __attribute__((section(".version_information"))) version_information = {
|
#ifndef ON_DEVICE
|
||||||
|
#define SECTVERSINFO
|
||||||
|
#else
|
||||||
|
#define SECTVERSINFO __attribute__((section(".version_information")))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const struct version_information SECTVERSINFO version_information = {
|
||||||
VERSION_INFORMATION_MAGIC,
|
VERSION_INFORMATION_MAGIC,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
|
|
|
@ -49,7 +49,13 @@ fi
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
/* Generated file, do not edit */
|
/* Generated file, do not edit */
|
||||||
const struct version_information __attribute__((section(".version_information"))) version_information = {
|
#ifndef ON_DEVICE
|
||||||
|
#define SECTVERSINFO
|
||||||
|
#else
|
||||||
|
#define SECTVERSINFO __attribute__((section(".version_information")))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const struct version_information SECTVERSINFO version_information = {
|
||||||
VERSION_INFORMATION_MAGIC,
|
VERSION_INFORMATION_MAGIC,
|
||||||
1,
|
1,
|
||||||
1,
|
1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue