bebbo / binutils-gdb

Unofficial mirror of sourceware binutils-gdb repository. Updated daily.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
3 stars 3 forks source link

nm shows wrong sizes #2

Closed githubaf closed 5 years ago

githubaf commented 5 years ago

Some sizes shown by nm are not correct.

I look for instance for variables with "amplitude" in the name. ~/opt/m68k-amigaos_14Dec18/bin/m68k-amigaos-nm sam -S --size-sort | grep amplitude

That shows 000000c8 00000011 D _amplitudeRescale <-- correct 0000214c 00000120 D _amplitude2 <-- wrong, should be 0000000000000100 0000204c 00000220 D _amplitude3 <-- wrong, should be 0000000000000100 00001f48 00000324 D _amplitude1 <-- wrong, should be 0000000000000100

amplitude-arrays are defined as "unsigned char amplitude1[256];"

nm from linux shows that correctly. When I look into the m68000-mapfile the size of amplitude1,2,3 is correctly displayed.

To reproduce please try https://github.com/githubaf/SAM

githubaf commented 5 years ago

Solved. Thanks!