Commit f2af2010 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman
Browse files

powerpc/build: vdso linker warning for orphan sections

parent 5e66a0cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ $(obj-vdso32): %.o: %.S FORCE

# actual build commands
quiet_cmd_vdso32ld = VDSO32L $@
      cmd_vdso32ld = $(VDSOCC) $(c_flags) $(CC32FLAGS) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^)
      cmd_vdso32ld = $(VDSOCC) $(c_flags) $(CC32FLAGS) -o $@ $(call cc-ldoption, -Wl$(comma)--orphan-handling=warn) -Wl,-T$(filter %.lds,$^) $(filter %.o,$^)
quiet_cmd_vdso32as = VDSO32A $@
      cmd_vdso32as = $(VDSOCC) $(a_flags) $(CC32FLAGS) -c -o $@ $<

+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ SECTIONS
		*(.note.GNU-stack)
		*(.data .data.* .gnu.linkonce.d.* .sdata*)
		*(.bss .sbss .dynbss .dynsbss)
		*(.glink .iplt .plt .rela*)
	}
}

+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE

# actual build commands
quiet_cmd_vdso64ld = VDSO64L $@
      cmd_vdso64ld = $(CC) $(c_flags) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^)
      cmd_vdso64ld = $(CC) $(c_flags) -o $@ -Wl,-T$(filter %.lds,$^) $(filter %.o,$^) $(call cc-ldoption, -Wl$(comma)--orphan-handling=warn)

# install commands for the unstripped file
quiet_cmd_vdso_install = INSTALL $@
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ SECTIONS
	. = ALIGN(16);
	.text		: {
		*(.text .stub .text.* .gnu.linkonce.t.* __ftr_alt_*)
		*(.sfpr .glink)
		*(.sfpr)
	}						:text
	PROVIDE(__etext = .);
	PROVIDE(_etext = .);
@@ -111,6 +111,7 @@ SECTIONS
		*(.branch_lt)
		*(.data .data.* .gnu.linkonce.d.* .sdata*)
		*(.bss .sbss .dynbss .dynsbss)
		*(.glink .iplt .plt .rela*)
	}
}