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