-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# $NetBSD: Makefile.inc,v 1.15 2018/04/03 21:10:27 joerg Exp $ | ||
# | ||
# Makefile for Phoenix-RTOS ld.elf_so/arch | ||
# | ||
# Copyright 2024 Phoenix Systems | ||
# | ||
|
||
SRCS+= rtld_start.S mdreloc.c | ||
LDSO_ARCH_DIR := $(call my-dir) | ||
LDSO_ARCH_PREFIX := $(LDSO_ARCH_DIR:$(LOCAL_DIR)%=%) | ||
|
||
# XXX Should not be in CPPFLAGS! | ||
CPPFLAGS+= -fpic | ||
LOCAL_SRCS += $(addprefix $(LDSO_ARCH_PREFIX), rtld_start.S mdreloc.c) | ||
|
||
CPPFLAGS+= -DELFSIZE=32 | ||
CPPFLAGS+= -DRTLD_COMMON_CALL_IFUNC_RELA | ||
LOCAL_CFLAGS += -DELFSIZE=32 | ||
LOCAL_CFLAGS += -DRTLD_COMMON_CALL_IFUNC_REL | ||
|
||
LDFLAGS+= -Wl,-e,_rtld_start | ||
LOCAL_LDFLAGS += $(LDFLAGS_PREFIX)-e,.rtld_start | ||
LOCAL_LDFLAGS += $(TARGET_PIC_FLAG) | ||
|
||
# FIXME: improve tls implementation in Phoenix | ||
LOCAL_CFLAGS += -D__HAVE_TLS_VARIANT_II | ||
LOCAL_CFLAGS += -D__HAVE_COMMON___TLS_GET_ADDR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters