scripts: fall back to linkage symbols when debug info not present

dump_syms bails if you give it a debug info path and the file there
does not have debug info, instead of falling back to dumping
public/linkage symbols (and more importantly, call frame info).
Give it the chance to redeem itself.

Also, instead of not ever uploading CFI for x86 modules, strip it
for any architecture but only when the file is above some
threshold.

BUG=chromium-os:22373 chromium-os:22741

Change-Id: Iad6981efec537868296a6713b1d9ca0cdb750d28
Reviewed-on: https://gerrit.chromium.org/gerrit/11443
Commit-Ready: Ken Mixter <kmixter@chromium.org>
Reviewed-by: Ken Mixter <kmixter@chromium.org>
Tested-by: Ken Mixter <kmixter@chromium.org>
2 files changed
tree: c01cf9427c47867407b56a2e4aaf57e6a782db1e
  1. .gitignore
  2. archive_hwqual
  3. bash_completion
  4. bin/
  5. build_image
  6. build_kernel_image.sh
  7. build_library/
  8. call_autoserv.py
  9. check_control_files.sh
  10. chroot_version_hooks.d/
  11. clean_loopback_devices
  12. common.sh
  13. cros_deps_diff
  14. cros_generate_breakpad_symbols
  15. cros_generate_deps_graphs
  16. cros_generate_stacks_bvt
  17. cros_show_stacks
  18. dot_helper.py
  19. enable_localaccount.sh
  20. enter_chroot.sh
  21. exclude-list
  22. fixup_image_for_qemu.py
  23. get_latest_image.sh
  24. get_package_list
  25. image_to_usb.sh
  26. image_to_vm.sh
  27. lib/
  28. make_chroot
  29. make_developer_script_runner.sh
  30. make_netboot.sh
  31. mod_for_factory_scripts/
  32. mod_for_test_scripts/
  33. mod_image_for_recovery.sh
  34. mod_image_for_test.sh
  35. mod_test_image_for_pyauto.sh
  36. mount_gpt_image.sh
  37. remote_access.sh
  38. run_chroot_version_hooks
  39. sdk_lib/
  40. serve_factory_packages.py
  41. set_shared_user_password.sh
  42. sha256_partitions.sh
  43. ssh_test.sh
  44. start_devserver
  45. update_bootloaders.sh
  46. update_chroot
  47. update_kernel.sh
  48. upload_symbols
  49. verify_rootfs_chksum.sh