Commit b24d1cb5 authored by Shenghou Ma's avatar Shenghou Ma Committed by Russ Cox

5l: remove redundant code

        5l/asm.c: code in line 311-319 has already outputed segtext.sect->next;

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5532048
parent 5163e7aa
...@@ -325,11 +325,6 @@ asmb(void) ...@@ -325,11 +325,6 @@ asmb(void)
cseek(segdata.fileoff); cseek(segdata.fileoff);
datblk(segdata.vaddr, segdata.filelen); datblk(segdata.vaddr, segdata.filelen);
/* output read-only data in text segment */
sect = segtext.sect->next;
cseek(sect->vaddr - segtext.vaddr + segtext.fileoff);
datblk(sect->vaddr, sect->len);
if(iself) { if(iself) {
/* index of elf text section; needed by asmelfsym, double-checked below */ /* index of elf text section; needed by asmelfsym, double-checked below */
/* !debug['d'] causes extra sections before the .text section */ /* !debug['d'] causes extra sections before the .text section */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment