OSDN Git Service

Make .note.android.ident section type SH_NOTE
authorColin Cross <ccross@android.com>
Fri, 13 Feb 2015 01:03:22 +0000 (17:03 -0800)
committerColin Cross <ccross@android.com>
Fri, 13 Feb 2015 05:37:20 +0000 (21:37 -0800)
commite09ab2cc2ff41ce7519c143d448371ddd62afc59
tree27aeb6b9af0e2cee7200e1683a9650f013b49396
parentf9fb52ab309c97d5b2ef4f8e1daff3eed4cf4024
Make .note.android.ident section type SH_NOTE

The .note.android.ident section is only used by GDB, which doesn't
care what section type the section is, but it would be convenient
for readelf -n to be able to find the section too.

The old way of getting the .note.android.ident section to be of type
SH_NOTE involved compiling from .c to .s using gcc, running sed to
change progbits to note, and then compiling from .s to .o using gcc.
Since crtbrand.c only contains a section containing data, a
crtbrand.S can be checked in that will compile on all platforms,
avoiding the need for sed.

Also add crtbrand.o to crtbegin_so.o so that libraries also get
the note, and to the crt workaround in arm libc.so.

Change-Id: Ica71942a6af4553b56978ceaa288b3f4c15ebfa2
libc/Android.mk
libc/arch-common/bionic/crtbrand.S [new file with mode: 0644]
libc/bionic/crtbrand.c [deleted file]
libc/crt.mk