I found out that there is no line information shown (-gl) if an error occurs (more or less shortly) after the program loads a dynamic library. This same behaviour happens with fpc version 2.4.2-0 and 2.6.0. If no library is loaded line information is shown. The error adresses are the same in both cases.