[cfe-dev] [PATCH] options -ffunction-sections and -fdata-sections

Anton Korobeynikov anton at korobeynikov.info
Wed Apr 7 13:07:46 PDT 2010

Hello, Sylvere

> Currently it works only for elf format backend, for other object formats
> these options are ignored.
First of all, please honor the LLVM coding style (or, at least, the
code style of the source files you're modifying).
Second, I belive the approach used is wrong - there is already way to
emit objects into separate sections, which
is used for linkonce objects, you just need to hook in there. No need
to reinvent the wheel :)

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the cfe-dev mailing list