Skip to content

Commit 4204bda

Browse files
committed
plat-rcar: add --no-warn-rwx-segments
This is copy of commit: 0b8a917 (Subject: [PATCH] core: link: add --no-warn-rwx-segments) For more detail, please refer to commit message of that patch. Signed-off-by: Dien Pham <dien.pham.ry@renesas.com>
1 parent c14844f commit 4204bda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/arch/arm/plat-rcar/link.mk

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ link-ldflags += -T $(link-script-pp) -Map=$(link-out-dir)/tee.map
1717
link-ldflags += --sort-section=alignment
1818
link-ldflags += --fatal-warnings
1919
link-ldflags += --gc-sections
20+
link-ldflags += $(call ld-option,--no-warn-rwx-segments)
2021

2122
link-ldadd = $(LDADD)
2223
link-ldadd += $(ldflags-external)
@@ -38,6 +39,7 @@ link-script-cppflags := \
3839
$(cppflagscore))
3940

4041
ldargs-all_objs := -T $(link-script-dummy) --no-check-sections \
42+
$(call ld-option,--no-warn-rwx-segments) \
4143
$(link-objs) $(link-ldadd) $(libgcccore)
4244
cleanfiles += $(link-out-dir)/all_objs.o
4345
$(link-out-dir)/all_objs.o: $(objs) $(libdeps) $(MAKEFILE_LIST)
@@ -50,7 +52,8 @@ $(link-out-dir)/unpaged_entries.txt: $(link-out-dir)/all_objs.o
5052
$(q)$(NMcore) $< | \
5153
$(AWK) '/ ____keep_pager/ { printf "-u%s ", $$3 }' > $@
5254

53-
unpaged-ldargs = -T $(link-script-dummy) --no-check-sections --gc-sections
55+
unpaged-ldargs = -T $(link-script-dummy) --no-check-sections --gc-sections \
56+
$(call ld-option,--no-warn-rwx-segments)
5457
unpaged-ldadd := $(objs) $(link-ldadd) $(libgcccore)
5558
cleanfiles += $(link-out-dir)/unpaged.o
5659
$(link-out-dir)/unpaged.o: $(link-out-dir)/unpaged_entries.txt
@@ -78,7 +81,8 @@ $(link-out-dir)/init_entries.txt: $(link-out-dir)/all_objs.o
7881
$(q)$(NMcore) $< | \
7982
$(AWK) '/ ____keep_init/ { printf "-u%s ", $$3 }' > $@
8083

81-
init-ldargs := -T $(link-script-dummy) --no-check-sections --gc-sections
84+
init-ldargs := -T $(link-script-dummy) --no-check-sections --gc-sections \
85+
$(call ld-option,--no-warn-rwx-segments)
8286
init-ldadd := $(link-objs-init) $(link-out-dir)/version.o $(link-ldadd) \
8387
$(libgcccore)
8488
cleanfiles += $(link-out-dir)/init.o

0 commit comments

Comments
 (0)