This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Using -fdata-sections with the AVR port gives an abort. The problem is in avr_unique_section. This gets used by TARGET_ASM_UNIQUE_SECTION, and predates the default_unique_section function. This has support for -ffunction-sections, but not -fdata-sections. Since the avr_unique_section function is a strict subset of default_unique_section, we should just delete it and use the default definition instead. This makes -fdata-sections work, and gives the same result for -ffunction-sections. This was tested with a cross compiler, just compiling some small testcases to verify that both -ffunction-sections and -fdata-sections were working. -- Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
Attachment:
patch.unique.section
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |