summaryrefslogtreecommitdiff
path: root/data/pie-link.specs
AgeCommit message (Collapse)AuthorFilesLines
2016-11-13data: Do not enable PIE when linking static programsGuillem Jover1-1/+1
It seems like at least glibc does not support statically linked PIE programs, and produces random junk. Disable globally for now, if there's a desire to enable static PIE binaries, which is known to work on some architectures (such as musl-based ones) we can add specialized specs files in the future. Closes: #843714 Proposed-by: Szabolcs Nagy <nsz@port70.net>
2016-11-11data: Improve PIE handlingGuillem Jover1-1/+1
- Rename the spec name cc1_options to self_spec. - Do not set PIE options if they have been negated, and do not reset them if they have been requested. Closes: #843791, #843826
2016-11-07Dpkg::Vendor::Debian: Improve PIE flags supportGuillem Jover1-0/+2
Fix changelog for dpkg 1.18.11 to mention PIE got enabled by default for all architectures, not just the ones where gcc does that itself. When emitting PIE flags on architectures where gcc does not inject those itself, do it via a specs file too, so that maintainers can use them unconditionally regardless of the object being compiled or linked. When injecting -no-pie for linking via gcc specs also inject -fno-PIE. Update the documentation to make the current situation more clear.