On 25-05-2020 16:54, Pedro Alves wrote: > On 5/25/20 11:02 AM, Tom de Vries wrote: >> Hi, >> >> When running test-case gdb.base/break-interp.exp with target board gold, we >> run into: >> ... >> gdb compile failed, pie failed to generate PIE executable >> ... >> >> The problem is that the proc exec_is_pie uses the PIE flag in the readelf -d >> output, which doesn't seem to be set by the gold linker. > > Seems like a Gold bug? Yeah, Andreas Schwab had the same comment in bugzilla, so I filed PR26039 - "gold doesn't add PIE flag" ( https://sourceware.org/bugzilla/show_bug.cgi?id=26039 ). > A comment in exec_is_pie explaining why we don't > do the more obvious thing would be helpful, IMO. > Fixed in attached patch, committed. Thanks, - Tom