Wrong file name entry in .debug_info section

kamlesh kumar kamleshbhalui@gmail.com
Fri Aug 3 14:01:00 GMT 2018


Thanks for clarity Nick.

But linemarker also put all file names and other info as well if multiple
file is used.
How assembler is distinguishing correct file name from there.


As seen in other compiler like clang , it is passed as command line
argument.

~ kamlesh

On Fri 3 Aug, 2018, 7:01 PM Nick Clifton, <nickc@redhat.com> wrote:

> Hi Kamlesh,
>
> > Thanks for reply Nick.
> >
> > But, when we do not pass -P option to gcc it is gives correct file name
> why?
>
> Because -P removes the line markers from the compiler's output.
> These the assembler can use to determine the correct file name.
>
> Cheers
>   Nick
>
>
>



More information about the Binutils mailing list