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. bin/
  2. build_library/
  3. chroot_version_hooks.d/
  4. lib/
  5. mod_for_factory_scripts/
  6. mod_for_test_scripts/
  7. sdk_lib/
  8. .gitignore
  9. archive_hwqual
  10. bash_completion
  11. build_image
  12. build_kernel_image.sh
  13. call_autoserv.py
  14. check_control_files.sh
  15. clean_loopback_devices
  16. common.sh
  17. cros_deps_diff
  18. cros_generate_breakpad_symbols
  19. cros_generate_deps_graphs
  20. cros_generate_stacks_bvt
  21. cros_show_stacks
  22. dot_helper.py
  23. enable_localaccount.sh
  24. enter_chroot.sh
  25. exclude-list
  26. fixup_image_for_qemu.py
  27. get_latest_image.sh
  28. get_package_list
  29. image_to_usb.sh
  30. image_to_vm.sh
  31. make_chroot
  32. make_developer_script_runner.sh
  33. make_netboot.sh
  34. mod_image_for_recovery.sh
  35. mod_image_for_test.sh
  36. mod_test_image_for_pyauto.sh
  37. mount_gpt_image.sh
  38. remote_access.sh
  39. run_chroot_version_hooks
  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