Summary: | --gc-sections is broken with __start_ | ||
---|---|---|---|
Product: | binutils | Reporter: | H.J. Lu <hjl.tools> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amodra |
Priority: | P2 | ||
Version: | 2.26 | ||
Target Milestone: | 2.26 | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Bug Depends on: | 27495 | ||
Bug Blocks: | 21562 |
Description
H.J. Lu
2015-10-23 11:09:33 UTC
The master branch has been updated by H.J. Lu <hjl@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=be83aa76d2877770c23d7c2bde0319564a8f7e48 commit be83aa76d2877770c23d7c2bde0319564a8f7e48 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Oct 23 04:23:51 2015 -0700 Add a test for PR ld/19167 PR ld/19167 * ld-gc/gc.exp: Run pr19167 test. * ld-gc/pr19167.d: New file. * ld-gc/pr19167a.s: Likewise. * ld-gc/pr19167b.s: Likewise. Now I got Running /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/ld-gc/gc.exp ... FAIL: ld-gc/pr19167 The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1cce69b9dc8c58884c3cc4a8928fb234294e6886 commit 1cce69b9dc8c58884c3cc4a8928fb234294e6886 Author: Alan Modra <amodra@gmail.com> Date: Fri Oct 23 22:23:05 2015 +1030 Handle __start_* and __stop_* symbols in --gc-sections PR ld/11133 PR ld/19161 PR ld/19167 * elflink.c (_bfd_elf_gc_mark_hook): Delete code handling __start_* and __stop_* symbol refs. (_bfd_elf_gc_mark_rsec): Add start_stop parameter. Handle __start_* and __stop_* symbol refs here.. (_bfd_elf_gc_mark_reloc): ..and here. * elf-bfd.h (_bfd_elf_gc_mark_hook): Update prototype. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update _bfd_elf_gc_mark_rsec call. Fixed. |