aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-14 18:01:56 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-14 18:01:56 -0700
commit5af3e6abb6a34add3d74449e9714c4e4bb28836c (patch)
tree27801bbeb9dbc1f24dba747e0c872d0fb6a2e28c
parent36b86591d37cfe120f63ae27218264506750da51 (diff)
downloadlwip-5af3e6abb6a34add3d74449e9714c4e4bb28836c.tar.gz
lwip-5af3e6abb6a34add3d74449e9714c4e4bb28836c.tar.xz
lwip-5af3e6abb6a34add3d74449e9714c4e4bb28836c.zip
core: get rid of .rel.dyn properly
Get rid of the .rel.dyn section properly. .rel.dyn isn't actually an input section name -- it is an output section name, so we need to specify the correct input sections, which all match *(.rel.*). Huge thanks to H.J. Lu for this tip. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/Makefile2
-rw-r--r--core/syslinux.ld10
2 files changed, 2 insertions, 10 deletions
diff --git a/core/Makefile b/core/Makefile
index b9963657..01a136eb 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -82,7 +82,7 @@ kwdhash.gen: keywords genhash.pl
.PRECIOUS: %.elf
%.raw: %.elf
- $(OBJCOPY) -O binary -R .rel.dyn $< $(@:.bin=.raw)
+ $(OBJCOPY) -O binary $< $(@:.bin=.raw)
%.bin: %.raw $(PREPCORE)
$(PREPCORE) $< $@
diff --git a/core/syslinux.ld b/core/syslinux.ld
index cb15ca09..63636354 100644
--- a/core/syslinux.ld
+++ b/core/syslinux.ld
@@ -374,17 +374,9 @@ SECTIONS
. = ALIGN(65536);
free_high_memory = .;
- /*
- * We don't need .rel.dyn so put it here where we can simply
- * remove it. Putting it in /DISCARD/ doesn't work because it
- * is linker-generated.
- */
- .rel.dyn : {
- *(.rel.dyn)
- }
-
/* Stuff we don't need... */
/DISCARD/ : {
+ *(.rel.*) /* Input sections to .rel.dyn */
*(.interp)
*(.eh_frame)
}