mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Enable ld flag --warn-common
git-svn-id: svn://coreboot.org/openbios/openbios-devel@236 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
|
||||
<rule>
|
||||
$(LD) -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(LD) --warn-common -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@</rule>
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
<executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
|
||||
<rule>
|
||||
$(LD) -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(LD) --warn-common -N -T arch/sparc32/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@</rule>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<executable name="openbios-plain.elf" target="target" condition="IMAGE_ELF">
|
||||
<rule>
|
||||
$(LD) -T arch/sparc64/ldscript -o $@.nostrip $^
|
||||
$(LD) --warn-common -T arch/sparc64/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-plain.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@</rule>
|
||||
@@ -69,7 +69,7 @@
|
||||
<executable name="openbios-builtin.elf" target="target" condition="IMAGE_ELF_EMBEDDED">
|
||||
<!-- We use -N to reduce the file size by 1M -->
|
||||
<rule>
|
||||
$(LD) -N -T arch/sparc64/ldscript -o $@.nostrip $^
|
||||
$(LD) --warn-common -N -T arch/sparc64/ldscript -o $@.nostrip $^
|
||||
$(NM) $@.nostrip | sort > $(ODIR)/openbios-builtin.syms
|
||||
cp $@.nostrip $@
|
||||
$(STRIP) $@</rule>
|
||||
|
||||
Reference in New Issue
Block a user