ELF linker: increment curSymbol after filling in fields of current entry

The bug was introduced in a8b7cef4 which added a field to the
`symbols` array elements and then updated this code incorrectly:

    - oc->symbols[curSymbol++] = nm;
    + oc->symbols[curSymbol++].name = nm;
    + oc->symbols[curSymbol].addr = symbol->addr;
24 jobs for master in 700 minutes and 19 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Lint
passed #327631
lint
lint-linters

00:00:13

failed #327634
lint allowed to fail
lint-submods

00:00:13

passed #327635
lint
lint-submods-branch

00:00:23

passed #327632
lint
lint-testsuite

00:00:15

passed #327633
lint
typecheck-testsuite

00:00:14

 
  Quick Build
passed #327636
x86_64-linux
hadrian-ghc-in-ghci

00:11:25

 
  Build
passed #327637
x86_64-linux
validate-x86_64-linux-deb9-hadrian

02:00:01

 
  Full Build
failed #327640
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

04:33:32

passed #327641
armv7-linux
validate-armv7-linux-deb9

04:26:39

passed #327642
x86_64-linux
validate-i386-linux-deb9

01:22:06

failed #327649
new-x86_64-windows test allowed to fail
validate-i386-windows

00:00:07

passed #327639
x86_64-darwin
validate-x86_64-darwin

01:10:40

passed #327643
x86_64-linux
validate-x86_64-linux-deb9-debug

02:37:15

passed #327645
x86_64-linux
validate-x86_64-linux-deb9-dwarf

02:04:19

passed #327644
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:37:03

passed #327638
x86_64-linux
validate-x86_64-linux-deb9-unreg-hadrian

03:46:19

passed #327646
x86_64-linux
validate-x86_64-linux-fedora27

01:52:05

failed #327648
new-x86_64-windows test allowed to fail
validate-x86_64-windows

00:00:07

failed #327647
new-x86_64-windows test allowed to fail
validate-x86_64-windows-hadrian

00:00:07

 
  Cleanup
passed #327650
x86_64-darwin
cleanup-darwin

00:00:17

 
  Packaging
failed #327651
x86_64-linux allowed to fail
doc-tarball

00:01:18

 
  Testing
manual #327652
x86_64-linux allowed to fail manual
hackage
passed #327653
x86_64-linux
perf-nofib

00:32:36

 
  Deploy
failed #327654
x86_64-linux allowed to fail
pages

00:02:25

 
Name Stage Failure
failed
lint-submods Lint
Entering 'libraries/unix'
Entering 'libraries/xhtml'
Entering 'nofib'
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
Authenticating with credentials from job payload (GitLab Registry)
$ git fetch "$CI_MERGE_REQUEST_PROJECT_URL" $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
fatal: No path specified. See 'man git-pull' for valid url syntax
ERROR: Job failed: exit code 1
failed
pages Deploy
Entering 'libraries/xhtml'
Entering 'nofib'
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build
Git branch:   12-4-stable
GO version: go1.10.8
Built: 2019-10-28T12:49:51+0000
OS/Arch: windows/amd64
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=4360 revision=05161b14 version=12.4.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
validate-aarch64-linux-deb9 Full Build
Uploading artifacts...
ghc-aarch64-linux-deb9.tar.xz: found 1 matching files
junit.xml: found 1 matching files

performance-metrics.tsv: found 1 matching files

Uploading artifacts to coordinator... ok
id=327640 responseStatus=201 Created token=6ybVQve-
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=327640 responseStatus=201 Created token=6ybVQve-
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows-hadrian Full Build
Git branch:   12-4-stable
GO version: go1.10.8
Built: 2019-10-28T12:49:51+0000
OS/Arch: windows/amd64
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=5008 revision=05161b14 version=12.4.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
validate-i386-windows Full Build
Git branch:   12-4-stable
GO version: go1.10.8
Built: 2019-10-28T12:49:51+0000
OS/Arch: windows/amd64
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=2556 revision=05161b14 version=12.4.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
doc-tarball Packaging
Entering 'libraries/xhtml'
Entering 'nofib'
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
Downloading artifacts for validate-x86_64-linux-deb9-debug (327643)...
Downloading artifacts from coordinator... ok id=327643 responseStatus=200 OK token=b1cafPvh
$ if [ ! -f "$LINUX_BINDIST" ]; then # collapsed multi-line command
Error: ghc-x86_64-mingw32.tar.xz does not exist. Did the 64-bit Windows job fail?
ERROR: Job failed: exit code 1