Make the assembler generate an error if there is an attempt to define a section with...
authorNick Clifton <nickc@redhat.com>
Wed, 8 Jan 2020 16:30:20 +0000 (16:30 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 8 Jan 2020 16:30:20 +0000 (16:30 +0000)
commitf1f28025c3ea75d5368ddd3046461648145b89b3
treefb1d76e45031da950adaf8f42cc90c9a43cd749e
parent030a2e78acf66c5c12e073ec3887a167da7a7195
Make the assembler generate an error if there is an attempt to define a section with the same name as an already defined symbol.

PR 14891
* config/obj-elf.c (obj_elf_section): Fail if the section name is
already defined as a different symbol type.
* testsuite/gas/elf/pr14891.s: New test source file.
* testsuite/gas/elf/pr14891.d: New test driver.
* testsuite/gas/elf/pr14891.s: New test expected error output.
* testsuite/gas/elf/elf.exp: Run the new test.
gas/ChangeLog
gas/config/obj-elf.c
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/pr14891.d [new file with mode: 0644]
gas/testsuite/gas/elf/pr14891.l [new file with mode: 0644]
gas/testsuite/gas/elf/pr14891.s [new file with mode: 0644]
This page took 0.024466 seconds and 4 git commands to generate.