From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Phil Newsgroups: comp.lang.ada Subject: Re: GNAT compiler versions and addr2line Date: Thu, 23 Aug 2018 17:50:10 -0000 (UTC) Organization: Green Pike Ltd Message-ID: References: Injection-Date: Thu, 23 Aug 2018 17:50:10 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="2319ace8300ccf6abab8d2e832db8f8b"; logging-data="13216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HtTHoE8uPxKHTBJjj2Ha3" User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (Linux/4.9.0-7-amd64 (x86_64)) Cancel-Lock: sha1:xv4lGoi8Ve+DANBrqbtOq+618vw= sha1:hQiuoAGi5d+x/tgu9atjG/u0QfU= Xref: reader02.eternal-september.org comp.lang.ada:54231 Date: 2018-08-23T17:50:10+00:00 List-Id: Brian Drummond wrote: > Basically Debian changed its policy (possibly for security reasons) > regarding Address Space Randomisation and position-independent > executables - not sure exactly what, perhaps they turned on PIE by > default, to allow address space randomisation. I've seen all those 5555s > in addresses so treated... (not so random, then?) > Anyway, apparently addr2line doesn't work so well with random addresses... > My "solution" is to suppress PIE, at least while debugging. Adding -no-pie (gnatmake ... -largs -no-pie) means that addr2line works. I'll have to look into the side-effects another time. *Thank you*. Phil.