mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
Add .hidden to CRASHPAD_NOTE_REFERENCE
This ensures the symbol is not exposed in the binaries final symbol table. .globl needs to be kept so that it can still be linked against (in this case, by crashpad_info.cc.). (Tested on Fuchsia, hopefully functional elsewhere...) Bug: crashpad:196 Change-Id: I8c6b26cdd742a1c040779884fd97a8a34068dbdc Reviewed-on: https://chromium-review.googlesource.com/924337 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
parent
5cb869392e
commit
4b78956158
@ -31,7 +31,10 @@
|
||||
// be performed.
|
||||
.section .note.crashpad.info,"aw",%note
|
||||
.balign NOTE_ALIGN
|
||||
# .globl indicates that it's available to link against other .o files. .hidden
|
||||
# indicates that it will not appear in the executable's symbol table.
|
||||
.globl CRASHPAD_NOTE_REFERENCE
|
||||
.hidden CRASHPAD_NOTE_REFERENCE
|
||||
.type CRASHPAD_NOTE_REFERENCE, %object
|
||||
CRASHPAD_NOTE_REFERENCE:
|
||||
.long name_end - name // namesz
|
||||
|
Loading…
x
Reference in New Issue
Block a user