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 Name Job ID Coverage
  Lint
passed lint-linters #327631
lint

00:00:13

failed lint-submods #327634
lint allowed to fail

00:00:13

passed lint-submods-branch #327635
lint

00:00:23

passed lint-testsuite #327632
lint

00:00:15

passed typecheck-testsuite #327633
lint

00:00:14

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

00:11:25

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

02:00:01

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

04:33:32

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

04:26:39

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

01:22:06

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

00:00:07

passed validate-x86_64-darwin #327639
x86_64-darwin

01:10:40

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

02:37:15

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

02:04:19

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

01:37:03

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

03:46:19

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

01:52:05

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

00:00:07

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

00:00:07

 
  Cleanup
passed cleanup-darwin #327650
x86_64-darwin

00:00:17

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

00:01:18

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

00:32:36

 
  Deploy
failed pages #327654
x86_64-linux allowed to fail

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