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:
Blue Swirl
2008-09-11 19:33:02 +00:00
parent 118b07fdfb
commit dd7b9b93eb
2 changed files with 4 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>