[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11133] gc-sections deletes sections with __start/__stop re
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference |
Date: |
7 Jan 2010 11:23:42 -0000 |
------- Additional Comments From amodra at gmail dot com 2010-01-07 11:23
-------
Imagine someone who wants an array of functions (perhaps constructor like) or
some other object used in their app. They set up weak references in a named
section, then access the array using the __start_* symbol. The array itself
isn't referenced so references there don't cause the functions to be kept.
Oh.. My array won't be kept either. I didn't think of that earlier.. Hmm, the
named section would need to be a debug section, and then it doesn't matter if
there is a change in the way __start_* affects --gc-sections.
So my concern that HJ's idea might affect some existing app is probably not
valid. I still don't particularly like a reference to __start_somesection
meaning that we should keep all "somesection" input sections. It would be
better if there were a more explicit way to mark input sections. I also note
that HJ's patch is incorrect since marking a section with gc_mark and returning
NULL from gc_mark_hook will result in no mark phase recursion for that section.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11133
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11133] New: Static linking with gc-sections deletes __libc_atexit causing problems with stdio buffer flush to file., tmsriram at google dot com, 2010/01/04
- [Bug binutils/11133] Static linking with gc-sections deletes __libc_atexit causing problems with stdio buffer flush to file., hjl dot tools at gmail dot com, 2010/01/05
- [Bug binutils/11133] Static linking with gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/05
- [Bug binutils/11133] Static linking with gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/05
- [Bug binutils/11133] Static linking with gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/05
- [Bug binutils/11133] Static linking with gc-sections deletes sections with __start/__stop reference, amodra at gmail dot com, 2010/01/06
- [Bug binutils/11133] Static linking with gc-sections deletes sections with __start/__stop reference, ian at airs dot com, 2010/01/06
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/06
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, vapier at gentoo dot org, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference,
amodra at gmail dot com <=
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, cvs-commit at gcc dot gnu dot org, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, hjl dot tools at gmail dot com, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, vapier at gentoo dot org, 2010/01/07
- [Bug binutils/11133] gc-sections deletes sections with __start/__stop reference, cvs-commit at gcc dot gnu dot org, 2010/01/08