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: I171d66e121fd3ae899f68b9ae506956371532304
Reviewed-on: https://gerrit.chromium.org/gerrit/11775
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: 3d3778fa6e13aac8ef1b4e48d7b3ca090717c8fc
  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_factory
  10. archive_hwqual
  11. bash_completion
  12. build_image
  13. build_kernel_image.sh
  14. call_autoserv.py
  15. check_control_files.sh
  16. clean_loopback_devices
  17. common.sh
  18. cros_deps_diff
  19. cros_download_latest_image
  20. cros_generate_breakpad_symbols
  21. cros_generate_deps_graphs
  22. cros_generate_stacks_bvt
  23. cros_show_stacks
  24. dot_helper.py
  25. enable_localaccount.sh
  26. enter_chroot.sh
  27. exclude-list
  28. fixup_image_for_qemu.py
  29. get_latest_image.sh
  30. get_package_list
  31. image_to_usb.sh
  32. image_to_vm.sh
  33. make_chroot
  34. make_developer_script_runner.sh
  35. make_factory_package.sh
  36. make_netboot.sh
  37. make_universal_factory_shim.sh
  38. mk_memento_images.sh
  39. mod_image_for_recovery.sh
  40. mod_image_for_test.sh
  41. mod_test_image_for_pyauto.sh
  42. mount_gpt_image.sh
  43. remote_access.sh
  44. run_chroot_version_hooks
  45. serve_factory_packages.py
  46. set_shared_user_password.sh
  47. sha256_partitions.sh
  48. ssh_test.sh
  49. start_devserver
  50. update_bootloaders.sh
  51. update_chroot
  52. update_kernel.sh
  53. upload_symbols
  54. verify_rootfs_chksum.sh