Re: Missing type declaration for function symbols
Orlando Arias <[email protected]> Fri, 22 Jan 2016 13:26:49 -0500
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============5800004620542850469== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DdHuOmE2NIshJBuRDK79hteNBCxWCwNXX" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DdHuOmE2NIshJBuRDK79hteNBCxWCwNXX Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Greetings, I have been having similar issues with the msp430-elf as well, but regarding line numbers. It may be related to this issue. I reported it upstream [1,2] but really did not get any feedback on the issue. Maybe our issues are related? [1] https://www.sourceware.org/ml/gdb/2015-09/msg00030.html [2] https://sourceware.org/bugzilla/show_bug.cgi?id=3D19033 Cheers, Orlando. On 01/22/2016 12:38 PM, Ingo van Lil wrote: > Hi, >=20 > when compiling a C/C++ file, the resulting symbols in the object file=20 > have the type "NOTYPE". It should be "FUNC" instead: >=20 > readelf --syms test.o | grep my_function > 7: 00000000 2 NOTYPE GLOBAL DEFAULT 1 my_function >=20 > The generated assembler code contains the following declarations for a = > function: >=20 > .file "test.c" > .text > .balign 2 > .global my_function >=20 > There should be a type declaration like ".type my_function, @function".= =20 > The mspdebug utility will ignore symbols without proper type when=20 > reading ELF symbol tables. >=20 > Regards, > Ingo >=20 > -----------------------------------------------------------------------= ------- > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=3D267308311&iu=3D/4140 > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users >=20 --DdHuOmE2NIshJBuRDK79hteNBCxWCwNXX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlaidG0ACgkQUxW/UBZ+LqGffQCfUNiCZ+zRwpITsQc9mEmP3c2q SeoAoKb8X2it+0451KtpQruRdV6xF9jG =Y31I -----END PGP SIGNATURE----- --DdHuOmE2NIshJBuRDK79hteNBCxWCwNXX-- --===============5800004620542850469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 --===============5800004620542850469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users --===============5800004620542850469==--