mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
26af162ac8
Implement relocation for M68K. Perform all the updates in start.S relocate_code in assemby, since it is a simple matter of traversing the dynsym table and adding relocation offset - MONITOR_BASE to all the items in that table. The necessity to deal with MONITOR_BASE is a specific of M68K, where the ELF entry point is at offset 0x400, which is the MONITOR_BASE, while TEXT_BASE is at offset 0 . This also removes the one last user of NEEDS_MANUAL_RELOC, so that could be finally cleaned up . Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
10 lines
328 B
Makefile
10 lines
328 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2002
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
PLATFORM_CPPFLAGS += -D__M68K__ -fPIC
|
|
KBUILD_LDFLAGS += -n -pie
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
|
PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
|
|
LDFLAGS_FINAL += --gc-sections -pie
|