Commit a73f6b51 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Use `--unique=.gnu.linkonce.this_module' linker flag for modules on v850

This prevents the linker from merging the .gnu.linkonce.this_module section
into the .text section, which is necessary for modules to load correctly.
parent ceced1a3
# #
# arch/v850/Makefile # arch/v850/Makefile
# #
# Copyright (C) 2001,02 NEC Corporation # Copyright (C) 2001,02,03 NEC Corporation
# Copyright (C) 2001,02 Miles Bader <miles@gnu.org> # Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
# #
# This file is included by the global makefile so that you can add your own # This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions # architecture-specific flags and dependencies. Remember to do have actions
...@@ -22,6 +22,11 @@ CFLAGS += -ffixed-r16 -mno-prolog-function ...@@ -22,6 +22,11 @@ CFLAGS += -ffixed-r16 -mno-prolog-function
CFLAGS += -fno-builtin CFLAGS += -fno-builtin
CFLAGS += -D__linux__ -DUTS_SYSNAME=\"uClinux\" CFLAGS += -D__linux__ -DUTS_SYSNAME=\"uClinux\"
# This prevents the linker from consolidating the .gnu.linkonce.this_module
# section into .text (which the v850 default linker script for -r does for
# some reason)
LDFLAGS_MODULE += --unique=.gnu.linkonce.this_module
LDFLAGS_BLOB := -b binary --oformat elf32-little LDFLAGS_BLOB := -b binary --oformat elf32-little
OBJCOPY_FLAGS_BLOB := -I binary -O elf32-little -B v850e OBJCOPY_FLAGS_BLOB := -I binary -O elf32-little -B v850e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment