> .../src/cmd/8a/asm.c, around line #900:
>
>                /* This null SHdr must appear before all others */
>                sh = newElfShdr(elfstr[ElfStrEmpty]);
>
> My guess is that this needs to be followed by an instruction to write
> out the header, which in fact does not take place.

The code is corect.  newElfShdr updates a global table.
You can delete the "sh = " but not the whole line.

>        308c308
>        < archreloc(Reloc *r, Sym *s, vlong *val)
>        ---
>        > archreloc(Reloc *r, Sym *, vlong *val)

If you insert USED(s) as a statement in the body of the
function, we can take back the change.

Russ

Reply via email to