[PATCH] ELF: Don't use LayoutPass.
Shankar Kalpathi Easwaran
shankarke at gmail.com
Fri Jan 30 08:58:09 PST 2015
This is a bug that apparently will be seen when using linker scripts.
Linker scripts control this behavior by using SORT_BY_INIT_PRIORITY. This is usually not present on targets that dont support init array by priority.
This is not safe to be done before the writer, and makes it hard to support with linker scripts IMO, and the pass should be moved inside the ELFWriter.
We might want to consider enabling this pass only for targets that need support of running initializers by priority (Example : X86_64)
http://reviews.llvm.org/D7278
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list